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

Side by Side Diff: chrome/browser/extensions/extension_sync_service.h

Issue 907533004: [Extensions] Sync the 'allowed scripting on all urls' preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "chrome/browser/extensions/app_sync_bundle.h" 12 #include "chrome/browser/extensions/app_sync_bundle.h"
13 #include "chrome/browser/extensions/extension_sync_bundle.h" 13 #include "chrome/browser/extensions/extension_sync_bundle.h"
14 #include "chrome/browser/extensions/extension_sync_data.h"
14 #include "chrome/browser/extensions/pending_enables.h" 15 #include "chrome/browser/extensions/pending_enables.h"
15 #include "components/keyed_service/core/keyed_service.h" 16 #include "components/keyed_service/core/keyed_service.h"
16 #include "extensions/browser/extension_prefs.h" 17 #include "extensions/browser/extension_prefs.h"
17 #include "extensions/common/extension.h" 18 #include "extensions/common/extension.h"
18 #include "sync/api/string_ordinal.h" 19 #include "sync/api/string_ordinal.h"
19 #include "sync/api/sync_change.h" 20 #include "sync/api/sync_change.h"
20 #include "sync/api/syncable_service.h" 21 #include "sync/api/syncable_service.h"
21 22
22 class ExtensionSyncData;
23 class Profile; 23 class Profile;
24 24
25 namespace base { 25 namespace base {
26 class SequencedTaskRunner; 26 class SequencedTaskRunner;
27 } 27 }
28 28
29 namespace extensions { 29 namespace extensions {
30 class AppSyncData; 30 class AppSyncData;
31 class ExtensionPrefs;
32 class ExtensionSyncData;
33 } // namespace extensions 31 } // namespace extensions
34 32
35 namespace syncer { 33 namespace syncer {
36 class SyncErrorFactory; 34 class SyncErrorFactory;
37 } 35 }
38 36
39 class ExtensionSyncService : public syncer::SyncableService, 37 class ExtensionSyncService : public syncer::SyncableService,
40 public KeyedService { 38 public KeyedService {
41 public: 39 public:
42 ExtensionSyncService(Profile* profile, 40 ExtensionSyncService(Profile* profile,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 148
151 // Run()ning tells sync to try and start soon, because syncable changes 149 // Run()ning tells sync to try and start soon, because syncable changes
152 // have started happening. It will cause sync to call us back 150 // have started happening. It will cause sync to call us back
153 // asynchronously via MergeDataAndStartSyncing as soon as possible. 151 // asynchronously via MergeDataAndStartSyncing as soon as possible.
154 syncer::SyncableService::StartSyncFlare flare_; 152 syncer::SyncableService::StartSyncFlare flare_;
155 153
156 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncService); 154 DISALLOW_COPY_AND_ASSIGN(ExtensionSyncService);
157 }; 155 };
158 156
159 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_ 157 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_sync_data_unittest.cc ('k') | chrome/browser/extensions/extension_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698