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

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

Issue 8470005: Add OVERRIDE to chrome/browser/sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: includes Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/sync/glue/model_associator.h" 11 #include "chrome/browser/sync/glue/model_associator.h"
11 #include "chrome/browser/sync/syncable/model_type.h" 12 #include "chrome/browser/sync/syncable/model_type.h"
12 13
13 class ProfileSyncService; 14 class ProfileSyncService;
14 15
15 namespace browser_sync { 16 namespace browser_sync {
16 17
17 // Contains all logic for associating the Chrome themes model and the 18 // Contains all logic for associating the Chrome themes model and the
18 // sync themes model. 19 // sync themes model.
19 class ThemeModelAssociator : public AssociatorInterface { 20 class ThemeModelAssociator : public AssociatorInterface {
20 public: 21 public:
21 explicit ThemeModelAssociator(ProfileSyncService* sync_service); 22 explicit ThemeModelAssociator(ProfileSyncService* sync_service);
22 virtual ~ThemeModelAssociator(); 23 virtual ~ThemeModelAssociator();
23 24
24 // Used by profile_sync_test_util.h. 25 // Used by profile_sync_test_util.h.
25 static syncable::ModelType model_type() { return syncable::THEMES; } 26 static syncable::ModelType model_type() { return syncable::THEMES; }
26 27
27 // AssociatorInterface implementation. 28 // AssociatorInterface implementation.
28 virtual bool AssociateModels(SyncError* error); 29 virtual bool AssociateModels(SyncError* error) OVERRIDE;
29 virtual bool DisassociateModels(SyncError* error); 30 virtual bool DisassociateModels(SyncError* error) OVERRIDE;
30 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes); 31 virtual bool SyncModelHasUserCreatedNodes(bool* has_nodes) OVERRIDE;
31 virtual void AbortAssociation() { 32 virtual void AbortAssociation() OVERRIDE {
32 // No implementation needed, this associator runs on the main 33 // No implementation needed, this associator runs on the main
33 // thread. 34 // thread.
34 } 35 }
35 virtual bool CryptoReadyIfNecessary(); 36 virtual bool CryptoReadyIfNecessary() OVERRIDE;
36 37
37 private: 38 private:
38 ProfileSyncService* sync_service_; 39 ProfileSyncService* sync_service_;
39 40
40 DISALLOW_COPY_AND_ASSIGN(ThemeModelAssociator); 41 DISALLOW_COPY_AND_ASSIGN(ThemeModelAssociator);
41 }; 42 };
42 43
43 } // namespace browser_sync 44 } // namespace browser_sync
44 45
45 #endif // CHROME_BROWSER_SYNC_GLUE_THEME_MODEL_ASSOCIATOR_H_ 46 #endif // CHROME_BROWSER_SYNC_GLUE_THEME_MODEL_ASSOCIATOR_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/theme_data_type_controller.h ('k') | chrome/browser/sync/glue/typed_url_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698