OLD | NEW |
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 #include "chrome/common/extensions/api/storage/storage_schema_manifest_handler.h
" | 5 #include "chrome/common/extensions/api/storage/storage_schema_manifest_handler.h
" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
16 #include "chrome/common/extensions/extension.h" | 16 #include "chrome/common/extensions/extension.h" |
17 #include "chrome/common/extensions/extension_manifest_constants.h" | 17 #include "chrome/common/extensions/extension_manifest_constants.h" |
18 #include "chrome/common/extensions/manifest.h" | 18 #include "chrome/common/extensions/manifest.h" |
19 #include "chrome/common/extensions/permissions/api_permission.h" | 19 #include "chrome/common/extensions/permissions/api_permission.h" |
20 #include "chrome/common/policy/policy_schema.h" | 20 #include "components/policy/core/common/policy_schema.h" |
21 #include "extensions/common/install_warning.h" | 21 #include "extensions/common/install_warning.h" |
22 | 22 |
23 using extension_manifest_keys::kStorageManagedSchema; | 23 using extension_manifest_keys::kStorageManagedSchema; |
24 | 24 |
25 namespace extensions { | 25 namespace extensions { |
26 | 26 |
27 StorageSchemaManifestHandler::StorageSchemaManifestHandler() {} | 27 StorageSchemaManifestHandler::StorageSchemaManifestHandler() {} |
28 | 28 |
29 StorageSchemaManifestHandler::~StorageSchemaManifestHandler() {} | 29 StorageSchemaManifestHandler::~StorageSchemaManifestHandler() {} |
30 | 30 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 std::string* error, | 75 std::string* error, |
76 std::vector<InstallWarning>* warnings) const { | 76 std::vector<InstallWarning>* warnings) const { |
77 return !!GetSchema(extension, error); | 77 return !!GetSchema(extension, error); |
78 } | 78 } |
79 | 79 |
80 const std::vector<std::string> StorageSchemaManifestHandler::Keys() const { | 80 const std::vector<std::string> StorageSchemaManifestHandler::Keys() const { |
81 return SingleKey(kStorageManagedSchema); | 81 return SingleKey(kStorageManagedSchema); |
82 } | 82 } |
83 | 83 |
84 } // namespace extensions | 84 } // namespace extensions |
OLD | NEW |