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

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

Issue 10830102: [Web Intents] Add ability to dispatch intents from extension-caused code (i.e. context menus) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ifdef out impl for android Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_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 #include <vector> 9 #include <vector>
10 10
(...skipping 18 matching lines...) Expand all
29 #include "chrome/browser/ui/android/extensions/extension_view_android.h" 29 #include "chrome/browser/ui/android/extensions/extension_view_android.h"
30 #endif 30 #endif
31 31
32 class Browser; 32 class Browser;
33 class PrefsTabHelper; 33 class PrefsTabHelper;
34 34
35 namespace content { 35 namespace content {
36 class RenderProcessHost; 36 class RenderProcessHost;
37 class RenderWidgetHostView; 37 class RenderWidgetHostView;
38 class SiteInstance; 38 class SiteInstance;
39 class WebIntentsDispatcher;
39 } 40 }
40 41
41 namespace extensions { 42 namespace extensions {
42 class Extension; 43 class Extension;
43 class WindowController; 44 class WindowController;
44 45
45 // This class is the browser component of an extension component's RenderView. 46 // This class is the browser component of an extension component's RenderView.
46 // It handles setting up the renderer process, if needed, with special 47 // It handles setting up the renderer process, if needed, with special
47 // privileges available to extensions. It may have a view to be shown in the 48 // privileges available to extensions. It may have a view to be shown in the
48 // browser UI, or it may be hidden. 49 // browser UI, or it may be hidden.
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 content::WebContents* tab, 160 content::WebContents* tab,
160 const content::FileChooserParams& params) OVERRIDE; 161 const content::FileChooserParams& params) OVERRIDE;
161 virtual void AddNewContents(content::WebContents* source, 162 virtual void AddNewContents(content::WebContents* source,
162 content::WebContents* new_contents, 163 content::WebContents* new_contents,
163 WindowOpenDisposition disposition, 164 WindowOpenDisposition disposition,
164 const gfx::Rect& initial_pos, 165 const gfx::Rect& initial_pos,
165 bool user_gesture) OVERRIDE; 166 bool user_gesture) OVERRIDE;
166 virtual void CloseContents(content::WebContents* contents) OVERRIDE; 167 virtual void CloseContents(content::WebContents* contents) OVERRIDE;
167 virtual void OnStartDownload(content::WebContents* source, 168 virtual void OnStartDownload(content::WebContents* source,
168 content::DownloadItem* download) OVERRIDE; 169 content::DownloadItem* download) OVERRIDE;
170 virtual void WebIntentDispatch(
171 content::WebContents* web_contents,
172 content::WebIntentsDispatcher* intents_dispatcher) OVERRIDE;
169 173
170 // content::NotificationObserver 174 // content::NotificationObserver
171 virtual void Observe(int type, 175 virtual void Observe(int type,
172 const content::NotificationSource& source, 176 const content::NotificationSource& source,
173 const content::NotificationDetails& details) OVERRIDE; 177 const content::NotificationDetails& details) OVERRIDE;
174 178
175 private: 179 private:
176 friend class ProcessCreationQueue; 180 friend class ProcessCreationQueue;
177 181
178 // Actually create the RenderView for this host. See CreateRenderViewSoon. 182 // Actually create the RenderView for this host. See CreateRenderViewSoon.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 258
255 // Used to measure how long it's been since the host was created. 259 // Used to measure how long it's been since the host was created.
256 PerfTimer since_created_; 260 PerfTimer since_created_;
257 261
258 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 262 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
259 }; 263 };
260 264
261 } // namespace extensions 265 } // namespace extensions
262 266
263 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 267 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698