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

Side by Side Diff: content/browser/tab_contents/tab_contents_delegate.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
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_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "content/browser/tab_contents/navigation_entry.h" 12 #include "content/browser/tab_contents/navigation_entry.h"
13 #include "content/common/navigation_types.h" 13 #include "content/common/navigation_types.h"
14 #include "content/common/page_transition_types.h" 14 #include "content/common/page_transition_types.h"
15 #include "ui/gfx/native_widget_types.h" 15 #include "ui/gfx/native_widget_types.h"
16 #include "webkit/glue/window_open_disposition.h" 16 #include "webkit/glue/window_open_disposition.h"
17 17
18 namespace gfx { 18 namespace gfx {
19 class Point; 19 class Point;
20 class Rect; 20 class Rect;
21 class Size; 21 class Size;
22 } 22 }
23 23
24 namespace history { 24 namespace history {
25 class HistoryAddPageArgs; 25 class HistoryAddPageArgs;
26 } 26 }
27 27
28 struct ContextMenuParams; 28 struct ContextMenuParams;
29 class DownloadItem;
30 class GURL; 29 class GURL;
31 class HtmlDialogUIDelegate; 30 class HtmlDialogUIDelegate;
32 struct NativeWebKeyboardEvent; 31 struct NativeWebKeyboardEvent;
33 class Profile; 32 class Profile;
34 class RenderViewHost; 33 class RenderViewHost;
35 class TabContents; 34 class TabContents;
36 35
37 // Objects implement this interface to get notified about changes in the 36 // Objects implement this interface to get notified about changes in the
38 // TabContents and to provide necessary functionality. 37 // TabContents and to provide necessary functionality.
39 class TabContentsDelegate { 38 class TabContentsDelegate {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 virtual void SetTabContentBlocked(TabContents* contents, bool blocked); 194 virtual void SetTabContentBlocked(TabContents* contents, bool blocked);
196 195
197 // Notification that |tab_contents| has gained focus. 196 // Notification that |tab_contents| has gained focus.
198 virtual void TabContentsFocused(TabContents* tab_content); 197 virtual void TabContentsFocused(TabContents* tab_content);
199 198
200 // Return much extra vertical space should be allotted to the 199 // Return much extra vertical space should be allotted to the
201 // render view widget during various animations (e.g. infobar closing). 200 // render view widget during various animations (e.g. infobar closing).
202 // This is used to make painting look smoother. 201 // This is used to make painting look smoother.
203 virtual int GetExtraRenderViewHeight() const; 202 virtual int GetExtraRenderViewHeight() const;
204 203
205 virtual bool CanDownload(int request_id);
206
207 virtual void OnStartDownload(DownloadItem* download, TabContents* tab);
208
209 // Returns true if the context menu operation was handled by the delegate. 204 // Returns true if the context menu operation was handled by the delegate.
210 virtual bool HandleContextMenu(const ContextMenuParams& params); 205 virtual bool HandleContextMenu(const ContextMenuParams& params);
211 206
212 // Returns true if the context menu command was handled 207 // Returns true if the context menu command was handled
213 virtual bool ExecuteContextMenuCommand(int command); 208 virtual bool ExecuteContextMenuCommand(int command);
214 209
215 // Shows the page info using the specified information. 210 // Shows the page info using the specified information.
216 // |url| is the url of the page/frame the info applies to, |ssl| is the SSL 211 // |url| is the url of the page/frame the info applies to, |ssl| is the SSL
217 // information for that page/frame. If |show_history| is true, a section 212 // information for that page/frame. If |show_history| is true, a section
218 // showing how many times that URL has been visited is added to the page info. 213 // showing how many times that URL has been visited is added to the page info.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 virtual bool ShouldShowHungRendererDialog(); 286 virtual bool ShouldShowHungRendererDialog();
292 287
293 // Notification that a worker associated with this tab has crashed. 288 // Notification that a worker associated with this tab has crashed.
294 virtual void WorkerCrashed(); 289 virtual void WorkerCrashed();
295 290
296 protected: 291 protected:
297 virtual ~TabContentsDelegate(); 292 virtual ~TabContentsDelegate();
298 }; 293 };
299 294
300 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ 295 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/tab_contents/tab_contents.cc ('k') | content/browser/tab_contents/tab_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698