Chromium Code Reviews

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: Better message filtering approach. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | 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 785 matching lines...)
796 virtual void DidCancelLoading(); 796 virtual void DidCancelLoading();
797 virtual void DidChangeLoadProgress(double progress); 797 virtual void DidChangeLoadProgress(double progress);
798 virtual void DocumentOnLoadCompletedInMainFrame( 798 virtual void DocumentOnLoadCompletedInMainFrame(
799 RenderViewHost* render_view_host, 799 RenderViewHost* render_view_host,
800 int32 page_id); 800 int32 page_id);
801 virtual void RequestOpenURL(const GURL& url, const GURL& referrer, 801 virtual void RequestOpenURL(const GURL& url, const GURL& referrer,
802 WindowOpenDisposition disposition); 802 WindowOpenDisposition disposition);
803 virtual void ProcessExternalHostMessage(const std::string& message, 803 virtual void ProcessExternalHostMessage(const std::string& message,
804 const std::string& origin, 804 const std::string& origin,
805 const std::string& target); 805 const std::string& target);
806 virtual void RunJavaScriptMessage(const std::wstring& message, 806 virtual void RunJavaScriptMessage(const RenderViewHost* rvh,
807 const std::wstring& message,
807 const std::wstring& default_prompt, 808 const std::wstring& default_prompt,
808 const GURL& frame_url, 809 const GURL& frame_url,
809 const int flags, 810 const int flags,
810 IPC::Message* reply_msg, 811 IPC::Message* reply_msg,
811 bool* did_suppress_message); 812 bool* did_suppress_message);
812 virtual void RunBeforeUnloadConfirm(const std::wstring& message, 813 virtual void RunBeforeUnloadConfirm(const RenderViewHost* rvh,
814 const std::wstring& message,
813 IPC::Message* reply_msg); 815 IPC::Message* reply_msg);
814 virtual GURL GetAlternateErrorPageURL() const; 816 virtual GURL GetAlternateErrorPageURL() const;
815 virtual RendererPreferences GetRendererPrefs(Profile* profile) const; 817 virtual RendererPreferences GetRendererPrefs(Profile* profile) const;
816 virtual WebPreferences GetWebkitPrefs(); 818 virtual WebPreferences GetWebkitPrefs();
817 virtual void OnUserGesture(); 819 virtual void OnUserGesture();
818 virtual void OnIgnoredUIEvent(); 820 virtual void OnIgnoredUIEvent();
819 virtual void OnCrossSiteResponse(int new_render_process_host_id, 821 virtual void OnCrossSiteResponse(int new_render_process_host_id,
820 int new_request_id); 822 int new_request_id);
821 virtual void RendererUnresponsive(RenderViewHost* render_view_host, 823 virtual void RendererUnresponsive(RenderViewHost* render_view_host,
822 bool is_during_unload); 824 bool is_during_unload);
(...skipping 216 matching lines...)
1039 ObserverList<TabContentsObserver> observers_; 1041 ObserverList<TabContentsObserver> observers_;
1040 1042
1041 // Content restrictions, used to disable print/copy etc based on content's 1043 // Content restrictions, used to disable print/copy etc based on content's
1042 // (full-page plugins for now only) permissions. 1044 // (full-page plugins for now only) permissions.
1043 int content_restrictions_; 1045 int content_restrictions_;
1044 1046
1045 DISALLOW_COPY_AND_ASSIGN(TabContents); 1047 DISALLOW_COPY_AND_ASSIGN(TabContents);
1046 }; 1048 };
1047 1049
1048 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_ 1050 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW

Powered by Google App Engine