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

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

Issue 10662035: [Sync] Put everything in sync/api into csync namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix comments 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_THEME_MODEL_ASSOCIATOR_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_THEME_MODEL_ASSOCIATOR_H_
6 #define CHROME_BROWSER_SYNC_GLUE_THEME_MODEL_ASSOCIATOR_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_THEME_MODEL_ASSOCIATOR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 10 matching lines...) Expand all
21 class ThemeModelAssociator : public AssociatorInterface { 21 class ThemeModelAssociator : public AssociatorInterface {
22 public: 22 public:
23 ThemeModelAssociator(ProfileSyncService* sync_service, 23 ThemeModelAssociator(ProfileSyncService* sync_service,
24 DataTypeErrorHandler* error_handler); 24 DataTypeErrorHandler* error_handler);
25 virtual ~ThemeModelAssociator(); 25 virtual ~ThemeModelAssociator();
26 26
27 // Used by profile_sync_test_util.h. 27 // Used by profile_sync_test_util.h.
28 static syncable::ModelType model_type() { return syncable::THEMES; } 28 static syncable::ModelType model_type() { return syncable::THEMES; }
29 29
30 // AssociatorInterface implementation. 30 // AssociatorInterface implementation.
31 virtual SyncError AssociateModels() OVERRIDE; 31 virtual csync::SyncError AssociateModels() OVERRIDE;
32 virtual SyncError DisassociateModels() OVERRIDE; 32 virtual csync::SyncError DisassociateModels() OVERRIDE;
33 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes) OVERRIDE; 33 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes) OVERRIDE;
34 virtual void AbortAssociation() OVERRIDE { 34 virtual void AbortAssociation() OVERRIDE {
35 // No implementation needed, this associator runs on the main 35 // No implementation needed, this associator runs on the main
36 // thread. 36 // thread.
37 } 37 }
38 virtual bool CryptoReadyIfNecessary() OVERRIDE; 38 virtual bool CryptoReadyIfNecessary() OVERRIDE;
39 39
40 private: 40 private:
41 ProfileSyncService* sync_service_; 41 ProfileSyncService* sync_service_;
42 DataTypeErrorHandler* error_handler_; 42 DataTypeErrorHandler* error_handler_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(ThemeModelAssociator); 44 DISALLOW_COPY_AND_ASSIGN(ThemeModelAssociator);
45 }; 45 };
46 46
47 } // namespace browser_sync 47 } // namespace browser_sync
48 48
49 #endif // CHROME_BROWSER_SYNC_GLUE_THEME_MODEL_ASSOCIATOR_H_ 49 #endif // CHROME_BROWSER_SYNC_GLUE_THEME_MODEL_ASSOCIATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/theme_data_type_controller_unittest.cc ('k') | chrome/browser/sync/glue/theme_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698