forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Sync] Add empty ModelTypeService and ModelTypeChangeProcessor interf…
…aces. BUG=536895 Review URL: https://codereview.chromium.org/1395393003 Cr-Commit-Position: refs/heads/master@{#353787}
- Loading branch information
maxbogue
authored and
Commit bot
committed
Oct 13, 2015
1 parent
c870f4c
commit 9a31ed8
Showing
7 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "sync/api/model_type_change_processor.h" | ||
|
||
namespace syncer_v2 { | ||
|
||
ModelTypeChangeProcessor::ModelTypeChangeProcessor() {} | ||
|
||
ModelTypeChangeProcessor::~ModelTypeChangeProcessor() {} | ||
|
||
} // namespace syncer_v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef SYNC_API_MODEL_TYPE_CHANGE_PROCESSOR_H_ | ||
#define SYNC_API_MODEL_TYPE_CHANGE_PROCESSOR_H_ | ||
|
||
#include "sync/base/sync_export.h" | ||
|
||
namespace syncer_v2 { | ||
|
||
// Interface used by the ModelTypeService to inform sync of local | ||
// changes. | ||
class SYNC_EXPORT ModelTypeChangeProcessor { | ||
public: | ||
ModelTypeChangeProcessor(); | ||
virtual ~ModelTypeChangeProcessor(); | ||
}; | ||
|
||
} // namespace syncer_v2 | ||
|
||
#endif // SYNC_API_MODEL_TYPE_CHANGE_PROCESSOR_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "sync/api/model_type_service.h" | ||
|
||
namespace syncer_v2 { | ||
|
||
ModelTypeService::ModelTypeService() {} | ||
|
||
ModelTypeService::~ModelTypeService() {} | ||
|
||
} // namespace syncer_v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright 2015 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef SYNC_API_MODEL_TYPE_SERVICE_H_ | ||
#define SYNC_API_MODEL_TYPE_SERVICE_H_ | ||
|
||
#include "sync/base/sync_export.h" | ||
|
||
namespace syncer_v2 { | ||
|
||
// Interface implemented by model types to receive updates from sync via the | ||
// SharedModelTypeProcessor. Provides a way for sync to update the data and | ||
// metadata for entities, as well as the model type state. | ||
class SYNC_EXPORT ModelTypeService { | ||
public: | ||
ModelTypeService(); | ||
virtual ~ModelTypeService(); | ||
}; | ||
|
||
} // namespace syncer_v2 | ||
|
||
#endif // SYNC_API_MODEL_TYPE_SERVICE_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters