Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: chrome/browser/sync/glue/shared_change_processor.h

Issue 220043002: [Sync] Add sync api support for context changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_H_
7 7
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 // GenericChangeProcessor stubs (with disconnect support). 80 // GenericChangeProcessor stubs (with disconnect support).
81 // Should only be called on the same thread the datatype resides. 81 // Should only be called on the same thread the datatype resides.
82 virtual int GetSyncCount(); 82 virtual int GetSyncCount();
83 virtual syncer::SyncError ProcessSyncChanges( 83 virtual syncer::SyncError ProcessSyncChanges(
84 const tracked_objects::Location& from_here, 84 const tracked_objects::Location& from_here,
85 const syncer::SyncChangeList& change_list); 85 const syncer::SyncChangeList& change_list);
86 virtual syncer::SyncDataList GetAllSyncData(syncer::ModelType type) const; 86 virtual syncer::SyncDataList GetAllSyncData(syncer::ModelType type) const;
87 virtual syncer::SyncError GetAllSyncDataReturnError( 87 virtual syncer::SyncError GetAllSyncDataReturnError(
88 syncer::ModelType type, 88 syncer::ModelType type,
89 syncer::SyncDataList* data) const; 89 syncer::SyncDataList* data) const;
90 virtual syncer::SyncError UpdateDataTypeContext(syncer::ModelType type,
91 const std::string& context);
90 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes); 92 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes);
91 virtual bool CryptoReadyIfNecessary(); 93 virtual bool CryptoReadyIfNecessary();
92 94
93 // Register |generic_change_processor_| as the change processor for the 95 // Register |generic_change_processor_| as the change processor for the
94 // current type on |model_safe_group|. 96 // current type on |model_safe_group|.
95 // Does nothing if |disconnected_| is true. 97 // Does nothing if |disconnected_| is true.
96 virtual void ActivateDataType(syncer::ModelSafeGroup model_safe_group); 98 virtual void ActivateDataType(syncer::ModelSafeGroup model_safe_group);
97 99
98 virtual syncer::SyncError CreateAndUploadError( 100 virtual syncer::SyncError CreateAndUploadError(
99 const tracked_objects::Location& location, 101 const tracked_objects::Location& location,
(...skipping 26 matching lines...) Expand all
126 GenericChangeProcessor* generic_change_processor_; 128 GenericChangeProcessor* generic_change_processor_;
127 129
128 DataTypeErrorHandler* error_handler_; 130 DataTypeErrorHandler* error_handler_;
129 131
130 DISALLOW_COPY_AND_ASSIGN(SharedChangeProcessor); 132 DISALLOW_COPY_AND_ASSIGN(SharedChangeProcessor);
131 }; 133 };
132 134
133 } // namespace browser_sync 135 } // namespace browser_sync
134 136
135 #endif // CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_H_ 137 #endif // CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/generic_change_processor.cc ('k') | chrome/browser/sync/glue/shared_change_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698