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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 // This class implements WebUI for extensions and allows extensions to put UI in | 30 // This class implements WebUI for extensions and allows extensions to put UI in |
31 // the main tab contents area. For example, each extension can specify an | 31 // the main tab contents area. For example, each extension can specify an |
32 // "options_page", and that page is displayed in the tab contents area and is | 32 // "options_page", and that page is displayed in the tab contents area and is |
33 // hosted by this class. | 33 // hosted by this class. |
34 class ExtensionWebUI : public content::WebUIController { | 34 class ExtensionWebUI : public content::WebUIController { |
35 public: | 35 public: |
36 static const char kExtensionURLOverrides[]; | 36 static const char kExtensionURLOverrides[]; |
37 | 37 |
38 ExtensionWebUI(content::WebUI* web_ui, const GURL& url); | 38 ExtensionWebUI(content::WebUI* web_ui, const GURL& url); |
39 | 39 |
40 virtual ~ExtensionWebUI(); | 40 ~ExtensionWebUI() override; |
41 | 41 |
42 virtual extensions::BookmarkManagerPrivateDragEventRouter* | 42 virtual extensions::BookmarkManagerPrivateDragEventRouter* |
43 bookmark_manager_private_drag_event_router(); | 43 bookmark_manager_private_drag_event_router(); |
44 | 44 |
45 // BrowserURLHandler | 45 // BrowserURLHandler |
46 static bool HandleChromeURLOverride(GURL* url, | 46 static bool HandleChromeURLOverride(GURL* url, |
47 content::BrowserContext* browser_context); | 47 content::BrowserContext* browser_context); |
48 static bool HandleChromeURLOverrideReverse( | 48 static bool HandleChromeURLOverrideReverse( |
49 GURL* url, content::BrowserContext* browser_context); | 49 GURL* url, content::BrowserContext* browser_context); |
50 | 50 |
(...skipping 29 matching lines...) Expand all Loading... |
80 // TODO(aa): This seems out of place. Why is it not with the event routers for | 80 // TODO(aa): This seems out of place. Why is it not with the event routers for |
81 // the other extension APIs? | 81 // the other extension APIs? |
82 scoped_ptr<extensions::BookmarkManagerPrivateDragEventRouter> | 82 scoped_ptr<extensions::BookmarkManagerPrivateDragEventRouter> |
83 bookmark_manager_private_drag_event_router_; | 83 bookmark_manager_private_drag_event_router_; |
84 | 84 |
85 // The URL this WebUI was created for. | 85 // The URL this WebUI was created for. |
86 GURL url_; | 86 GURL url_; |
87 }; | 87 }; |
88 | 88 |
89 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_H_ | 89 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_H_ |
OLD | NEW |