OLD | NEW |
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_SYNC_BACKEND_HOST_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/message_loop.h" | 18 #include "base/message_loop.h" |
19 #include "base/synchronization/lock.h" | 19 #include "base/synchronization/lock.h" |
20 #include "base/threading/thread.h" | 20 #include "base/threading/thread.h" |
21 #include "base/timer.h" | 21 #include "base/timer.h" |
22 #include "chrome/browser/sync/engine/syncapi.h" | |
23 #include "chrome/browser/sync/engine/configure_reason.h" | 22 #include "chrome/browser/sync/engine/configure_reason.h" |
24 #include "chrome/browser/sync/engine/model_safe_worker.h" | 23 #include "chrome/browser/sync/engine/model_safe_worker.h" |
25 #include "chrome/browser/sync/js_backend.h" | 24 #include "chrome/browser/sync/engine/syncapi.h" |
26 #include "chrome/browser/sync/glue/data_type_controller.h" | 25 #include "chrome/browser/sync/glue/data_type_controller.h" |
27 #include "chrome/browser/sync/glue/ui_model_worker.h" | 26 #include "chrome/browser/sync/glue/ui_model_worker.h" |
| 27 #include "chrome/browser/sync/js/js_backend.h" |
28 #include "chrome/browser/sync/notifier/sync_notifier_factory.h" | 28 #include "chrome/browser/sync/notifier/sync_notifier_factory.h" |
29 #include "chrome/browser/sync/syncable/model_type.h" | 29 #include "chrome/browser/sync/syncable/model_type.h" |
30 #include "chrome/browser/sync/weak_handle.h" | 30 #include "chrome/browser/sync/weak_handle.h" |
31 #include "chrome/common/net/gaia/google_service_auth_error.h" | 31 #include "chrome/common/net/gaia/google_service_auth_error.h" |
32 #include "googleurl/src/gurl.h" | 32 #include "googleurl/src/gurl.h" |
33 #include "net/url_request/url_request_context_getter.h" | 33 #include "net/url_request/url_request_context_getter.h" |
34 | 34 |
35 class CancelableTask; | 35 class CancelableTask; |
36 class Profile; | 36 class Profile; |
37 | 37 |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 | 606 |
607 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. | 607 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. |
608 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; | 608 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; |
609 | 609 |
610 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 610 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
611 }; | 611 }; |
612 | 612 |
613 } // namespace browser_sync | 613 } // namespace browser_sync |
614 | 614 |
615 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 615 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
OLD | NEW |