summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_web_ui.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-17 18:42:22 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-17 18:42:22 +0000
commitc63cedf228f9390647cafed05b64d0fc1fdf3e54 (patch)
treee9c179d0030a2360c877e18d326c6a99ec45ce9e /chrome/browser/extensions/extension_web_ui.h
parenta12ce8b2f53218843671aefec951e7bcc935d0fc (diff)
downloadchromium_src-c63cedf228f9390647cafed05b64d0fc1fdf3e54.zip
chromium_src-c63cedf228f9390647cafed05b64d0fc1fdf3e54.tar.gz
chromium_src-c63cedf228f9390647cafed05b64d0fc1fdf3e54.tar.bz2
Make WebUI objects not derive from WebUI. WebUI objects own the controller. This is the ownership model since otherwise we'd have to make the interface class delete it, which is better avoided since it's supposed to be an interface. The controller has a pointer to the WebUI object.
BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9224002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117925 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_web_ui.h')
-rw-r--r--chrome/browser/extensions/extension_web_ui.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension_web_ui.h b/chrome/browser/extensions/extension_web_ui.h
index 4996c63..92052d9 100644
--- a/chrome/browser/extensions/extension_web_ui.h
+++ b/chrome/browser/extensions/extension_web_ui.h
@@ -12,7 +12,6 @@
#include "chrome/browser/bookmarks/bookmark_manager_extension_api.h"
#include "chrome/browser/favicon/favicon_service.h"
#include "chrome/common/extensions/extension.h"
-#include "content/browser/webui/web_ui.h"
#include "content/public/browser/web_ui_controller.h"
class PrefService;
@@ -22,11 +21,11 @@ class Profile;
// the main tab contents area. For example, each extension can specify an
// "options_page", and that page is displayed in the tab contents area and is
// hosted by this class.
-class ExtensionWebUI : public WebUI, public content::WebUIController {
+class ExtensionWebUI : public content::WebUIController {
public:
static const char kExtensionURLOverrides[];
- ExtensionWebUI(content::WebContents* web_contents, const GURL& url);
+ ExtensionWebUI(WebUI* web_ui, const GURL& url);
virtual ~ExtensionWebUI();