OLD | NEW |
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_SESSIONS_SESSION_DATA_TYPE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_SESSIONS_SESSION_DATA_TYPE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_SYNC_SESSIONS_SESSION_DATA_TYPE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_SYNC_SESSIONS_SESSION_DATA_TYPE_CONTROLLER_H_ |
7 | 7 |
8 #include "base/prefs/pref_change_registrar.h" | 8 #include "base/prefs/pref_change_registrar.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" |
(...skipping 13 matching lines...) Expand all Loading... |
24 public content::NotificationObserver { | 24 public content::NotificationObserver { |
25 public: | 25 public: |
26 SessionDataTypeController(sync_driver::SyncApiComponentFactory* factory, | 26 SessionDataTypeController(sync_driver::SyncApiComponentFactory* factory, |
27 Profile* profile, | 27 Profile* profile, |
28 SyncedWindowDelegatesGetter* synced_window_getter, | 28 SyncedWindowDelegatesGetter* synced_window_getter, |
29 sync_driver::LocalDeviceInfoProvider* local_device); | 29 sync_driver::LocalDeviceInfoProvider* local_device); |
30 | 30 |
31 // NotificationObserver interface. | 31 // NotificationObserver interface. |
32 virtual void Observe(int type, | 32 virtual void Observe(int type, |
33 const content::NotificationSource& source, | 33 const content::NotificationSource& source, |
34 const content::NotificationDetails& details) OVERRIDE; | 34 const content::NotificationDetails& details) override; |
35 | 35 |
36 // UIDataTypeController interface. | 36 // UIDataTypeController interface. |
37 virtual bool StartModels() OVERRIDE; | 37 virtual bool StartModels() override; |
38 virtual void StopModels() OVERRIDE; | 38 virtual void StopModels() override; |
39 virtual bool ReadyForStart() const OVERRIDE; | 39 virtual bool ReadyForStart() const override; |
40 | 40 |
41 protected: | 41 protected: |
42 virtual ~SessionDataTypeController(); | 42 virtual ~SessionDataTypeController(); |
43 | 43 |
44 private: | 44 private: |
45 bool IsWaiting(); | 45 bool IsWaiting(); |
46 void MaybeCompleteLoading(); | 46 void MaybeCompleteLoading(); |
47 void OnLocalDeviceInfoInitialized(); | 47 void OnLocalDeviceInfoInitialized(); |
48 void OnSavingBrowserHistoryPrefChanged(); | 48 void OnSavingBrowserHistoryPrefChanged(); |
49 | 49 |
(...skipping 10 matching lines...) Expand all Loading... |
60 bool waiting_on_local_device_info_; | 60 bool waiting_on_local_device_info_; |
61 | 61 |
62 PrefChangeRegistrar pref_registrar_; | 62 PrefChangeRegistrar pref_registrar_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(SessionDataTypeController); | 64 DISALLOW_COPY_AND_ASSIGN(SessionDataTypeController); |
65 }; | 65 }; |
66 | 66 |
67 } // namespace browser_sync | 67 } // namespace browser_sync |
68 | 68 |
69 #endif // CHROME_BROWSER_SYNC_SESSIONS_SESSION_DATA_TYPE_CONTROLLER_H_ | 69 #endif // CHROME_BROWSER_SYNC_SESSIONS_SESSION_DATA_TYPE_CONTROLLER_H_ |
OLD | NEW |