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

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

Issue 160276: mole expand/collapse API (Closed)
Patch Set: fixed a couple of crashers 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; }
127 128
128 // The extension that we're hosting in this view. 129 // The extension that we're hosting in this view.
129 Extension* extension_; 130 Extension* extension_;
130 131
131 // The profile that this host is tied to. 132 // The profile that this host is tied to.
132 Profile* profile_; 133 Profile* profile_;
133 134
134 // Optional view that shows the rendered content in the UI. 135 // Optional view that shows the rendered content in the UI.
135 #if defined(TOOLKIT_VIEWS) 136 #if defined(TOOLKIT_VIEWS)
136 scoped_ptr<ExtensionView> view_; 137 scoped_ptr<ExtensionView> view_;
(...skipping 12 matching lines...) Expand all
149 150
150 // The URL being hosted. 151 // The URL being hosted.
151 GURL url_; 152 GURL url_;
152 153
153 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; 154 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_;
154 155
155 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 156 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
156 }; 157 };
157 158
158 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 159 #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