OLD | NEW |
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_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/location.h" | 15 #include "base/location.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "base/memory/scoped_vector.h" | 17 #include "base/memory/scoped_vector.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
20 #include "base/strings/string16.h" | 20 #include "base/strings/string16.h" |
21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
22 #include "base/timer/timer.h" | 22 #include "base/timer/timer.h" |
23 #include "chrome/browser/sync/backend_unrecoverable_error_handler.h" | 23 #include "chrome/browser/sync/backend_unrecoverable_error_handler.h" |
24 #include "chrome/browser/sync/glue/data_type_manager_observer.h" | |
25 #include "chrome/browser/sync/glue/failed_data_types_handler.h" | |
26 #include "chrome/browser/sync/glue/sync_backend_host.h" | 24 #include "chrome/browser/sync/glue/sync_backend_host.h" |
27 #include "chrome/browser/sync/glue/synced_device_tracker.h" | 25 #include "chrome/browser/sync/glue/synced_device_tracker.h" |
28 #include "chrome/browser/sync/profile_sync_service_base.h" | 26 #include "chrome/browser/sync/profile_sync_service_base.h" |
29 #include "chrome/browser/sync/profile_sync_service_observer.h" | 27 #include "chrome/browser/sync/profile_sync_service_observer.h" |
30 #include "chrome/browser/sync/sessions2/sessions_sync_manager.h" | 28 #include "chrome/browser/sync/sessions2/sessions_sync_manager.h" |
31 #include "chrome/browser/sync/sync_prefs.h" | 29 #include "chrome/browser/sync/sync_prefs.h" |
32 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" | 30 #include "components/browser_context_keyed_service/browser_context_keyed_service
.h" |
33 #include "components/sync_driver/data_type_controller.h" | 31 #include "components/sync_driver/data_type_controller.h" |
34 #include "components/sync_driver/data_type_encryption_handler.h" | 32 #include "components/sync_driver/data_type_encryption_handler.h" |
35 #include "components/sync_driver/data_type_manager.h" | 33 #include "components/sync_driver/data_type_manager.h" |
| 34 #include "components/sync_driver/data_type_manager_observer.h" |
| 35 #include "components/sync_driver/failed_data_types_handler.h" |
36 #include "components/sync_driver/sync_frontend.h" | 36 #include "components/sync_driver/sync_frontend.h" |
37 #include "content/public/browser/notification_observer.h" | 37 #include "content/public/browser/notification_observer.h" |
38 #include "content/public/browser/notification_registrar.h" | 38 #include "content/public/browser/notification_registrar.h" |
39 #include "content/public/browser/notification_types.h" | 39 #include "content/public/browser/notification_types.h" |
40 #include "google_apis/gaia/google_service_auth_error.h" | 40 #include "google_apis/gaia/google_service_auth_error.h" |
41 #include "google_apis/gaia/oauth2_token_service.h" | 41 #include "google_apis/gaia/oauth2_token_service.h" |
42 #include "net/base/backoff_entry.h" | 42 #include "net/base/backoff_entry.h" |
43 #include "sync/internal_api/public/base/model_type.h" | 43 #include "sync/internal_api/public/base/model_type.h" |
44 #include "sync/internal_api/public/engine/model_safe_worker.h" | 44 #include "sync/internal_api/public/engine/model_safe_worker.h" |
45 #include "sync/internal_api/public/sync_manager_factory.h" | 45 #include "sync/internal_api/public/sync_manager_factory.h" |
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 scoped_ptr<syncer::NetworkResources> network_resources_; | 1048 scoped_ptr<syncer::NetworkResources> network_resources_; |
1049 | 1049 |
1050 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1050 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
1051 }; | 1051 }; |
1052 | 1052 |
1053 bool ShouldShowActionOnUI( | 1053 bool ShouldShowActionOnUI( |
1054 const syncer::SyncProtocolError& error); | 1054 const syncer::SyncProtocolError& error); |
1055 | 1055 |
1056 | 1056 |
1057 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1057 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |