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

Side by Side Diff: content/renderer/render_view.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, 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_RENDERER_RENDER_VIEW_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 class RenderViewVisitor; 64 class RenderViewVisitor;
65 class RenderWidgetFullscreenPepper; 65 class RenderWidgetFullscreenPepper;
66 class SkBitmap; 66 class SkBitmap;
67 class SpeechInputDispatcher; 67 class SpeechInputDispatcher;
68 class WebPluginDelegatePepper; 68 class WebPluginDelegatePepper;
69 class WebPluginDelegateProxy; 69 class WebPluginDelegateProxy;
70 class WebUIBindings; 70 class WebUIBindings;
71 struct ContextMenuMediaParams; 71 struct ContextMenuMediaParams;
72 struct PP_Flash_NetAddress; 72 struct PP_Flash_NetAddress;
73 struct ViewHostMsg_RunFileChooser_Params; 73 struct ViewHostMsg_RunFileChooser_Params;
74 struct ViewMsg_ClosePage_Params; 74 struct ViewMsg_SwapOut_Params;
75 struct ViewMsg_Navigate_Params; 75 struct ViewMsg_Navigate_Params;
76 struct ViewMsg_StopFinding_Params; 76 struct ViewMsg_StopFinding_Params;
77 struct WebDropData; 77 struct WebDropData;
78 78
79 namespace base { 79 namespace base {
80 class WaitableEvent; 80 class WaitableEvent;
81 } 81 }
82 82
83 namespace chrome { 83 namespace chrome {
84 class ChromeContentRendererClient; 84 class ChromeContentRendererClient;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled. 230 // Current P2PSocketDispatcher. Set to NULL if P2P API is disabled.
231 P2PSocketDispatcher* p2p_socket_dispatcher() { 231 P2PSocketDispatcher* p2p_socket_dispatcher() {
232 return p2p_socket_dispatcher_; 232 return p2p_socket_dispatcher_;
233 } 233 }
234 234
235 // Functions to add and remove observers for this object. 235 // Functions to add and remove observers for this object.
236 void AddObserver(RenderViewObserver* observer); 236 void AddObserver(RenderViewObserver* observer);
237 void RemoveObserver(RenderViewObserver* observer); 237 void RemoveObserver(RenderViewObserver* observer);
238 238
239 // Swap this RenderView back in if the tab navigates back to this process.
240 void SwapIn();
241
239 // Evaluates a string of JavaScript in a particular frame. 242 // Evaluates a string of JavaScript in a particular frame.
240 void EvaluateScript(const string16& frame_xpath, 243 void EvaluateScript(const string16& frame_xpath,
241 const string16& jscript, 244 const string16& jscript,
242 int id, 245 int id,
243 bool notify_result); 246 bool notify_result);
244 247
245 // Adds the given file chooser request to the file_chooser_completion_ queue 248 // Adds the given file chooser request to the file_chooser_completion_ queue
246 // (see that var for more) and requests the chooser be displayed if there are 249 // (see that var for more) and requests the chooser be displayed if there are
247 // no other waiting items in the queue. 250 // no other waiting items in the queue.
248 // 251 //
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 void OnAllowBindings(int enabled_bindings_flags); 720 void OnAllowBindings(int enabled_bindings_flags);
718 void OnAllowScriptToClose(bool script_can_close); 721 void OnAllowScriptToClose(bool script_can_close);
719 void OnAsyncFileOpened(base::PlatformFileError error_code, 722 void OnAsyncFileOpened(base::PlatformFileError error_code,
720 IPC::PlatformFileForTransit file_for_transit, 723 IPC::PlatformFileForTransit file_for_transit,
721 int message_id); 724 int message_id);
722 void OnPpapiBrokerChannelCreated(int request_id, 725 void OnPpapiBrokerChannelCreated(int request_id,
723 base::ProcessHandle broker_process_handle, 726 base::ProcessHandle broker_process_handle,
724 IPC::ChannelHandle handle); 727 IPC::ChannelHandle handle);
725 void OnCancelDownload(int32 download_id); 728 void OnCancelDownload(int32 download_id);
726 void OnClearFocusedNode(); 729 void OnClearFocusedNode();
727 void OnClosePage(const ViewMsg_ClosePage_Params& params); 730 void OnClosePage();
728 #if defined(ENABLE_FLAPPER_HACKS) 731 #if defined(ENABLE_FLAPPER_HACKS)
729 void OnConnectTcpACK(int request_id, 732 void OnConnectTcpACK(int request_id,
730 IPC::PlatformFileForTransit socket_for_transit, 733 IPC::PlatformFileForTransit socket_for_transit,
731 const PP_Flash_NetAddress& local_addr, 734 const PP_Flash_NetAddress& local_addr,
732 const PP_Flash_NetAddress& remote_addr); 735 const PP_Flash_NetAddress& remote_addr);
733 #endif 736 #endif
734 void OnContextMenuClosed( 737 void OnContextMenuClosed(
735 const webkit_glue::CustomContextMenuContext& custom_context); 738 const webkit_glue::CustomContextMenuContext& custom_context);
736 void OnCopy(); 739 void OnCopy();
737 void OnCopyImageAt(int x, int y); 740 void OnCopyImageAt(int x, int y);
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 void OnSetPageEncoding(const std::string& encoding_name); 807 void OnSetPageEncoding(const std::string& encoding_name);
805 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); 808 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs);
806 #if defined(OS_MACOSX) 809 #if defined(OS_MACOSX)
807 void OnSetWindowVisibility(bool visible); 810 void OnSetWindowVisibility(bool visible);
808 #endif 811 #endif
809 void OnSetZoomLevel(double zoom_level); 812 void OnSetZoomLevel(double zoom_level);
810 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); 813 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level);
811 void OnShouldClose(); 814 void OnShouldClose();
812 void OnStop(); 815 void OnStop();
813 void OnStopFinding(const ViewMsg_StopFinding_Params& params); 816 void OnStopFinding(const ViewMsg_StopFinding_Params& params);
817 void OnSwapOut(const ViewMsg_SwapOut_Params& params);
814 void OnThemeChanged(); 818 void OnThemeChanged();
815 void OnUndo(); 819 void OnUndo();
816 void OnUpdateTargetURLAck(); 820 void OnUpdateTargetURLAck();
817 void OnUpdateWebPreferences(const WebPreferences& prefs); 821 void OnUpdateWebPreferences(const WebPreferences& prefs);
818 #if defined(OS_MACOSX) 822 #if defined(OS_MACOSX)
819 void OnWindowFrameChanged(const gfx::Rect& window_frame, 823 void OnWindowFrameChanged(const gfx::Rect& window_frame,
820 const gfx::Rect& view_frame); 824 const gfx::Rect& view_frame);
821 void OnSelectPopupMenuItem(int selected_index); 825 void OnSelectPopupMenuItem(int selected_index);
822 #endif 826 #endif
823 void OnZoom(PageZoom::Function function); 827 void OnZoom(PageZoom::Function function);
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1165 // bunch of stuff, you should probably create a helper class and put your 1169 // bunch of stuff, you should probably create a helper class and put your
1166 // data and methods on that to avoid bloating RenderView more. You can use 1170 // data and methods on that to avoid bloating RenderView more. You can use
1167 // the Observer interface to filter IPC messages and receive frame change 1171 // the Observer interface to filter IPC messages and receive frame change
1168 // notifications. 1172 // notifications.
1169 // --------------------------------------------------------------------------- 1173 // ---------------------------------------------------------------------------
1170 1174
1171 DISALLOW_COPY_AND_ASSIGN(RenderView); 1175 DISALLOW_COPY_AND_ASSIGN(RenderView);
1172 }; 1176 };
1173 1177
1174 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ 1178 #endif // CONTENT_RENDERER_RENDER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698