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

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

Issue 6374009: Get rid of a few more interfaces from RenderViewHostDelegate that aren't need... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CHROME_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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 593
594 // Prepare for saving the current web page to disk. 594 // Prepare for saving the current web page to disk.
595 void OnSavePage(); 595 void OnSavePage();
596 596
597 // Save page with the main HTML file path, the directory for saving resources, 597 // Save page with the main HTML file path, the directory for saving resources,
598 // and the save type: HTML only or complete web page. Returns true if the 598 // and the save type: HTML only or complete web page. Returns true if the
599 // saving process has been initiated successfully. 599 // saving process has been initiated successfully.
600 bool SavePage(const FilePath& main_file, const FilePath& dir_path, 600 bool SavePage(const FilePath& main_file, const FilePath& dir_path,
601 SavePackage::SavePackageType save_type); 601 SavePackage::SavePackageType save_type);
602 602
603 // Sets save_package_, taking care to register and unregister the observers.
604 void SetSavePackage(SavePackage* save_package);
605
603 // Tells the user's email client to open a compose window containing the 606 // Tells the user's email client to open a compose window containing the
604 // current page's URL. 607 // current page's URL.
605 void EmailPageLocation(); 608 void EmailPageLocation();
606 609
607 // Displays asynchronously a print preview (generated by the renderer) if not 610 // Displays asynchronously a print preview (generated by the renderer) if not
608 // already displayed and ask the user for its preferred print settings with 611 // already displayed and ask the user for its preferred print settings with
609 // the "Print..." dialog box. (managed by the print worker thread). 612 // the "Print..." dialog box. (managed by the print worker thread).
610 // TODO(maruel): Creates a snapshot of the renderer to be used for the new 613 // TODO(maruel): Creates a snapshot of the renderer to be used for the new
611 // tab for the printing facility. 614 // tab for the printing facility.
612 void PrintPreview(); 615 void PrintPreview();
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
828 const string16& contents, 831 const string16& contents,
829 const std::string& language, 832 const std::string& language,
830 bool page_translatable); 833 bool page_translatable);
831 void OnPageTranslated(int32 page_id, 834 void OnPageTranslated(int32 page_id,
832 const std::string& original_lang, 835 const std::string& original_lang,
833 const std::string& translated_lang, 836 const std::string& translated_lang,
834 TranslateErrors::Type error_type); 837 TranslateErrors::Type error_type);
835 void OnSetSuggestions(int32 page_id, 838 void OnSetSuggestions(int32 page_id,
836 const std::vector<std::string>& suggestions); 839 const std::vector<std::string>& suggestions);
837 void OnInstantSupportDetermined(int32 page_id, bool result); 840 void OnInstantSupportDetermined(int32 page_id, bool result);
841 void OnRunFileChooser(const ViewHostMsg_RunFileChooser_Params& params);
838 842
839 // Changes the IsLoading state and notifies delegate as needed 843 // Changes the IsLoading state and notifies delegate as needed
840 // |details| is used to provide details on the load that just finished 844 // |details| is used to provide details on the load that just finished
841 // (but can be null if not applicable). Can be overridden. 845 // (but can be null if not applicable). Can be overridden.
842 void SetIsLoading(bool is_loading, 846 void SetIsLoading(bool is_loading,
843 LoadNotificationDetails* details); 847 LoadNotificationDetails* details);
844 848
845 // Adds the incoming |new_contents| to the |blocked_contents_| container. 849 // Adds the incoming |new_contents| to the |blocked_contents_| container.
846 void AddPopup(TabContents* new_contents, 850 void AddPopup(TabContents* new_contents,
847 const gfx::Rect& initial_pos); 851 const gfx::Rect& initial_pos);
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 // TabSpecificContentSettings::Delegate implementation. 943 // TabSpecificContentSettings::Delegate implementation.
940 virtual void OnContentSettingsAccessed(bool content_was_blocked); 944 virtual void OnContentSettingsAccessed(bool content_was_blocked);
941 945
942 // RenderViewHostDelegate ---------------------------------------------------- 946 // RenderViewHostDelegate ----------------------------------------------------
943 947
944 // RenderViewHostDelegate implementation. 948 // RenderViewHostDelegate implementation.
945 virtual RenderViewHostDelegate::View* GetViewDelegate(); 949 virtual RenderViewHostDelegate::View* GetViewDelegate();
946 virtual RenderViewHostDelegate::RendererManagement* 950 virtual RenderViewHostDelegate::RendererManagement*
947 GetRendererManagementDelegate(); 951 GetRendererManagementDelegate();
948 virtual RenderViewHostDelegate::ContentSettings* GetContentSettingsDelegate(); 952 virtual RenderViewHostDelegate::ContentSettings* GetContentSettingsDelegate();
949 virtual RenderViewHostDelegate::Save* GetSaveDelegate();
950 virtual RenderViewHostDelegate::Printing* GetPrintingDelegate();
951 virtual RenderViewHostDelegate::FavIcon* GetFavIconDelegate();
952 virtual RenderViewHostDelegate::SSL* GetSSLDelegate(); 953 virtual RenderViewHostDelegate::SSL* GetSSLDelegate();
953 virtual RenderViewHostDelegate::FileSelect* GetFileSelectDelegate();
954 virtual AutomationResourceRoutingDelegate* 954 virtual AutomationResourceRoutingDelegate*
955 GetAutomationResourceRoutingDelegate(); 955 GetAutomationResourceRoutingDelegate();
956 virtual TabContents* GetAsTabContents(); 956 virtual TabContents* GetAsTabContents();
957 virtual ViewType::Type GetRenderViewType() const; 957 virtual ViewType::Type GetRenderViewType() const;
958 virtual int GetBrowserWindowID() const; 958 virtual int GetBrowserWindowID() const;
959 virtual void RenderViewCreated(RenderViewHost* render_view_host); 959 virtual void RenderViewCreated(RenderViewHost* render_view_host);
960 virtual void RenderViewReady(RenderViewHost* render_view_host); 960 virtual void RenderViewReady(RenderViewHost* render_view_host);
961 virtual void RenderViewGone(RenderViewHost* render_view_host, 961 virtual void RenderViewGone(RenderViewHost* render_view_host,
962 base::TerminationStatus status, 962 base::TerminationStatus status,
963 int error_code); 963 int error_code);
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 ObserverList<WebNavigationObserver> web_navigation_observers_; 1335 ObserverList<WebNavigationObserver> web_navigation_observers_;
1336 1336
1337 // Content restrictions, used to disable print/copy etc based on content's 1337 // Content restrictions, used to disable print/copy etc based on content's
1338 // (full-page plugins for now only) permissions. 1338 // (full-page plugins for now only) permissions.
1339 int content_restrictions_; 1339 int content_restrictions_;
1340 1340
1341 DISALLOW_COPY_AND_ASSIGN(TabContents); 1341 DISALLOW_COPY_AND_ASSIGN(TabContents);
1342 }; 1342 };
1343 1343
1344 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1344 #endif // CHROME_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host_delegate.cc ('k') | chrome/browser/tab_contents/tab_contents.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698