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

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

Issue 10412061: Fix crashes in DownloadRequestLimiter when extension popups/bubbles initiate downloads automatically (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test Created 8 years, 7 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 17 matching lines...) Expand all
28 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h" 28 #include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h"
29 #elif defined(OS_ANDROID) 29 #elif defined(OS_ANDROID)
30 #include "chrome/browser/ui/android/extensions/extension_view_android.h" 30 #include "chrome/browser/ui/android/extensions/extension_view_android.h"
31 #endif 31 #endif
32 32
33 class Browser; 33 class Browser;
34 class ExtensionWindowController; 34 class ExtensionWindowController;
35 class PrefsTabHelper; 35 class PrefsTabHelper;
36 36
37 namespace content { 37 namespace content {
38 class DownloadItem;
38 class RenderProcessHost; 39 class RenderProcessHost;
39 class RenderWidgetHostView; 40 class RenderWidgetHostView;
40 class SiteInstance; 41 class SiteInstance;
41 } 42 }
42 43
43 namespace extensions { 44 namespace extensions {
44 class Extension; 45 class Extension;
45 } 46 }
46 47
47 // This class is the browser component of an extension component's RenderView. 48 // This class is the browser component of an extension component's RenderView.
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 GetJavaScriptDialogCreator() OVERRIDE; 157 GetJavaScriptDialogCreator() OVERRIDE;
157 virtual void RunFileChooser( 158 virtual void RunFileChooser(
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;
167 virtual void OnStartDownload(
168 content::WebContents* source,
169 content::DownloadItem* download) OVERRIDE;
166 170
167 // content::NotificationObserver 171 // content::NotificationObserver
168 virtual void Observe(int type, 172 virtual void Observe(int type,
169 const content::NotificationSource& source, 173 const content::NotificationSource& source,
170 const content::NotificationDetails& details) OVERRIDE; 174 const content::NotificationDetails& details) OVERRIDE;
171 175
172 private: 176 private:
173 friend class ProcessCreationQueue; 177 friend class ProcessCreationQueue;
174 178
175 // Actually create the RenderView for this host. See CreateRenderViewSoon. 179 // Actually create the RenderView for this host. See CreateRenderViewSoon.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 // The relevant WebContents associated with this ExtensionHost, if any. 252 // The relevant WebContents associated with this ExtensionHost, if any.
249 content::WebContents* associated_web_contents_; 253 content::WebContents* associated_web_contents_;
250 254
251 // Used to measure how long it's been since the host was created. 255 // Used to measure how long it's been since the host was created.
252 PerfTimer since_created_; 256 PerfTimer since_created_;
253 257
254 DISALLOW_COPY_AND_ASSIGN(ExtensionHost); 258 DISALLOW_COPY_AND_ASSIGN(ExtensionHost);
255 }; 259 };
256 260
257 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_ 261 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698