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

Side by Side Diff: content/test/test_renderer_host.h

Issue 10412056: Browser Plugin: Remove MapInstance from BrowserPluginHost + More cross-process navigation work (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Simplified size logic Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_TEST_TEST_RENDERER_HOST_H_ 5 #ifndef CONTENT_TEST_TEST_RENDERER_HOST_H_
6 #define CONTENT_TEST_TEST_RENDERER_HOST_H_ 6 #define CONTENT_TEST_TEST_RENDERER_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // given message. 61 // given message.
62 static bool TestOnMessageReceived(RenderViewHost* rvh, 62 static bool TestOnMessageReceived(RenderViewHost* rvh,
63 const IPC::Message& msg); 63 const IPC::Message& msg);
64 64
65 virtual ~RenderViewHostTester() {} 65 virtual ~RenderViewHostTester() {}
66 66
67 // Gives tests access to RenderViewHostImpl::CreateRenderView. 67 // Gives tests access to RenderViewHostImpl::CreateRenderView.
68 virtual bool CreateRenderView(const string16& frame_name, 68 virtual bool CreateRenderView(const string16& frame_name,
69 int opener_route_id, 69 int opener_route_id,
70 int32 max_page_id, 70 int32 max_page_id,
71 int embedder_process_id) = 0; 71 const std::string& embedder_channel_name,
72 int embedder_container_id) = 0;
72 73
73 // Calls OnMsgNavigate on the RenderViewHost with the given information, 74 // Calls OnMsgNavigate on the RenderViewHost with the given information,
74 // setting the rest of the parameters in the message to the "typical" values. 75 // setting the rest of the parameters in the message to the "typical" values.
75 // This is a helper function for simulating the most common types of loads. 76 // This is a helper function for simulating the most common types of loads.
76 virtual void SendNavigate(int page_id, const GURL& url) = 0; 77 virtual void SendNavigate(int page_id, const GURL& url) = 0;
77 78
78 // Calls OnMsgNavigate on the RenderViewHost with the given information, 79 // Calls OnMsgNavigate on the RenderViewHost with the given information,
79 // including a custom PageTransition. Sets the rest of the 80 // including a custom PageTransition. Sets the rest of the
80 // parameters in the message to the "typical" values. This is a helper 81 // parameters in the message to the "typical" values. This is a helper
81 // function for simulating the most common types of loads. 82 // function for simulating the most common types of loads.
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_; 178 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_;
178 #endif 179 #endif
179 RenderViewHostTestEnabler rvh_test_enabler_; 180 RenderViewHostTestEnabler rvh_test_enabler_;
180 181
181 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 182 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
182 }; 183 };
183 184
184 } // namespace content 185 } // namespace content
185 186
186 #endif // CONTENT_TEST_TEST_RENDERER_HOST_H_ 187 #endif // CONTENT_TEST_TEST_RENDERER_HOST_H_
OLDNEW
« content/renderer/render_view_impl.cc ('K') | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698