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

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

Issue 281663002: Create RenderFrameProxyHost at time of swap-out instead of commit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix IPC_BEGIN_MESSAGE_MAP macro, as _EX version doesn't exist anymore. Created 6 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_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "content/public/browser/render_frame_host.h" 10 #include "content/public/browser/render_frame_host.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 const IPC::Message& msg); 65 const IPC::Message& msg);
66 66
67 // Returns whether the underlying web-page has any touch-event handlers. 67 // Returns whether the underlying web-page has any touch-event handlers.
68 static bool HasTouchEventHandler(RenderViewHost* rvh); 68 static bool HasTouchEventHandler(RenderViewHost* rvh);
69 69
70 virtual ~RenderViewHostTester() {} 70 virtual ~RenderViewHostTester() {}
71 71
72 // Gives tests access to RenderViewHostImpl::CreateRenderView. 72 // Gives tests access to RenderViewHostImpl::CreateRenderView.
73 virtual bool CreateRenderView(const base::string16& frame_name, 73 virtual bool CreateRenderView(const base::string16& frame_name,
74 int opener_route_id, 74 int opener_route_id,
75 int proxy_routing_id,
75 int32 max_page_id, 76 int32 max_page_id,
76 bool created_with_opener) = 0; 77 bool created_with_opener) = 0;
77 78
78 // Calls OnMsgNavigate on the RenderViewHost with the given information, 79 // Calls OnMsgNavigate on the RenderViewHost with the given information,
79 // setting the rest of the parameters in the message to the "typical" values. 80 // setting the rest of the parameters in the message to the "typical" values.
80 // This is a helper function for simulating the most common types of loads. 81 // This is a helper function for simulating the most common types of loads.
81 virtual void SendNavigate(int page_id, const GURL& url) = 0; 82 virtual void SendNavigate(int page_id, const GURL& url) = 0;
82 virtual void SendFailedNavigate(int page_id, const GURL& url) = 0; 83 virtual void SendFailedNavigate(int page_id, const GURL& url) = 0;
83 84
84 // Calls OnMsgNavigate on the RenderViewHost with the given information, 85 // Calls OnMsgNavigate on the RenderViewHost with the given information,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 202
202 int thread_bundle_options_; 203 int thread_bundle_options_;
203 scoped_ptr<TestBrowserThreadBundle> thread_bundle_; 204 scoped_ptr<TestBrowserThreadBundle> thread_bundle_;
204 205
205 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 206 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
206 }; 207 };
207 208
208 } // namespace content 209 } // namespace content
209 210
210 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 211 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
OLDNEW
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/renderer/accessibility/renderer_accessibility_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698