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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "chrome/common/extensions/chrome_manifest_url_handlers.h" | 12 #include "chrome/common/extensions/chrome_manifest_url_handlers.h" |
13 #include "components/favicon_base/favicon_callback.h" | 13 #include "components/favicon_base/favicon_callback.h" |
14 #include "content/public/browser/web_ui_controller.h" | 14 #include "content/public/browser/web_ui_controller.h" |
15 | 15 |
16 class Profile; | 16 class Profile; |
17 | 17 |
18 namespace content { | 18 namespace content { |
19 class BrowserContext; | 19 class BrowserContext; |
20 class WebContents; | |
21 } | 20 } |
22 | 21 |
23 namespace user_prefs { | 22 namespace user_prefs { |
24 class PrefRegistrySyncable; | 23 class PrefRegistrySyncable; |
25 } | 24 } |
26 | 25 |
27 // A collection of methods to handle Chrome URL overrides that are managed by | 26 // A collection of methods to handle Chrome URL overrides that are managed by |
28 // extensions (such as overriding the new tab page). | 27 // extensions (such as overriding the new tab page). |
29 // TODO(devlin): Rename this class to ExtensionURLOverrides. | 28 // TODO(devlin): Rename this class to ExtensionURLOverrides. |
30 class ExtensionWebUI { | 29 class ExtensionWebUI { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 private: | 74 private: |
76 // Unregister the specified override, and if it's the currently active one, | 75 // Unregister the specified override, and if it's the currently active one, |
77 // ensure that something takes its place. | 76 // ensure that something takes its place. |
78 static void UnregisterAndReplaceOverride(const std::string& page, | 77 static void UnregisterAndReplaceOverride(const std::string& page, |
79 Profile* profile, | 78 Profile* profile, |
80 base::ListValue* list, | 79 base::ListValue* list, |
81 const base::Value* override); | 80 const base::Value* override); |
82 }; | 81 }; |
83 | 82 |
84 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_H_ | 83 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_H_ |
OLD | NEW |