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

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: 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
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 46
46 // This class is the browser component of an extension component's RenderView. 47 // This class is the browser component of an extension component's RenderView.
47 // It handles setting up the renderer process, if needed, with special 48 // It handles setting up the renderer process, if needed, with special
48 // privileges available to extensions. It may have a view to be shown in the 49 // privileges available to extensions. It may have a view to be shown in the
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 content::WebContents* tab, 159 content::WebContents* tab,
159 const content::FileChooserParams& params) OVERRIDE; 160 const content::FileChooserParams& params) OVERRIDE;
160 virtual void AddNewContents(content::WebContents* source, 161 virtual void AddNewContents(content::WebContents* source,
161 content::WebContents* new_contents, 162 content::WebContents* new_contents,
162 WindowOpenDisposition disposition, 163 WindowOpenDisposition disposition,
163 const gfx::Rect& initial_pos, 164 const gfx::Rect& initial_pos,
164 bool user_gesture) OVERRIDE; 165 bool user_gesture) OVERRIDE;
165 virtual void CloseContents(content::WebContents* contents) OVERRIDE; 166 virtual void CloseContents(content::WebContents* contents) OVERRIDE;
166 virtual void OnStartDownload(content::WebContents* source, 167 virtual void OnStartDownload(content::WebContents* source,
167 content::DownloadItem* download) OVERRIDE; 168 content::DownloadItem* download) OVERRIDE;
169 virtual void WebIntentDispatch(
170 content::WebContents* web_contents,
171 content::WebIntentsDispatcher* intents_dispatcher) OVERRIDE;
168 172
169 // content::NotificationObserver 173 // content::NotificationObserver
170 virtual void Observe(int type, 174 virtual void Observe(int type,
171 const content::NotificationSource& source, 175 const content::NotificationSource& source,
172 const content::NotificationDetails& details) OVERRIDE; 176 const content::NotificationDetails& details) OVERRIDE;
173 177
174 private: 178 private:
175 friend class ProcessCreationQueue; 179 friend class ProcessCreationQueue;
176 180
177 // Actually create the RenderView for this host. See CreateRenderViewSoon. 181 // Actually create the RenderView for this host. See CreateRenderViewSoon.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 // The relevant WebContents associated with this ExtensionHost, if any. 254 // The relevant WebContents associated with this ExtensionHost, if any.
251 content::WebContents* associated_web_contents_; 255 content::WebContents* associated_web_contents_;
252 256
253 // Used to measure how long it's been since the host was created. 257 // Used to measure how long it's been since the host was created.
254 PerfTimer since_created_; 258 PerfTimer since_created_;
255 259
256 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 260 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
257 }; 261 };
258 262
259 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 263 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_host.cc » ('j') | chrome/browser/extensions/extension_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698