| OLD | NEW |
| 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/common/extensions/chrome_manifest_url_handlers.h" | 5 #include "chrome/common/extensions/chrome_manifest_url_handlers.h" |
| 6 | 6 |
| 7 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/values.h" | 12 #include "base/values.h" |
| 13 #include "chrome/common/chrome_constants.h" | 13 #include "chrome/common/chrome_constants.h" |
| 14 #include "chrome/common/url_constants.h" | 14 #include "chrome/common/url_constants.h" |
| 15 #include "extensions/common/error_utils.h" | 15 #include "extensions/common/error_utils.h" |
| 16 #include "extensions/common/manifest.h" | 16 #include "extensions/common/manifest.h" |
| 17 #include "extensions/common/manifest_constants.h" | 17 #include "extensions/common/manifest_constants.h" |
| 18 #include "extensions/common/manifest_handlers/permissions_parser.h" | 18 #include "extensions/common/manifest_handlers/permissions_parser.h" |
| 19 #include "extensions/common/manifest_handlers/shared_module_info.h" | 19 #include "extensions/common/manifest_handlers/shared_module_info.h" |
| 20 #include "extensions/common/manifest_url_handlers.h" | 20 #include "extensions/common/manifest_url_handlers.h" |
| 21 #include "extensions/common/permissions/api_permission.h" | 21 #include "extensions/common/permissions/api_permission.h" |
| 22 | 22 |
| 23 #if defined(USE_AURA) | 23 #if defined(USE_AURA) |
| 24 #include "ui/keyboard/content/keyboard_constants.h" | 24 #include "ui/keyboard/content/keyboard_constants.h" // nogncheck |
| 25 #endif | 25 #endif |
| 26 | 26 |
| 27 namespace extensions { | 27 namespace extensions { |
| 28 | 28 |
| 29 namespace keys = manifest_keys; | 29 namespace keys = manifest_keys; |
| 30 namespace errors = manifest_errors; | 30 namespace errors = manifest_errors; |
| 31 | 31 |
| 32 namespace { | 32 namespace { |
| 33 | 33 |
| 34 const char kOverrideExtentUrlPatternFormat[] = "chrome://%s/*"; | 34 const char kOverrideExtentUrlPatternFormat[] = "chrome://%s/*"; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 extension->SetManifestData(keys::kChromeURLOverrides, | 143 extension->SetManifestData(keys::kChromeURLOverrides, |
| 144 url_overrides.release()); | 144 url_overrides.release()); |
| 145 return true; | 145 return true; |
| 146 } | 146 } |
| 147 | 147 |
| 148 const std::vector<std::string> URLOverridesHandler::Keys() const { | 148 const std::vector<std::string> URLOverridesHandler::Keys() const { |
| 149 return SingleKey(keys::kChromeURLOverrides); | 149 return SingleKey(keys::kChromeURLOverrides); |
| 150 } | 150 } |
| 151 | 151 |
| 152 } // namespace extensions | 152 } // namespace extensions |
| OLD | NEW |