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

Side by Side Diff: content/browser/renderer_host/browser_render_process_host.h

Issue 6319001: Support window.opener after a process swap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with trunk. 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_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <queue> 10 #include <queue>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 class BrowserRenderProcessHost : public RenderProcessHost, 43 class BrowserRenderProcessHost : public RenderProcessHost,
44 public ChildProcessLauncher::Client { 44 public ChildProcessLauncher::Client {
45 public: 45 public:
46 explicit BrowserRenderProcessHost(Profile* profile); 46 explicit BrowserRenderProcessHost(Profile* profile);
47 ~BrowserRenderProcessHost(); 47 ~BrowserRenderProcessHost();
48 48
49 // RenderProcessHost implementation (public portion). 49 // RenderProcessHost implementation (public portion).
50 virtual bool Init(bool is_accessibility_enabled); 50 virtual bool Init(bool is_accessibility_enabled);
51 virtual int GetNextRoutingID(); 51 virtual int GetNextRoutingID();
52 virtual void CancelResourceRequests(int render_widget_id); 52 virtual void CancelResourceRequests(int render_widget_id);
53 virtual void CrossSiteClosePageACK(const ViewMsg_ClosePage_Params& params); 53 virtual void CrossSiteSwapOutACK(const ViewMsg_SwapOut_Params& params);
54 virtual bool WaitForUpdateMsg(int render_widget_id, 54 virtual bool WaitForUpdateMsg(int render_widget_id,
55 const base::TimeDelta& max_delay, 55 const base::TimeDelta& max_delay,
56 IPC::Message* msg); 56 IPC::Message* msg);
57 virtual void ReceivedBadMessage(); 57 virtual void ReceivedBadMessage();
58 virtual void WidgetRestored(); 58 virtual void WidgetRestored();
59 virtual void WidgetHidden(); 59 virtual void WidgetHidden();
60 virtual int VisibleWidgetCount() const; 60 virtual int VisibleWidgetCount() const;
61 virtual bool FastShutdownIfPossible(); 61 virtual bool FastShutdownIfPossible();
62 virtual bool SendWithTimeout(IPC::Message* msg, int timeout_ms); 62 virtual bool SendWithTimeout(IPC::Message* msg, int timeout_ms);
63 virtual base::ProcessHandle GetHandle(); 63 virtual base::ProcessHandle GetHandle();
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Messages we queue while waiting for the process handle. We queue them here 141 // Messages we queue while waiting for the process handle. We queue them here
142 // instead of in the channel so that we ensure they're sent after init related 142 // instead of in the channel so that we ensure they're sent after init related
143 // messages that are sent once the process handle is available. This is 143 // messages that are sent once the process handle is available. This is
144 // because the queued messages may have dependencies on the init messages. 144 // because the queued messages may have dependencies on the init messages.
145 std::queue<IPC::Message*> queued_messages_; 145 std::queue<IPC::Message*> queued_messages_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost); 147 DISALLOW_COPY_AND_ASSIGN(BrowserRenderProcessHost);
148 }; 148 };
149 149
150 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_ 150 #endif // CONTENT_BROWSER_RENDERER_HOST_BROWSER_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | content/browser/renderer_host/browser_render_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698