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

Side by Side Diff: content/browser/tab_contents/tab_contents.h

Issue 6973035: Move download stuff to download tab helper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Oops, forgot to add tab watcher as delegate with CF. Created 9 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | content/browser/tab_contents/tab_contents.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 26 matching lines...) Expand all
37 #endif 37 #endif
38 38
39 namespace gfx { 39 namespace gfx {
40 class Rect; 40 class Rect;
41 } 41 }
42 42
43 namespace history { 43 namespace history {
44 class HistoryAddPageArgs; 44 class HistoryAddPageArgs;
45 } 45 }
46 46
47 class WebUI;
48 class DownloadItem;
49 class Extension; 47 class Extension;
50 class InfoBarDelegate; 48 class InfoBarDelegate;
51 class LoadNotificationDetails; 49 class LoadNotificationDetails;
52 class PluginObserver; 50 class PluginObserver;
53 class Profile; 51 class Profile;
52 struct RendererPreferences;
54 class RenderViewHost; 53 class RenderViewHost;
55 class SessionStorageNamespace; 54 class SessionStorageNamespace;
56 class SiteInstance; 55 class SiteInstance;
57 class SkBitmap; 56 class SkBitmap;
58 class TabContentsDelegate; 57 class TabContentsDelegate;
59 class TabContentsObserver; 58 class TabContentsObserver;
60 class TabContentsSSLHelper; 59 class TabContentsSSLHelper;
61 class TabContentsView; 60 class TabContentsView;
61 struct ThumbnailScore;
62 class URLPattern; 62 class URLPattern;
63 struct RendererPreferences;
64 struct ThumbnailScore;
65 struct ViewHostMsg_FrameNavigate_Params; 63 struct ViewHostMsg_FrameNavigate_Params;
66 struct WebPreferences; 64 struct WebPreferences;
65 class WebUI;
67 66
68 // Describes what goes in the main content area of a tab. TabContents is 67 // Describes what goes in the main content area of a tab. TabContents is
69 // the only type of TabContents, and these should be merged together. 68 // the only type of TabContents, and these should be merged together.
70 class TabContents : public PageNavigator, 69 class TabContents : public PageNavigator,
71 public NotificationObserver, 70 public NotificationObserver,
72 public RenderViewHostDelegate, 71 public RenderViewHostDelegate,
73 public RenderViewHostManager::Delegate, 72 public RenderViewHostManager::Delegate,
74 public JavaScriptAppModalDialogDelegate, 73 public JavaScriptAppModalDialogDelegate,
75 public net::NetworkChangeNotifier::OnlineStateObserver { 74 public net::NetworkChangeNotifier::OnlineStateObserver {
76 public: 75 public:
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 // WARNING: This does not sanity-check |index|! 381 // WARNING: This does not sanity-check |index|!
383 InfoBarDelegate* GetInfoBarDelegateAt(size_t index) { 382 InfoBarDelegate* GetInfoBarDelegateAt(size_t index) {
384 return infobar_delegates_[index]; 383 return infobar_delegates_[index];
385 } 384 }
386 385
387 // Toolbars and such --------------------------------------------------------- 386 // Toolbars and such ---------------------------------------------------------
388 387
389 // Returns true if a Bookmark Bar should be shown for this tab. 388 // Returns true if a Bookmark Bar should be shown for this tab.
390 virtual bool ShouldShowBookmarkBar(); 389 virtual bool ShouldShowBookmarkBar();
391 390
392 // Notifies the delegate that a download is about to be started.
393 // This notification is fired before a local temporary file has been created.
394 bool CanDownload(int request_id);
395
396 // Notifies the delegate that a download started.
397 void OnStartDownload(DownloadItem* download);
398
399 // Called when a ConstrainedWindow we own is about to be closed. 391 // Called when a ConstrainedWindow we own is about to be closed.
400 void WillClose(ConstrainedWindow* window); 392 void WillClose(ConstrainedWindow* window);
401 393
402 // Interstitials ------------------------------------------------------------- 394 // Interstitials -------------------------------------------------------------
403 395
404 // Various other systems need to know about our interstitials. 396 // Various other systems need to know about our interstitials.
405 bool showing_interstitial_page() const { 397 bool showing_interstitial_page() const {
406 return render_manager_.interstitial_page() != NULL; 398 return render_manager_.interstitial_page() != NULL;
407 } 399 }
408 400
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
975 ObserverList<TabContentsObserver> observers_; 967 ObserverList<TabContentsObserver> observers_;
976 968
977 // Content restrictions, used to disable print/copy etc based on content's 969 // Content restrictions, used to disable print/copy etc based on content's
978 // (full-page plugins for now only) permissions. 970 // (full-page plugins for now only) permissions.
979 int content_restrictions_; 971 int content_restrictions_;
980 972
981 DISALLOW_COPY_AND_ASSIGN(TabContents); 973 DISALLOW_COPY_AND_ASSIGN(TabContents);
982 }; 974 };
983 975
984 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 976 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698