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

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

Issue 6319001: Support window.opener after a process swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add WasSwappedOut message for clean exit. Created 9 years, 8 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_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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 // Used to access the CreateHistoryAddPageArgs member function. 642 // Used to access the CreateHistoryAddPageArgs member function.
643 friend class ExternalTabContainer; 643 friend class ExternalTabContainer;
644 644
645 // Used to access RVH Delegates. 645 // Used to access RVH Delegates.
646 friend class prerender::PrerenderManager; 646 friend class prerender::PrerenderManager;
647 647
648 // Add all the TabContentObservers. 648 // Add all the TabContentObservers.
649 void AddObservers(); 649 void AddObservers();
650 650
651 // Message handlers. 651 // Message handlers.
652 void OnDidStartProvisionalLoadForFrame(int64 frame_id,
653 bool main_frame,
654 const GURL& url);
655 void OnDidRedirectProvisionalLoad(int32 page_id,
656 const GURL& source_url,
657 const GURL& target_url);
658 void OnDidFailProvisionalLoadWithError(int64 frame_id,
659 bool main_frame,
660 int error_code,
661 const GURL& url,
662 bool showing_repost_interstitial);
663 void OnDidLoadResourceFromMemoryCache(const GURL& url,
664 const std::string& security_info);
665 void OnDidDisplayInsecureContent();
666 void OnDidRunInsecureContent(const std::string& security_origin,
667 const GURL& target_url);
668 void OnDocumentLoadedInFrame(int64 frame_id);
669 void OnDidFinishLoad(int64 frame_id);
670 void OnUpdateContentRestrictions(int restrictions);
671 void OnPDFHasUnsupportedFeature(); 652 void OnPDFHasUnsupportedFeature();
672 653
673 void OnGoToEntryAtOffset(int offset); 654 void OnGoToEntryAtOffset(int offset);
674 655
675 // Changes the IsLoading state and notifies delegate as needed 656 // Changes the IsLoading state and notifies delegate as needed
676 // |details| is used to provide details on the load that just finished 657 // |details| is used to provide details on the load that just finished
677 // (but can be null if not applicable). Can be overridden. 658 // (but can be null if not applicable). Can be overridden.
678 void SetIsLoading(bool is_loading, 659 void SetIsLoading(bool is_loading,
679 LoadNotificationDetails* details); 660 LoadNotificationDetails* details);
680 661
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 const std::string& encoding); 774 const std::string& encoding);
794 virtual void UpdateTargetURL(int32 page_id, const GURL& url); 775 virtual void UpdateTargetURL(int32 page_id, const GURL& url);
795 virtual void UpdateInspectorSetting(const std::string& key, 776 virtual void UpdateInspectorSetting(const std::string& key,
796 const std::string& value); 777 const std::string& value);
797 virtual void ClearInspectorSettings(); 778 virtual void ClearInspectorSettings();
798 virtual void Close(RenderViewHost* render_view_host); 779 virtual void Close(RenderViewHost* render_view_host);
799 virtual void RequestMove(const gfx::Rect& new_bounds); 780 virtual void RequestMove(const gfx::Rect& new_bounds);
800 virtual void DidStartLoading(); 781 virtual void DidStartLoading();
801 virtual void DidStopLoading(); 782 virtual void DidStopLoading();
802 virtual void DidChangeLoadProgress(double progress); 783 virtual void DidChangeLoadProgress(double progress);
784 virtual void DidStartProvisionalLoadForFrame(int64 frame_id,
785 bool main_frame,
786 const GURL& url);
787 virtual void DidRedirectProvisionalLoad(int32 page_id,
788 const GURL& source_url,
789 const GURL& target_url);
790 virtual void DidFailProvisionalLoadWithError(
791 int64 frame_id,
792 bool main_frame,
793 int error_code,
794 const GURL& url,
795 bool showing_repost_interstitial);
796 virtual void DidLoadResourceFromMemoryCache(
797 const GURL& url,
798 const std::string& security_info);
799 virtual void DidDisplayInsecureContent();
800 virtual void DidRunInsecureContent(const std::string& security_origin,
801 const GURL& target_url);
802 virtual void DocumentLoadedInFrame(int64 frame_id);
803 virtual void DidFinishLoad(int64 frame_id);
804 virtual void UpdateContentRestrictions(int restrictions);
803 virtual void DocumentOnLoadCompletedInMainFrame( 805 virtual void DocumentOnLoadCompletedInMainFrame(
804 RenderViewHost* render_view_host, 806 RenderViewHost* render_view_host,
805 int32 page_id); 807 int32 page_id);
806 virtual void RequestOpenURL(const GURL& url, const GURL& referrer, 808 virtual void RequestOpenURL(const GURL& url, const GURL& referrer,
807 WindowOpenDisposition disposition); 809 WindowOpenDisposition disposition);
808 virtual void DomOperationResponse(const std::string& json_string, 810 virtual void DomOperationResponse(const std::string& json_string,
809 int automation_id); 811 int automation_id);
810 virtual void ProcessWebUIMessage( 812 virtual void ProcessWebUIMessage(
811 const ExtensionHostMsg_DomMessage_Params& params); 813 const ExtensionHostMsg_DomMessage_Params& params);
812 virtual void ProcessExternalHostMessage(const std::string& message, 814 virtual void ProcessExternalHostMessage(const std::string& message,
813 const std::string& origin, 815 const std::string& origin,
814 const std::string& target); 816 const std::string& target);
815 virtual void RunJavaScriptMessage(const std::wstring& message, 817 virtual void RunJavaScriptMessage(const RenderViewHost* rvh,
818 const std::wstring& message,
816 const std::wstring& default_prompt, 819 const std::wstring& default_prompt,
817 const GURL& frame_url, 820 const GURL& frame_url,
818 const int flags, 821 const int flags,
819 IPC::Message* reply_msg, 822 IPC::Message* reply_msg,
820 bool* did_suppress_message); 823 bool* did_suppress_message);
821 virtual void RunBeforeUnloadConfirm(const std::wstring& message, 824 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh,
825 const std::wstring& message,
822 IPC::Message* reply_msg); 826 IPC::Message* reply_msg);
823 virtual GURL GetAlternateErrorPageURL() const; 827 virtual GURL GetAlternateErrorPageURL() const;
824 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; 828 virtual RendererPreferences GetRendererPrefs(Profile* profile) const;
825 virtual WebPreferences GetWebkitPrefs(); 829 virtual WebPreferences GetWebkitPrefs();
826 virtual void OnUserGesture(); 830 virtual void OnUserGesture();
827 virtual void OnIgnoredUIEvent(); 831 virtual void OnIgnoredUIEvent();
828 virtual void OnCrossSiteResponse(int new_render_process_host_id, 832 virtual void OnCrossSiteResponse(int new_render_process_host_id,
829 int new_request_id); 833 int new_request_id);
830 virtual void RendererUnresponsive(RenderViewHost* render_view_host, 834 virtual void RendererUnresponsive(RenderViewHost* render_view_host,
831 bool is_during_unload); 835 bool is_during_unload);
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1052 ObserverList<TabContentsObserver> observers_; 1056 ObserverList<TabContentsObserver> observers_;
1053 1057
1054 // Content restrictions, used to disable print/copy etc based on content's 1058 // Content restrictions, used to disable print/copy etc based on content's
1055 // (full-page plugins for now only) permissions. 1059 // (full-page plugins for now only) permissions.
1056 int content_restrictions_; 1060 int content_restrictions_;
1057 1061
1058 DISALLOW_COPY_AND_ASSIGN(TabContents); 1062 DISALLOW_COPY_AND_ASSIGN(TabContents);
1059 }; 1063 };
1060 1064
1061 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1065 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698