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

Side by Side Diff: components/sync/driver/sync_service_base.h

Issue 2898723003: [Sync] Migrate SyncInternalsMessageHandler off CallJavascriptFunctionUnsafe. (Closed)
Patch Set: More updates for dbeam. Created 3 years, 6 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
« no previous file with comments | « components/sync/driver/sync_service.h ('k') | components/sync/driver/sync_service_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SYNC_DRIVER_SYNC_SERVICE_BASE_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_BASE_H_
6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_BASE_H_ 6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_BASE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 29 matching lines...) Expand all
40 std::unique_ptr<SigninManagerWrapper> signin, 40 std::unique_ptr<SigninManagerWrapper> signin,
41 const version_info::Channel& channel, 41 const version_info::Channel& channel,
42 const base::FilePath& base_directory, 42 const base::FilePath& base_directory,
43 const std::string& debug_identifier); 43 const std::string& debug_identifier);
44 ~SyncServiceBase() override; 44 ~SyncServiceBase() override;
45 45
46 // SyncService partial implementation. 46 // SyncService partial implementation.
47 void AddObserver(SyncServiceObserver* observer) override; 47 void AddObserver(SyncServiceObserver* observer) override;
48 void RemoveObserver(SyncServiceObserver* observer) override; 48 void RemoveObserver(SyncServiceObserver* observer) override;
49 bool HasObserver(const SyncServiceObserver* observer) const override; 49 bool HasObserver(const SyncServiceObserver* observer) const override;
50 SigninManagerBase* signin() const override;
50 51
51 // Given base path (path to profile) formats path to "Sync Data" folder where 52 // Given base path (path to profile) formats path to "Sync Data" folder where
52 // sync engine stores directory database. 53 // sync engine stores directory database.
53 static base::FilePath FormatSyncDataPath( 54 static base::FilePath FormatSyncDataPath(
54 const base::FilePath& base_directory); 55 const base::FilePath& base_directory);
55 56
56 // Given base path (path to profile) formats path to a folder containing 57 // Given base path (path to profile) formats path to a folder containing
57 // ModelTypeStore's leveldb database. 58 // ModelTypeStore's leveldb database.
58 static base::FilePath FormatSharedModelTypeStorePath( 59 static base::FilePath FormatSharedModelTypeStorePath(
59 const base::FilePath& base_directory); 60 const base::FilePath& base_directory);
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // this object was created on. 126 // this object was created on.
126 base::ThreadChecker thread_checker_; 127 base::ThreadChecker thread_checker_;
127 128
128 private: 129 private:
129 DISALLOW_COPY_AND_ASSIGN(SyncServiceBase); 130 DISALLOW_COPY_AND_ASSIGN(SyncServiceBase);
130 }; 131 };
131 132
132 } // namespace syncer 133 } // namespace syncer
133 134
134 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_BASE_H_ 135 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_BASE_H_
OLDNEW
« no previous file with comments | « components/sync/driver/sync_service.h ('k') | components/sync/driver/sync_service_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698