Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: chrome/browser/extensions/extension_host.h

Issue 159763: Rolling back change 22245. (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: Created 11 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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_HOST_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 private: 117 private:
118 // Whether to allow DOM automation for created RenderViewHosts. This is used 118 // Whether to allow DOM automation for created RenderViewHosts. This is used
119 // for testing. 119 // for testing.
120 static bool enable_dom_automation_; 120 static bool enable_dom_automation_;
121 121
122 // ExtensionFunctionDispatcher::Delegate 122 // ExtensionFunctionDispatcher::Delegate
123 // If this ExtensionHost has a view, this returns the Browser that view is a 123 // If this ExtensionHost has a view, this returns the Browser that view is a
124 // part of. If this is a global background page, we use the active Browser 124 // part of. If this is a global background page, we use the active Browser
125 // instead. 125 // instead.
126 virtual Browser* GetBrowser(); 126 virtual Browser* GetBrowser();
127 virtual ExtensionHost* GetExtensionHost() { return this; }
128 127
129 // The extension that we're hosting in this view. 128 // The extension that we're hosting in this view.
130 Extension* extension_; 129 Extension* extension_;
131 130
132 // The profile that this host is tied to. 131 // The profile that this host is tied to.
133 Profile* profile_; 132 Profile* profile_;
134 133
135 // Optional view that shows the rendered content in the UI. 134 // Optional view that shows the rendered content in the UI.
136 #if defined(TOOLKIT_VIEWS) 135 #if defined(TOOLKIT_VIEWS)
137 scoped_ptr<ExtensionView> view_; 136 scoped_ptr<ExtensionView> view_;
(...skipping 12 matching lines...) Expand all
150 149
151 // The URL being hosted. 150 // The URL being hosted.
152 GURL url_; 151 GURL url_;
153 152
154 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; 153 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_;
155 154
156 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 155 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
157 }; 156 };
158 157
159 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 158 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function_dispatcher.cc ('k') | chrome/browser/extensions/extension_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698