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

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

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights Created 8 years, 5 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_GENERIC_CHANGE_PROCESSOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // Passes |syncer_changes_|, built in ApplyChangesFromSyncModel, onto 54 // Passes |syncer_changes_|, built in ApplyChangesFromSyncModel, onto
55 // |local_service_| by way of its ProcessSyncChanges method. 55 // |local_service_| by way of its ProcessSyncChanges method.
56 virtual void CommitChangesFromSyncModel() OVERRIDE; 56 virtual void CommitChangesFromSyncModel() OVERRIDE;
57 57
58 // syncer::SyncChangeProcessor implementation. 58 // syncer::SyncChangeProcessor implementation.
59 virtual syncer::SyncError ProcessSyncChanges( 59 virtual syncer::SyncError ProcessSyncChanges(
60 const tracked_objects::Location& from_here, 60 const tracked_objects::Location& from_here,
61 const syncer::SyncChangeList& change_list) OVERRIDE; 61 const syncer::SyncChangeList& change_list) OVERRIDE;
62 62
63 // Fills |current_sync_data| with all the syncer data for the specified type. 63 // Fills |current_sync_data| with all the syncer data for the specified type.
64 virtual syncer::SyncError GetSyncDataForType(syncable::ModelType type, 64 virtual syncer::SyncError GetSyncDataForType(
65 syncer::SyncDataList* current_sync_data); 65 syncer::ModelType type,
66 syncer::SyncDataList* current_sync_data);
66 67
67 // Generic versions of AssociatorInterface methods. Called by 68 // Generic versions of AssociatorInterface methods. Called by
68 // syncer::SyncableServiceAdapter or the DataTypeController. 69 // syncer::SyncableServiceAdapter or the DataTypeController.
69 virtual bool SyncModelHasUserCreatedNodes(syncable::ModelType type, 70 virtual bool SyncModelHasUserCreatedNodes(syncer::ModelType type,
70 bool* has_nodes); 71 bool* has_nodes);
71 virtual bool CryptoReadyIfNecessary(syncable::ModelType type); 72 virtual bool CryptoReadyIfNecessary(syncer::ModelType type);
72 73
73 protected: 74 protected:
74 // ChangeProcessor interface. 75 // ChangeProcessor interface.
75 virtual void StartImpl(Profile* profile) OVERRIDE; // Does nothing. 76 virtual void StartImpl(Profile* profile) OVERRIDE; // Does nothing.
76 // Called from UI thread (as part of deactivating datatype), but does 77 // Called from UI thread (as part of deactivating datatype), but does
77 // nothing and is guaranteed to still be alive, so it's okay. 78 // nothing and is guaranteed to still be alive, so it's okay.
78 virtual void StopImpl() OVERRIDE; // Does nothing. 79 virtual void StopImpl() OVERRIDE; // Does nothing.
79 virtual syncer::UserShare* share_handle() const OVERRIDE; 80 virtual syncer::UserShare* share_handle() const OVERRIDE;
80 81
81 private: 82 private:
(...skipping 12 matching lines...) Expand all
94 // when it starts up). As such we can't wait until Start(_) has been called, 95 // when it starts up). As such we can't wait until Start(_) has been called,
95 // and have to keep a local pointer to the user_share. 96 // and have to keep a local pointer to the user_share.
96 syncer::UserShare* const share_handle_; 97 syncer::UserShare* const share_handle_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(GenericChangeProcessor); 99 DISALLOW_COPY_AND_ASSIGN(GenericChangeProcessor);
99 }; 100 };
100 101
101 } // namespace browser_sync 102 } // namespace browser_sync
102 103
103 #endif // CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_ 104 #endif // CHROME_BROWSER_SYNC_GLUE_GENERIC_CHANGE_PROCESSOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698