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

Side by Side Diff: content/browser/renderer_host/mock_render_process_host.cc

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. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 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 #include "content/browser/renderer_host/mock_render_process_host.h" 5 #include "content/browser/renderer_host/mock_render_process_host.h"
6 6
7 #include "content/browser/child_process_security_policy.h" 7 #include "content/browser/child_process_security_policy.h"
8 8
9 MockRenderProcessHost::MockRenderProcessHost(Profile* profile) 9 MockRenderProcessHost::MockRenderProcessHost(Profile* profile)
10 : RenderProcessHost(profile), 10 : RenderProcessHost(profile),
11 transport_dib_(NULL), 11 transport_dib_(NULL),
(...skipping 17 matching lines...) Expand all
29 } 29 }
30 30
31 int MockRenderProcessHost::GetNextRoutingID() { 31 int MockRenderProcessHost::GetNextRoutingID() {
32 static int prev_routing_id = 0; 32 static int prev_routing_id = 0;
33 return ++prev_routing_id; 33 return ++prev_routing_id;
34 } 34 }
35 35
36 void MockRenderProcessHost::CancelResourceRequests(int render_widget_id) { 36 void MockRenderProcessHost::CancelResourceRequests(int render_widget_id) {
37 } 37 }
38 38
39 void MockRenderProcessHost::CrossSiteClosePageACK( 39 void MockRenderProcessHost::CrossSiteSwapOutACK(
40 const ViewMsg_ClosePage_Params& params) { 40 const ViewMsg_SwapOut_Params& params) {
41 } 41 }
42 42
43 bool MockRenderProcessHost::WaitForUpdateMsg(int render_widget_id, 43 bool MockRenderProcessHost::WaitForUpdateMsg(int render_widget_id,
44 const base::TimeDelta& max_delay, 44 const base::TimeDelta& max_delay,
45 IPC::Message* msg) { 45 IPC::Message* msg) {
46 return false; 46 return false;
47 } 47 }
48 48
49 void MockRenderProcessHost::ReceivedBadMessage() { 49 void MockRenderProcessHost::ReceivedBadMessage() {
50 ++bad_msg_count_; 50 ++bad_msg_count_;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 void MockRenderProcessHostFactory::Remove(MockRenderProcessHost* host) const { 139 void MockRenderProcessHostFactory::Remove(MockRenderProcessHost* host) const {
140 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 140 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
141 it != processes_.end(); ++it) { 141 it != processes_.end(); ++it) {
142 if (*it == host) { 142 if (*it == host) {
143 processes_.weak_erase(it); 143 processes_.weak_erase(it);
144 break; 144 break;
145 } 145 }
146 } 146 }
147 } 147 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698