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 <string> | 9 #include <string> |
9 | 10 |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "chrome/common/extensions/chrome_manifest_url_handlers.h" | 11 #include "chrome/common/extensions/chrome_manifest_url_handlers.h" |
12 #include "components/favicon_base/favicon_callback.h" | 12 #include "components/favicon_base/favicon_callback.h" |
13 #include "content/public/browser/web_ui_controller.h" | 13 #include "content/public/browser/web_ui_controller.h" |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 class BrowserContext; | 18 class BrowserContext; |
19 class WebContents; | 19 class WebContents; |
20 } | 20 } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 private: | 87 private: |
88 // Unregister the specified override, and if it's the currently active one, | 88 // Unregister the specified override, and if it's the currently active one, |
89 // ensure that something takes its place. | 89 // ensure that something takes its place. |
90 static void UnregisterAndReplaceOverride(const std::string& page, | 90 static void UnregisterAndReplaceOverride(const std::string& page, |
91 Profile* profile, | 91 Profile* profile, |
92 base::ListValue* list, | 92 base::ListValue* list, |
93 const base::Value* override); | 93 const base::Value* override); |
94 | 94 |
95 // TODO(aa): This seems out of place. Why is it not with the event routers for | 95 // TODO(aa): This seems out of place. Why is it not with the event routers for |
96 // the other extension APIs? | 96 // the other extension APIs? |
97 scoped_ptr<extensions::BookmarkManagerPrivateDragEventRouter> | 97 std::unique_ptr<extensions::BookmarkManagerPrivateDragEventRouter> |
98 bookmark_manager_private_drag_event_router_; | 98 bookmark_manager_private_drag_event_router_; |
99 | 99 |
100 // The URL this WebUI was created for. | 100 // The URL this WebUI was created for. |
101 GURL url_; | 101 GURL url_; |
102 }; | 102 }; |
103 | 103 |
104 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_H_ | 104 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_H_ |
OLD | NEW |