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

Side by Side Diff: chrome/browser/extensions/api/storage/managed_value_store_cache.cc

Issue 78453005: Move PolicySchema and PolicySchemaRegistry to components/policy/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: export nested class on win Created 7 years, 1 month 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) 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 #include "chrome/browser/extensions/api/storage/managed_value_store_cache.h" 5 #include "chrome/browser/extensions/api/storage/managed_value_store_cache.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "chrome/browser/chrome_notification_types.h" 13 #include "chrome/browser/chrome_notification_types.h"
14 #include "chrome/browser/extensions/api/storage/policy_value_store.h" 14 #include "chrome/browser/extensions/api/storage/policy_value_store.h"
15 #include "chrome/browser/extensions/api/storage/settings_storage_factory.h" 15 #include "chrome/browser/extensions/api/storage/settings_storage_factory.h"
16 #include "chrome/browser/extensions/extension_prefs.h" 16 #include "chrome/browser/extensions/extension_prefs.h"
17 #include "chrome/browser/extensions/extension_service.h" 17 #include "chrome/browser/extensions/extension_service.h"
18 #include "chrome/browser/extensions/extension_system.h" 18 #include "chrome/browser/extensions/extension_system.h"
19 #include "chrome/browser/policy/profile_policy_connector.h" 19 #include "chrome/browser/policy/profile_policy_connector.h"
20 #include "chrome/browser/policy/profile_policy_connector_factory.h" 20 #include "chrome/browser/policy/profile_policy_connector_factory.h"
21 #include "chrome/browser/policy/schema_map.h"
22 #include "chrome/browser/policy/schema_registry.h"
23 #include "chrome/browser/policy/schema_registry_service.h" 21 #include "chrome/browser/policy/schema_registry_service.h"
24 #include "chrome/browser/policy/schema_registry_service_factory.h" 22 #include "chrome/browser/policy/schema_registry_service_factory.h"
25 #include "chrome/browser/profiles/profile.h" 23 #include "chrome/browser/profiles/profile.h"
26 #include "chrome/browser/value_store/value_store_change.h" 24 #include "chrome/browser/value_store/value_store_change.h"
27 #include "chrome/common/extensions/api/storage.h" 25 #include "chrome/common/extensions/api/storage.h"
28 #include "chrome/common/extensions/api/storage/storage_schema_manifest_handler.h " 26 #include "chrome/common/extensions/api/storage/storage_schema_manifest_handler.h "
29 #include "chrome/common/extensions/extension_set.h" 27 #include "chrome/common/extensions/extension_set.h"
30 #include "components/policy/core/common/policy_namespace.h" 28 #include "components/policy/core/common/policy_namespace.h"
31 #include "components/policy/core/common/schema.h" 29 #include "components/policy/core/common/schema.h"
30 #include "components/policy/core/common/schema_map.h"
31 #include "components/policy/core/common/schema_registry.h"
32 #include "content/public/browser/browser_thread.h" 32 #include "content/public/browser/browser_thread.h"
33 #include "content/public/browser/notification_details.h" 33 #include "content/public/browser/notification_details.h"
34 #include "content/public/browser/notification_observer.h" 34 #include "content/public/browser/notification_observer.h"
35 #include "content/public/browser/notification_registrar.h" 35 #include "content/public/browser/notification_registrar.h"
36 #include "content/public/browser/notification_source.h" 36 #include "content/public/browser/notification_source.h"
37 #include "extensions/common/constants.h" 37 #include "extensions/common/constants.h"
38 #include "extensions/common/extension.h" 38 #include "extensions/common/extension.h"
39 #include "extensions/common/manifest.h" 39 #include "extensions/common/manifest.h"
40 #include "extensions/common/manifest_constants.h" 40 #include "extensions/common/manifest_constants.h"
41 #include "extensions/common/permissions/api_permission.h" 41 #include "extensions/common/permissions/api_permission.h"
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 PolicyValueStore* store = new PolicyValueStore( 344 PolicyValueStore* store = new PolicyValueStore(
345 extension_id, 345 extension_id,
346 observers_, 346 observers_,
347 make_scoped_ptr(storage_factory_->Create(base_path_, extension_id))); 347 make_scoped_ptr(storage_factory_->Create(base_path_, extension_id)));
348 store_map_[extension_id] = make_linked_ptr(store); 348 store_map_[extension_id] = make_linked_ptr(store);
349 349
350 return store; 350 return store;
351 } 351 }
352 352
353 } // namespace extensions 353 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698