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

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

Issue 7374008: Move download stuff from download helper back to TabContents. This is basically a revert of r8576... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix unittests Created 9 years, 5 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 | « content/browser/download/save_package.cc ('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 19 matching lines...) Expand all
30 #include "ui/gfx/native_widget_types.h" 30 #include "ui/gfx/native_widget_types.h"
31 31
32 #if defined(OS_WIN) 32 #if defined(OS_WIN)
33 #include "base/win/scoped_handle.h" 33 #include "base/win/scoped_handle.h"
34 #endif 34 #endif
35 35
36 namespace gfx { 36 namespace gfx {
37 class Rect; 37 class Rect;
38 } 38 }
39 39
40 class DownloadItem;
40 class Extension; 41 class Extension;
41 class LoadNotificationDetails; 42 class LoadNotificationDetails;
42 class Profile; 43 class Profile;
43 struct RendererPreferences; 44 struct RendererPreferences;
44 class RenderViewHost; 45 class RenderViewHost;
45 class SessionStorageNamespace; 46 class SessionStorageNamespace;
46 class SiteInstance; 47 class SiteInstance;
47 class SkBitmap; 48 class SkBitmap;
48 class TabContentsDelegate; 49 class TabContentsDelegate;
49 class TabContentsObserver; 50 class TabContentsObserver;
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 virtual bool FocusLocationBarByDefault(); 336 virtual bool FocusLocationBarByDefault();
336 337
337 // Focuses the location bar. 338 // Focuses the location bar.
338 virtual void SetFocusToLocationBar(bool select_all); 339 virtual void SetFocusToLocationBar(bool select_all);
339 340
340 // Creates a view and sets the size for the specified RVH. 341 // Creates a view and sets the size for the specified RVH.
341 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh); 342 virtual void CreateViewAndSetSizeForRVH(RenderViewHost* rvh);
342 343
343 // Toolbars and such --------------------------------------------------------- 344 // Toolbars and such ---------------------------------------------------------
344 345
346 // Notifies the delegate that a download is about to be started.
347 // This notification is fired before a local temporary file has been created.
348 bool CanDownload(int request_id);
349
350 // Notifies the delegate that a download started.
351 void OnStartDownload(DownloadItem* download);
352
345 // Called when a ConstrainedWindow we own is about to be closed. 353 // Called when a ConstrainedWindow we own is about to be closed.
346 void WillClose(ConstrainedWindow* window); 354 void WillClose(ConstrainedWindow* window);
347 355
348 // Interstitials ------------------------------------------------------------- 356 // Interstitials -------------------------------------------------------------
349 357
350 // Various other systems need to know about our interstitials. 358 // Various other systems need to know about our interstitials.
351 bool showing_interstitial_page() const { 359 bool showing_interstitial_page() const {
352 return render_manager_.interstitial_page() != NULL; 360 return render_manager_.interstitial_page() != NULL;
353 } 361 }
354 362
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 ObserverList<TabContentsObserver> observers_; 823 ObserverList<TabContentsObserver> observers_;
816 824
817 // Content restrictions, used to disable print/copy etc based on content's 825 // Content restrictions, used to disable print/copy etc based on content's
818 // (full-page plugins for now only) permissions. 826 // (full-page plugins for now only) permissions.
819 int content_restrictions_; 827 int content_restrictions_;
820 828
821 DISALLOW_COPY_AND_ASSIGN(TabContents); 829 DISALLOW_COPY_AND_ASSIGN(TabContents);
822 }; 830 };
823 831
824 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 832 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « content/browser/download/save_package.cc ('k') | content/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698