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

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

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_HISTORY_DELETE_DIRECTIVES_DATA_TYPE_CONTROLLER_ H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_HISTORY_DELETE_DIRECTIVES_DATA_TYPE_CONTROLLER_ H_
6 #define CHROME_BROWSER_SYNC_GLUE_HISTORY_DELETE_DIRECTIVES_DATA_TYPE_CONTROLLER_ H_ 6 #define CHROME_BROWSER_SYNC_GLUE_HISTORY_DELETE_DIRECTIVES_DATA_TYPE_CONTROLLER_ H_
7 7
8 #include "chrome/browser/sync/profile_sync_service_observer.h" 8 #include "chrome/browser/sync/profile_sync_service_observer.h"
9 #include "components/sync_driver/local_device_info_provider.h" 9 #include "components/sync_driver/local_device_info_provider.h"
10 #include "components/sync_driver/ui_data_type_controller.h" 10 #include "components/sync_driver/ui_data_type_controller.h"
11 11
12 class Profile; 12 class Profile;
13 class ProfileSyncService; 13 class ProfileSyncService;
14 14
15 namespace browser_sync { 15 namespace browser_sync {
16 16
17 // A controller for delete directives, which cannot sync when full encryption 17 // A controller for delete directives, which cannot sync when full encryption
18 // is enabled. 18 // is enabled.
19 class HistoryDeleteDirectivesDataTypeController 19 class HistoryDeleteDirectivesDataTypeController
20 : public sync_driver::UIDataTypeController, 20 : public sync_driver::UIDataTypeController,
21 public ProfileSyncServiceObserver { 21 public ProfileSyncServiceObserver {
22 public: 22 public:
23 HistoryDeleteDirectivesDataTypeController( 23 HistoryDeleteDirectivesDataTypeController(
24 sync_driver::SyncApiComponentFactory* factory, 24 sync_driver::SyncApiComponentFactory* factory,
25 ProfileSyncService* sync_service); 25 ProfileSyncService* sync_service);
26 26
27 // UIDataTypeController override. 27 // UIDataTypeController override.
28 virtual bool ReadyForStart() const OVERRIDE; 28 virtual bool ReadyForStart() const override;
29 virtual bool StartModels() OVERRIDE; 29 virtual bool StartModels() override;
30 virtual void StopModels() OVERRIDE; 30 virtual void StopModels() override;
31 31
32 // ProfileSyncServiceBaseObserver implementation. 32 // ProfileSyncServiceBaseObserver implementation.
33 virtual void OnStateChanged() OVERRIDE; 33 virtual void OnStateChanged() override;
34 34
35 private: 35 private:
36 // Refcounted. 36 // Refcounted.
37 virtual ~HistoryDeleteDirectivesDataTypeController(); 37 virtual ~HistoryDeleteDirectivesDataTypeController();
38 38
39 // Triggers a SingleDataTypeUnrecoverable error and returns true if the 39 // Triggers a SingleDataTypeUnrecoverable error and returns true if the
40 // type is no longer ready, else does nothing and returns false. 40 // type is no longer ready, else does nothing and returns false.
41 bool DisableTypeIfNecessary(); 41 bool DisableTypeIfNecessary();
42 42
43 ProfileSyncService* sync_service_; 43 ProfileSyncService* sync_service_;
44 44
45 DISALLOW_COPY_AND_ASSIGN(HistoryDeleteDirectivesDataTypeController); 45 DISALLOW_COPY_AND_ASSIGN(HistoryDeleteDirectivesDataTypeController);
46 }; 46 };
47 47
48 } // namespace browser_sync 48 } // namespace browser_sync
49 49
50 #endif // CHROME_BROWSER_SYNC_GLUE_HISTORY_DELETE_DIRECTIVES_DATA_TYPE_CONTROLL ER_H_ 50 #endif // CHROME_BROWSER_SYNC_GLUE_HISTORY_DELETE_DIRECTIVES_DATA_TYPE_CONTROLL ER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/frontend_data_type_controller_unittest.cc ('k') | chrome/browser/sync/glue/history_model_worker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698