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 #include "build/build_config.h" | 5 #include "build/build_config.h" |
6 | 6 |
7 #include "chrome/browser/sync/glue/sync_backend_host.h" | 7 #include "chrome/browser/sync/glue/sync_backend_host.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <map> | 10 #include <map> |
(...skipping 12 matching lines...) Expand all Loading... |
23 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
24 #include "chrome/browser/signin/token_service.h" | 24 #include "chrome/browser/signin/token_service.h" |
25 #include "chrome/browser/sync/glue/bridged_sync_notifier.h" | 25 #include "chrome/browser/sync/glue/bridged_sync_notifier.h" |
26 #include "chrome/browser/sync/glue/change_processor.h" | 26 #include "chrome/browser/sync/glue/change_processor.h" |
27 #include "chrome/browser/sync/glue/chrome_encryptor.h" | 27 #include "chrome/browser/sync/glue/chrome_encryptor.h" |
28 #include "chrome/browser/sync/glue/http_bridge.h" | 28 #include "chrome/browser/sync/glue/http_bridge.h" |
29 #include "chrome/browser/sync/glue/sync_backend_registrar.h" | 29 #include "chrome/browser/sync/glue/sync_backend_registrar.h" |
30 #include "chrome/browser/sync/internal_api/base_transaction.h" | 30 #include "chrome/browser/sync/internal_api/base_transaction.h" |
31 #include "chrome/browser/sync/internal_api/read_transaction.h" | 31 #include "chrome/browser/sync/internal_api/read_transaction.h" |
32 #include "chrome/browser/sync/notifier/sync_notifier.h" | 32 #include "chrome/browser/sync/notifier/sync_notifier.h" |
33 #include "chrome/browser/sync/sessions/session_state.h" | |
34 #include "chrome/browser/sync/sync_prefs.h" | 33 #include "chrome/browser/sync/sync_prefs.h" |
35 #include "chrome/browser/sync/util/nigori.h" | |
36 #include "chrome/common/chrome_notification_types.h" | 34 #include "chrome/common/chrome_notification_types.h" |
37 #include "chrome/common/chrome_switches.h" | 35 #include "chrome/common/chrome_switches.h" |
38 #include "chrome/common/chrome_version_info.h" | 36 #include "chrome/common/chrome_version_info.h" |
39 #include "chrome/common/net/gaia/gaia_constants.h" | 37 #include "chrome/common/net/gaia/gaia_constants.h" |
40 #include "content/public/browser/browser_thread.h" | 38 #include "content/public/browser/browser_thread.h" |
41 #include "content/public/browser/notification_service.h" | 39 #include "content/public/browser/notification_service.h" |
42 #include "content/public/common/content_client.h" | 40 #include "content/public/common/content_client.h" |
43 #include "jingle/notifier/base/notification_method.h" | 41 #include "jingle/notifier/base/notification_method.h" |
44 #include "jingle/notifier/base/notifier_options.h" | 42 #include "jingle/notifier/base/notifier_options.h" |
45 #include "net/base/host_port_pair.h" | 43 #include "net/base/host_port_pair.h" |
46 #include "net/url_request/url_request_context_getter.h" | 44 #include "net/url_request/url_request_context_getter.h" |
47 #include "sync/protocol/encryption.pb.h" | 45 #include "sync/protocol/encryption.pb.h" |
48 #include "sync/protocol/sync.pb.h" | 46 #include "sync/protocol/sync.pb.h" |
| 47 #include "sync/sessions/session_state.h" |
| 48 #include "sync/util/nigori.h" |
49 | 49 |
50 static const int kSaveChangesIntervalSeconds = 10; | 50 static const int kSaveChangesIntervalSeconds = 10; |
51 static const FilePath::CharType kSyncDataFolderName[] = | 51 static const FilePath::CharType kSyncDataFolderName[] = |
52 FILE_PATH_LITERAL("Sync Data"); | 52 FILE_PATH_LITERAL("Sync Data"); |
53 | 53 |
54 typedef TokenService::TokenAvailableDetails TokenAvailableDetails; | 54 typedef TokenService::TokenAvailableDetails TokenAvailableDetails; |
55 | 55 |
56 typedef GoogleServiceAuthError AuthError; | 56 typedef GoogleServiceAuthError AuthError; |
57 | 57 |
58 namespace browser_sync { | 58 namespace browser_sync { |
(...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1375 FROM_HERE, | 1375 FROM_HERE, |
1376 base::Bind(&SyncBackendHost::Core::DoRefreshNigori, | 1376 base::Bind(&SyncBackendHost::Core::DoRefreshNigori, |
1377 core_.get(), sync_thread_done_callback)); | 1377 core_.get(), sync_thread_done_callback)); |
1378 } | 1378 } |
1379 | 1379 |
1380 #undef SDVLOG | 1380 #undef SDVLOG |
1381 | 1381 |
1382 #undef SLOG | 1382 #undef SLOG |
1383 | 1383 |
1384 } // namespace browser_sync | 1384 } // namespace browser_sync |
OLD | NEW |