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 COMPONENTS_SYNC_SESSIONS_SESSION_DATA_TYPE_CONTROLLER_H_ | 5 #ifndef COMPONENTS_SYNC_SESSIONS_SESSION_DATA_TYPE_CONTROLLER_H_ |
6 #define COMPONENTS_SYNC_SESSIONS_SESSION_DATA_TYPE_CONTROLLER_H_ | 6 #define COMPONENTS_SYNC_SESSIONS_SESSION_DATA_TYPE_CONTROLLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/prefs/pref_change_registrar.h" | 9 #include "components/prefs/pref_change_registrar.h" |
10 #include "components/sync_driver/local_device_info_provider.h" | 10 #include "components/sync_driver/local_device_info_provider.h" |
11 #include "components/sync_driver/ui_data_type_controller.h" | 11 #include "components/sync_driver/ui_data_type_controller.h" |
12 | 12 |
13 namespace browser_sync { | 13 namespace browser_sync { |
14 | 14 |
15 // Overrides StartModels to avoid sync contention with sessions during | 15 // Overrides StartModels to avoid sync contention with sessions during |
16 // a session restore operation at startup and to wait for the local | 16 // a session restore operation at startup and to wait for the local |
17 // device info to become available. | 17 // device info to become available. |
18 class SessionDataTypeController : public sync_driver::UIDataTypeController { | 18 class SessionDataTypeController : public sync_driver::UIDataTypeController { |
19 public: | 19 public: |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 bool waiting_on_local_device_info_; | 54 bool waiting_on_local_device_info_; |
55 | 55 |
56 PrefChangeRegistrar pref_registrar_; | 56 PrefChangeRegistrar pref_registrar_; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(SessionDataTypeController); | 58 DISALLOW_COPY_AND_ASSIGN(SessionDataTypeController); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace browser_sync | 61 } // namespace browser_sync |
62 | 62 |
63 #endif // COMPONENTS_SYNC_SESSIONS_SESSION_DATA_TYPE_CONTROLLER_H_ | 63 #endif // COMPONENTS_SYNC_SESSIONS_SESSION_DATA_TYPE_CONTROLLER_H_ |
OLD | NEW |