| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h" | 12 #include "chrome/browser/bookmarks/bookmark_manager_extension_api.h" |
| 13 #include "chrome/browser/favicon/favicon_service.h" | 13 #include "chrome/browser/favicon/favicon_service.h" |
| 14 #include "chrome/browser/ui/webui/chrome_web_ui.h" | 14 #include "chrome/browser/ui/webui/chrome_web_ui.h" |
| 15 #include "chrome/common/extensions/extension.h" | 15 #include "chrome/common/extensions/extension.h" |
| 16 | 16 |
| 17 class GURL; | 17 class GURL; |
| 18 class PrefService; | 18 class PrefService; |
| 19 class Profile; | 19 class Profile; |
| 20 class RenderViewHost; | |
| 21 class TabContents; | 20 class TabContents; |
| 22 | 21 |
| 23 namespace base { | 22 namespace base { |
| 24 class ListValue; | 23 class ListValue; |
| 25 class Value; | 24 class Value; |
| 26 } | 25 } |
| 27 | 26 |
| 28 // This class implements WebUI for extensions and allows extensions to put UI in | 27 // This class implements WebUI for extensions and allows extensions to put UI in |
| 29 // the main tab contents area. For example, each extension can specify an | 28 // the main tab contents area. For example, each extension can specify an |
| 30 // "options_page", and that page is displayed in the tab contents area and is | 29 // "options_page", and that page is displayed in the tab contents area and is |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // TODO(aa): This seems out of place. Why is it not with the event routers for | 75 // TODO(aa): This seems out of place. Why is it not with the event routers for |
| 77 // the other extension APIs? | 76 // the other extension APIs? |
| 78 scoped_ptr<BookmarkManagerExtensionEventRouter> | 77 scoped_ptr<BookmarkManagerExtensionEventRouter> |
| 79 bookmark_manager_extension_event_router_; | 78 bookmark_manager_extension_event_router_; |
| 80 | 79 |
| 81 // The URL this WebUI was created for. | 80 // The URL this WebUI was created for. |
| 82 GURL url_; | 81 GURL url_; |
| 83 }; | 82 }; |
| 84 | 83 |
| 85 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_H_ | 84 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WEB_UI_H_ |
| OLD | NEW |