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

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

Issue 23129007: sync: Add GetAllSyncData to sync/api (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 virtual bool Disconnect(); 78 virtual bool Disconnect();
79 79
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 syncer::SyncError GetSyncData( 82 virtual syncer::SyncError GetSyncData(
83 syncer::SyncDataList* current_sync_data); 83 syncer::SyncDataList* current_sync_data);
84 virtual int GetSyncCount(); 84 virtual int GetSyncCount();
85 virtual syncer::SyncError ProcessSyncChanges( 85 virtual syncer::SyncError ProcessSyncChanges(
86 const tracked_objects::Location& from_here, 86 const tracked_objects::Location& from_here,
87 const syncer::SyncChangeList& change_list); 87 const syncer::SyncChangeList& change_list);
88 virtual syncer::SyncDataList GetAllSyncData(syncer::ModelType type) const;
88 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes); 89 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes);
89 virtual bool CryptoReadyIfNecessary(); 90 virtual bool CryptoReadyIfNecessary();
90 91
91 // Register |generic_change_processor_| as the change processor for the 92 // Register |generic_change_processor_| as the change processor for the
92 // current type on |model_safe_group|. 93 // current type on |model_safe_group|.
93 // Does nothing if |disconnected_| is true. 94 // Does nothing if |disconnected_| is true.
94 virtual void ActivateDataType(syncer::ModelSafeGroup model_safe_group); 95 virtual void ActivateDataType(syncer::ModelSafeGroup model_safe_group);
95 96
96 virtual syncer::SyncError CreateAndUploadError( 97 virtual syncer::SyncError CreateAndUploadError(
97 const tracked_objects::Location& location, 98 const tracked_objects::Location& location,
(...skipping 26 matching lines...) Expand all
124 GenericChangeProcessor* generic_change_processor_; 125 GenericChangeProcessor* generic_change_processor_;
125 126
126 DataTypeErrorHandler* error_handler_; 127 DataTypeErrorHandler* error_handler_;
127 128
128 DISALLOW_COPY_AND_ASSIGN(SharedChangeProcessor); 129 DISALLOW_COPY_AND_ASSIGN(SharedChangeProcessor);
129 }; 130 };
130 131
131 } // namespace browser_sync 132 } // namespace browser_sync
132 133
133 #endif // CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_H_ 134 #endif // CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698