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

Side by Side Diff: chrome/browser/sync/engine/syncapi.cc

Issue 5512009: Remove unneeded browser_process.h includes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux build Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/sync/engine/syncapi.h" 5 #include "chrome/browser/sync/engine/syncapi.h"
6 6
7 #include "build/build_config.h"
8
9 #include <bitset> 7 #include <bitset>
10 #include <iomanip> 8 #include <iomanip>
11 #include <list> 9 #include <list>
12 #include <string> 10 #include <string>
13 #include <vector> 11 #include <vector>
14 12
15 #include "base/basictypes.h"
16 #include "base/base64.h" 13 #include "base/base64.h"
17 #include "base/lock.h" 14 #include "base/lock.h"
18 #include "base/logging.h" 15 #include "base/logging.h"
19 #include "base/message_loop.h" 16 #include "base/message_loop.h"
20 #include "base/platform_thread.h" 17 #include "base/platform_thread.h"
21 #include "base/scoped_ptr.h" 18 #include "base/scoped_ptr.h"
22 #include "base/sha1.h" 19 #include "base/sha1.h"
23 #include "base/string_util.h" 20 #include "base/string_util.h"
24 #include "base/task.h" 21 #include "base/task.h"
25 #include "base/utf_string_conversions.h" 22 #include "base/utf_string_conversions.h"
26 #include "chrome/browser/browser_process.h"
27 #include "chrome/browser/browser_thread.h" 23 #include "chrome/browser/browser_thread.h"
28 #include "chrome/browser/sync/sync_constants.h" 24 #include "chrome/browser/sync/sync_constants.h"
29 #include "chrome/browser/sync/engine/all_status.h" 25 #include "chrome/browser/sync/engine/all_status.h"
30 #include "chrome/browser/sync/engine/change_reorder_buffer.h" 26 #include "chrome/browser/sync/engine/change_reorder_buffer.h"
31 #include "chrome/browser/sync/engine/model_safe_worker.h" 27 #include "chrome/browser/sync/engine/model_safe_worker.h"
32 #include "chrome/browser/sync/engine/net/server_connection_manager.h" 28 #include "chrome/browser/sync/engine/net/server_connection_manager.h"
33 #include "chrome/browser/sync/engine/net/syncapi_server_connection_manager.h" 29 #include "chrome/browser/sync/engine/net/syncapi_server_connection_manager.h"
34 #include "chrome/browser/sync/engine/syncer.h" 30 #include "chrome/browser/sync/engine/syncer.h"
35 #include "chrome/browser/sync/engine/syncer_thread.h" 31 #include "chrome/browser/sync/engine/syncer_thread.h"
36 #include "chrome/browser/sync/notifier/server_notifier_thread.h" 32 #include "chrome/browser/sync/notifier/server_notifier_thread.h"
37 #include "chrome/browser/sync/notifier/state_writer.h" 33 #include "chrome/browser/sync/notifier/state_writer.h"
38 #include "chrome/browser/sync/protocol/app_specifics.pb.h" 34 #include "chrome/browser/sync/protocol/app_specifics.pb.h"
39 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" 35 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h"
40 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" 36 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h"
41 #include "chrome/browser/sync/protocol/extension_specifics.pb.h" 37 #include "chrome/browser/sync/protocol/extension_specifics.pb.h"
42 #include "chrome/browser/sync/protocol/nigori_specifics.pb.h" 38 #include "chrome/browser/sync/protocol/nigori_specifics.pb.h"
43 #include "chrome/browser/sync/protocol/password_specifics.pb.h"
44 #include "chrome/browser/sync/protocol/preference_specifics.pb.h" 39 #include "chrome/browser/sync/protocol/preference_specifics.pb.h"
45 #include "chrome/browser/sync/protocol/session_specifics.pb.h" 40 #include "chrome/browser/sync/protocol/session_specifics.pb.h"
46 #include "chrome/browser/sync/protocol/service_constants.h" 41 #include "chrome/browser/sync/protocol/service_constants.h"
47 #include "chrome/browser/sync/protocol/sync.pb.h" 42 #include "chrome/browser/sync/protocol/sync.pb.h"
48 #include "chrome/browser/sync/protocol/theme_specifics.pb.h" 43 #include "chrome/browser/sync/protocol/theme_specifics.pb.h"
49 #include "chrome/browser/sync/protocol/typed_url_specifics.pb.h" 44 #include "chrome/browser/sync/protocol/typed_url_specifics.pb.h"
50 #include "chrome/browser/sync/sessions/sync_session_context.h" 45 #include "chrome/browser/sync/sessions/sync_session_context.h"
51 #include "chrome/browser/sync/syncable/directory_manager.h" 46 #include "chrome/browser/sync/syncable/directory_manager.h"
52 #include "chrome/browser/sync/syncable/syncable.h" 47 #include "chrome/browser/sync/syncable/syncable.h"
53 #include "chrome/browser/sync/util/crypto_helpers.h" 48 #include "chrome/browser/sync/util/crypto_helpers.h"
(...skipping 2219 matching lines...) Expand 10 before | Expand all | Expand 10 after
2273 DCHECK(data_->initialized()) << "GetUserShare requires initialization!"; 2268 DCHECK(data_->initialized()) << "GetUserShare requires initialization!";
2274 return data_->GetUserShare(); 2269 return data_->GetUserShare();
2275 } 2270 }
2276 2271
2277 bool SyncManager::HasUnsyncedItems() const { 2272 bool SyncManager::HasUnsyncedItems() const {
2278 sync_api::ReadTransaction trans(GetUserShare()); 2273 sync_api::ReadTransaction trans(GetUserShare());
2279 return (trans.GetWrappedTrans()->directory()->unsynced_entity_count() != 0); 2274 return (trans.GetWrappedTrans()->directory()->unsynced_entity_count() != 0);
2280 } 2275 }
2281 2276
2282 } // namespace sync_api 2277 } // namespace sync_api
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698