Update CrOS OOBE throbber to MD throbber; delete old asset
[chromium-blink-merge.git] / chrome / common / extensions / chrome_manifest_url_handlers.h
blob396fb42cc4e635800b6e3e38c25897240876cb59
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
3 // found in the LICENSE file.
5 #ifndef CHROME_COMMON_EXTENSIONS_CHROME_MANIFEST_URL_HANDLERS_H_
6 #define CHROME_COMMON_EXTENSIONS_CHROME_MANIFEST_URL_HANDLERS_H_
8 #include <string>
10 #include "extensions/common/extension.h"
11 #include "extensions/common/manifest_handler.h"
13 // Chrome-specific extension manifest URL handlers.
15 namespace base {
16 class DictionaryValue;
19 namespace extensions {
21 namespace chrome_manifest_urls {
22 const GURL& GetDevToolsPage(const Extension* extension);
25 // Stores Chrome URL overrides specified in extensions manifests.
26 struct URLOverrides : public Extension::ManifestData {
27 typedef std::map<const std::string, GURL> URLOverrideMap;
29 URLOverrides();
30 ~URLOverrides() override;
32 static const URLOverrideMap& GetChromeURLOverrides(
33 const Extension* extension);
35 // A map of chrome:// hostnames (newtab, downloads, etc.) to Extension URLs
36 // which override the handling of those URLs. (see ExtensionOverrideUI).
37 URLOverrideMap chrome_url_overrides_;
40 // Parses the "devtools_page" manifest key.
41 class DevToolsPageHandler : public ManifestHandler {
42 public:
43 DevToolsPageHandler();
44 ~DevToolsPageHandler() override;
46 bool Parse(Extension* extension, base::string16* error) override;
48 private:
49 const std::vector<std::string> Keys() const override;
51 DISALLOW_COPY_AND_ASSIGN(DevToolsPageHandler);
54 // Parses the "chrome_url_overrides" manifest key.
55 class URLOverridesHandler : public ManifestHandler {
56 public:
57 URLOverridesHandler();
58 ~URLOverridesHandler() override;
60 bool Parse(Extension* extension, base::string16* error) override;
62 private:
63 const std::vector<std::string> Keys() const override;
65 DISALLOW_COPY_AND_ASSIGN(URLOverridesHandler);
68 } // namespace extensions
70 #endif // CHROME_COMMON_EXTENSIONS_CHROME_MANIFEST_URL_HANDLERS_H_