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

Side by Side Diff: chrome/browser/sync/glue/shared_change_processor_ref.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_REF_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_REF_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_REF_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_REF_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "chrome/browser/sync/glue/shared_change_processor.h" 10 #include "chrome/browser/sync/glue/shared_change_processor.h"
(...skipping 11 matching lines...) Expand all
22 const scoped_refptr<browser_sync::SharedChangeProcessor>& 22 const scoped_refptr<browser_sync::SharedChangeProcessor>&
23 change_processor); 23 change_processor);
24 virtual ~SharedChangeProcessorRef(); 24 virtual ~SharedChangeProcessorRef();
25 25
26 // syncer::SyncChangeProcessor implementation. 26 // syncer::SyncChangeProcessor implementation.
27 virtual syncer::SyncError ProcessSyncChanges( 27 virtual syncer::SyncError ProcessSyncChanges(
28 const tracked_objects::Location& from_here, 28 const tracked_objects::Location& from_here,
29 const syncer::SyncChangeList& change_list) OVERRIDE; 29 const syncer::SyncChangeList& change_list) OVERRIDE;
30 virtual syncer::SyncDataList GetAllSyncData( 30 virtual syncer::SyncDataList GetAllSyncData(
31 syncer::ModelType type) const OVERRIDE; 31 syncer::ModelType type) const OVERRIDE;
32 virtual syncer::SyncError UpdateDataTypeContext(
33 syncer::ModelType type,
34 const std::string& context) OVERRIDE;
32 35
33 // syncer::SyncErrorFactory implementation. 36 // syncer::SyncErrorFactory implementation.
34 virtual syncer::SyncError CreateAndUploadError( 37 virtual syncer::SyncError CreateAndUploadError(
35 const tracked_objects::Location& from_here, 38 const tracked_objects::Location& from_here,
36 const std::string& message) OVERRIDE; 39 const std::string& message) OVERRIDE;
37 40
38 // Default copy and assign welcome (and safe due to refcounted-ness). 41 // Default copy and assign welcome (and safe due to refcounted-ness).
39 42
40 private: 43 private:
41 scoped_refptr<browser_sync::SharedChangeProcessor> change_processor_; 44 scoped_refptr<browser_sync::SharedChangeProcessor> change_processor_;
42 }; 45 };
43 46
44 } // namespace browser_sync 47 } // namespace browser_sync
45 48
46 #endif // CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_REF_H_ 49 #endif // CHROME_BROWSER_SYNC_GLUE_SHARED_CHANGE_PROCESSOR_REF_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/shared_change_processor.cc ('k') | chrome/browser/sync/glue/shared_change_processor_ref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698