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

Side by Side Diff: components/browser_sync/profile_sync_service.h

Issue 2538023002: [Sync] Pass a TaskRunner into SBHI/SBHC, not a thread or message loop. (Closed)
Patch Set: Remove thread check in destructor. Created 4 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
OLDNEW
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 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/gtest_prod_util.h" 15 #include "base/gtest_prod_util.h"
16 #include "base/location.h" 16 #include "base/location.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/memory/memory_pressure_listener.h" 18 #include "base/memory/memory_pressure_listener.h"
19 #include "base/memory/weak_ptr.h" 19 #include "base/memory/weak_ptr.h"
20 #include "base/message_loop/message_loop.h"
20 #include "base/observer_list.h" 21 #include "base/observer_list.h"
21 #include "base/strings/string16.h" 22 #include "base/strings/string16.h"
23 #include "base/threading/thread.h"
22 #include "base/threading/thread_checker.h" 24 #include "base/threading/thread_checker.h"
23 #include "base/time/time.h" 25 #include "base/time/time.h"
24 #include "base/timer/timer.h" 26 #include "base/timer/timer.h"
25 #include "build/build_config.h" 27 #include "build/build_config.h"
26 #include "components/keyed_service/core/keyed_service.h" 28 #include "components/keyed_service/core/keyed_service.h"
27 #include "components/signin/core/browser/gaia_cookie_manager_service.h" 29 #include "components/signin/core/browser/gaia_cookie_manager_service.h"
28 #include "components/signin/core/browser/signin_manager_base.h" 30 #include "components/signin/core/browser/signin_manager_base.h"
29 #include "components/sync/base/experiments.h" 31 #include "components/sync/base/experiments.h"
30 #include "components/sync/base/model_type.h" 32 #include "components/sync/base/model_type.h"
31 #include "components/sync/base/sync_prefs.h" 33 #include "components/sync/base/sync_prefs.h"
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after
1002 base::WeakPtrFactory<ProfileSyncService> weak_factory_; 1004 base::WeakPtrFactory<ProfileSyncService> weak_factory_;
1003 1005
1004 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1006 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1005 }; 1007 };
1006 1008
1007 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); 1009 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error);
1008 1010
1009 } // namespace browser_sync 1011 } // namespace browser_sync
1010 1012
1011 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 1013 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « components/browser_sync/profile_sync_components_factory_impl.cc ('k') | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698