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 #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 28 matching lines...) Expand all Loading... |
39 static const int kSaveChangesIntervalSeconds = 10; | 39 static const int kSaveChangesIntervalSeconds = 10; |
40 static const FilePath::CharType kSyncDataFolderName[] = | 40 static const FilePath::CharType kSyncDataFolderName[] = |
41 FILE_PATH_LITERAL("Sync Data"); | 41 FILE_PATH_LITERAL("Sync Data"); |
42 | 42 |
43 typedef TokenService::TokenAvailableDetails TokenAvailableDetails; | 43 typedef TokenService::TokenAvailableDetails TokenAvailableDetails; |
44 | 44 |
45 typedef GoogleServiceAuthError AuthError; | 45 typedef GoogleServiceAuthError AuthError; |
46 | 46 |
47 namespace browser_sync { | 47 namespace browser_sync { |
48 | 48 |
| 49 using content::BrowserThread; |
49 using sessions::SyncSessionSnapshot; | 50 using sessions::SyncSessionSnapshot; |
50 using sync_api::SyncCredentials; | 51 using sync_api::SyncCredentials; |
51 | 52 |
52 // Helper macros to log with the syncer thread name; useful when there | 53 // Helper macros to log with the syncer thread name; useful when there |
53 // are multiple syncers involved. | 54 // are multiple syncers involved. |
54 | 55 |
55 #define SLOG(severity) LOG(severity) << name_ << ": " | 56 #define SLOG(severity) LOG(severity) << name_ << ": " |
56 | 57 |
57 #define SVLOG(verbose_level) VLOG(verbose_level) << name_ << ": " | 58 #define SVLOG(verbose_level) VLOG(verbose_level) << name_ << ": " |
58 | 59 |
(...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 FROM_HERE, | 1045 FROM_HERE, |
1045 base::Bind(&SyncBackendHost::Core::DoRefreshEncryption, | 1046 base::Bind(&SyncBackendHost::Core::DoRefreshEncryption, |
1046 core_.get(), sync_thread_done_callback)); | 1047 core_.get(), sync_thread_done_callback)); |
1047 } | 1048 } |
1048 | 1049 |
1049 #undef SVLOG | 1050 #undef SVLOG |
1050 | 1051 |
1051 #undef SLOG | 1052 #undef SLOG |
1052 | 1053 |
1053 } // namespace browser_sync | 1054 } // namespace browser_sync |
OLD | NEW |