| 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 <memory> |
| 7 #include <string> | 8 #include <string> |
| 8 #include <vector> | 9 #include <vector> |
| 9 | 10 |
| 10 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
| 11 #include "base/files/file_util.h" | 12 #include "base/files/file_util.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 "components/policy/core/common/schema.h" | 16 #include "components/policy/core/common/schema.h" |
| 17 #include "extensions/common/extension.h" | 17 #include "extensions/common/extension.h" |
| 18 #include "extensions/common/install_warning.h" | 18 #include "extensions/common/install_warning.h" |
| 19 #include "extensions/common/manifest.h" | 19 #include "extensions/common/manifest.h" |
| 20 #include "extensions/common/manifest_constants.h" | 20 #include "extensions/common/manifest_constants.h" |
| 21 #include "extensions/common/manifest_handlers/permissions_parser.h" | 21 #include "extensions/common/manifest_handlers/permissions_parser.h" |
| 22 #include "extensions/common/permissions/api_permission.h" | 22 #include "extensions/common/permissions/api_permission.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 std::string* error, | 78 std::string* error, |
| 79 std::vector<InstallWarning>* warnings) const { | 79 std::vector<InstallWarning>* warnings) const { |
| 80 return GetSchema(extension, error).valid(); | 80 return GetSchema(extension, error).valid(); |
| 81 } | 81 } |
| 82 | 82 |
| 83 const std::vector<std::string> StorageSchemaManifestHandler::Keys() const { | 83 const std::vector<std::string> StorageSchemaManifestHandler::Keys() const { |
| 84 return SingleKey(kStorageManagedSchema); | 84 return SingleKey(kStorageManagedSchema); |
| 85 } | 85 } |
| 86 | 86 |
| 87 } // namespace extensions | 87 } // namespace extensions |
| OLD | NEW |