Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(380)

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host.cc

Issue 7633077: Refactor syncapi.h (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: This patch has compiled from a clean build Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/file_util.h" 12 #include "base/file_util.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "base/threading/thread_restrictions.h" 14 #include "base/threading/thread_restrictions.h"
15 #include "base/tracked.h" 15 #include "base/tracked.h"
16 #include "base/utf_string_conversions.h" 16 #include "base/utf_string_conversions.h"
17 #include "chrome/browser/net/gaia/token_service.h" 17 #include "chrome/browser/net/gaia/token_service.h"
18 #include "chrome/browser/prefs/pref_service.h" 18 #include "chrome/browser/prefs/pref_service.h"
19 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
20 #include "chrome/browser/sync/engine/syncapi.h"
21 #include "chrome/browser/sync/glue/autofill_model_associator.h" 20 #include "chrome/browser/sync/glue/autofill_model_associator.h"
22 #include "chrome/browser/sync/glue/autofill_profile_model_associator.h" 21 #include "chrome/browser/sync/glue/autofill_profile_model_associator.h"
23 #include "chrome/browser/sync/glue/change_processor.h" 22 #include "chrome/browser/sync/glue/change_processor.h"
24 #include "chrome/browser/sync/glue/database_model_worker.h" 23 #include "chrome/browser/sync/glue/database_model_worker.h"
25 #include "chrome/browser/sync/glue/history_model_worker.h" 24 #include "chrome/browser/sync/glue/history_model_worker.h"
26 #include "chrome/browser/sync/glue/http_bridge.h" 25 #include "chrome/browser/sync/glue/http_bridge.h"
27 #include "chrome/browser/sync/glue/password_model_worker.h" 26 #include "chrome/browser/sync/glue/password_model_worker.h"
28 #include "chrome/browser/sync/glue/sync_backend_host.h" 27 #include "chrome/browser/sync/glue/sync_backend_host.h"
28 #include "chrome/browser/sync/internal_api/base_transaction.h"
29 #include "chrome/browser/sync/internal_api/sync_manager.h"
29 #include "chrome/browser/sync/js/js_arg_list.h" 30 #include "chrome/browser/sync/js/js_arg_list.h"
30 #include "chrome/browser/sync/js/js_event_details.h" 31 #include "chrome/browser/sync/js/js_event_details.h"
31 #include "chrome/browser/sync/js/js_event_handler.h" 32 #include "chrome/browser/sync/js/js_event_handler.h"
32 #include "chrome/browser/sync/notifier/sync_notifier.h" 33 #include "chrome/browser/sync/notifier/sync_notifier.h"
33 #include "chrome/browser/sync/sessions/session_state.h" 34 #include "chrome/browser/sync/sessions/session_state.h"
34 // TODO(tim): Remove this! We should have a syncapi pass-thru instead. 35 // TODO(tim): Remove this! We should have a syncapi pass-thru instead.
35 #include "chrome/browser/sync/syncable/directory_manager.h" // Cryptographer. 36 #include "chrome/browser/sync/syncable/directory_manager.h" // Cryptographer.
36 #include "chrome/browser/sync/syncable/model_type.h" 37 #include "chrome/browser/sync/syncable/model_type.h"
37 #include "chrome/common/chrome_notification_types.h" 38 #include "chrome/common/chrome_notification_types.h"
38 #include "chrome/common/chrome_switches.h" 39 #include "chrome/common/chrome_switches.h"
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 } 1050 }
1050 1051
1051 void SyncBackendHost::Core::DeleteSyncDataFolder() { 1052 void SyncBackendHost::Core::DeleteSyncDataFolder() {
1052 if (file_util::DirectoryExists(host_->sync_data_folder_path())) { 1053 if (file_util::DirectoryExists(host_->sync_data_folder_path())) {
1053 if (!file_util::Delete(host_->sync_data_folder_path(), true)) 1054 if (!file_util::Delete(host_->sync_data_folder_path(), true))
1054 LOG(DFATAL) << "Could not delete the Sync Data folder."; 1055 LOG(DFATAL) << "Could not delete the Sync Data folder.";
1055 } 1056 }
1056 } 1057 }
1057 1058
1058 } // namespace browser_sync 1059 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.h ('k') | chrome/browser/sync/glue/sync_backend_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698