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

Side by Side Diff: chrome/browser/ui/tab_contents/tab_contents_wrapper.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: update download_browsertest.cc 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_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/property_bag.h" 13 #include "base/property_bag.h"
14 #include "content/public/browser/web_contents_observer.h" 14 #include "content/public/browser/web_contents_observer.h"
15 15
16 class AlternateErrorPageTabObserver; 16 class AlternateErrorPageTabObserver;
17 class AutocompleteHistoryManager; 17 class AutocompleteHistoryManager;
18 class AutofillManager; 18 class AutofillManager;
19 class AutofillExternalDelegate; 19 class AutofillExternalDelegate;
20 class AutomationTabHelper; 20 class AutomationTabHelper;
21 class BlockedContentTabHelper; 21 class BlockedContentTabHelper;
22 class BookmarkTabHelper; 22 class BookmarkTabHelper;
23 class ConstrainedWindowTabHelper; 23 class ConstrainedWindowTabHelper;
24 class CoreTabHelper; 24 class CoreTabHelper;
25 class DownloadRequestLimiterObserver;
26 class ExtensionTabHelper; 25 class ExtensionTabHelper;
27 class ExternalProtocolObserver; 26 class ExternalProtocolObserver;
28 class FaviconTabHelper; 27 class FaviconTabHelper;
29 class FindTabHelper; 28 class FindTabHelper;
30 class HistoryTabHelper; 29 class HistoryTabHelper;
31 class HungPluginTabHelper; 30 class HungPluginTabHelper;
32 class InfoBarTabHelper; 31 class InfoBarTabHelper;
33 class OmniboxSearchHint; 32 class OmniboxSearchHint;
34 class PasswordManager; 33 class PasswordManager;
35 class PasswordManagerDelegate; 34 class PasswordManagerDelegate;
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 258
260 scoped_ptr<ThumbnailGenerator> thumbnail_generator_; 259 scoped_ptr<ThumbnailGenerator> thumbnail_generator_;
261 scoped_ptr<TranslateTabHelper> translate_tab_helper_; 260 scoped_ptr<TranslateTabHelper> translate_tab_helper_;
262 261
263 // Handles displaying a web intents picker to the user. 262 // Handles displaying a web intents picker to the user.
264 scoped_ptr<WebIntentPickerController> web_intent_picker_controller_; 263 scoped_ptr<WebIntentPickerController> web_intent_picker_controller_;
265 264
266 // Per-tab observers --------------------------------------------------------- 265 // Per-tab observers ---------------------------------------------------------
267 // (These provide no API for callers; objects that need to exist 1:1 with tabs 266 // (These provide no API for callers; objects that need to exist 1:1 with tabs
268 // and silently do their thing live here.) 267 // and silently do their thing live here.)
268 // WARNING: There is no TabContentsWrapper for extension popups/bubbles and
Aaron Boodman 2012/05/25 19:27:42 This might be too much, but... // WARNING: Not ev
Avi (use Gerrit) 2012/05/25 19:49:52 I actually love this comment, though it would be b
benjhayden 2012/05/25 20:41:17 Done.
benjhayden 2012/05/25 20:41:17 Done.
269 // other raw WebContents. If you want anything to happen for both tabs and raw
270 // WebContents, don't put it here!
269 271
270 scoped_ptr<AlternateErrorPageTabObserver> alternate_error_page_tab_observer_; 272 scoped_ptr<AlternateErrorPageTabObserver> alternate_error_page_tab_observer_;
271 scoped_ptr<DownloadRequestLimiterObserver> download_request_limiter_observer_;
272 scoped_ptr<extensions::WebNavigationTabObserver> webnavigation_observer_; 273 scoped_ptr<extensions::WebNavigationTabObserver> webnavigation_observer_;
273 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; 274 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_;
274 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; 275 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_;
275 #if defined(ENABLE_ONE_CLICK_SIGNIN) 276 #if defined(ENABLE_ONE_CLICK_SIGNIN)
276 scoped_ptr<OneClickSigninHelper> one_click_signin_helper_; 277 scoped_ptr<OneClickSigninHelper> one_click_signin_helper_;
277 #endif 278 #endif
278 scoped_ptr<PDFTabObserver> pdf_tab_observer_; 279 scoped_ptr<PDFTabObserver> pdf_tab_observer_;
279 scoped_ptr<PluginObserver> plugin_observer_; 280 scoped_ptr<PluginObserver> plugin_observer_;
280 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; 281 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_;
281 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> 282 scoped_ptr<safe_browsing::SafeBrowsingTabObserver>
282 safe_browsing_tab_observer_; 283 safe_browsing_tab_observer_;
283 284
284 // WebContents (MUST BE LAST) ------------------------------------------------ 285 // WebContents (MUST BE LAST) ------------------------------------------------
285 286
286 // If true, we're running the destructor. 287 // If true, we're running the destructor.
287 bool in_destructor_; 288 bool in_destructor_;
288 289
289 // The supporting objects need to outlive the WebContents dtor (as they may 290 // The supporting objects need to outlive the WebContents dtor (as they may
290 // be called upon during its execution). As a result, this must come last 291 // be called upon during its execution). As a result, this must come last
291 // in the list. 292 // in the list.
292 scoped_ptr<content::WebContents> web_contents_; 293 scoped_ptr<content::WebContents> web_contents_;
293 294
294 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); 295 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper);
295 }; 296 };
296 297
297 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 298 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698