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

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

Issue 10704048: [RDS] Reloads a page using the original request URL (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase fix Created 8 years, 4 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
« no previous file with comments | « no previous file | content/browser/renderer_host/test_render_view_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // RenderViewHostImpl, see below. 229 // RenderViewHostImpl, see below.
230 virtual void SendNavigate(int page_id, const GURL& url) OVERRIDE; 230 virtual void SendNavigate(int page_id, const GURL& url) OVERRIDE;
231 virtual void SendNavigateWithTransition(int page_id, const GURL& url, 231 virtual void SendNavigateWithTransition(int page_id, const GURL& url,
232 PageTransition transition) OVERRIDE; 232 PageTransition transition) OVERRIDE;
233 virtual void SendShouldCloseACK(bool proceed) OVERRIDE; 233 virtual void SendShouldCloseACK(bool proceed) OVERRIDE;
234 virtual void SetContentsMimeType(const std::string& mime_type) OVERRIDE; 234 virtual void SetContentsMimeType(const std::string& mime_type) OVERRIDE;
235 virtual void SimulateSwapOutACK() OVERRIDE; 235 virtual void SimulateSwapOutACK() OVERRIDE;
236 virtual void SimulateWasHidden() OVERRIDE; 236 virtual void SimulateWasHidden() OVERRIDE;
237 virtual void SimulateWasShown() OVERRIDE; 237 virtual void SimulateWasShown() OVERRIDE;
238 238
239 // Calls OnMsgNavigate on the RenderViewHost with the given information,
240 // including a custom original request URL. Sets the rest of the
241 // parameters in the message to the "typical" values. This is a helper
242 // function for simulating the most common types of loads.
243 void SendNavigateWithOriginalRequestURL(
244 int page_id, const GURL& url, const GURL& original_request_url);
245
246 // Calls OnMsgNavigate on the RenderViewHost with the given information.
247 // Sets the rest of the parameters in the message to the "typical" values.
248 // This is a helper function for simulating the most common types of loads.
249 void SendNavigateWithParameters(
250 int page_id, const GURL& url, PageTransition transition,
251 const GURL& original_request_url);
252
239 void TestOnMsgStartDragging(const WebDropData& drop_data); 253 void TestOnMsgStartDragging(const WebDropData& drop_data);
240 254
241 // If set, *delete_counter is incremented when this object destructs. 255 // If set, *delete_counter is incremented when this object destructs.
242 void set_delete_counter(int* delete_counter) { 256 void set_delete_counter(int* delete_counter) {
243 delete_counter_ = delete_counter; 257 delete_counter_ = delete_counter;
244 } 258 }
245 259
246 // Sets whether the RenderView currently exists or not. This controls the 260 // Sets whether the RenderView currently exists or not. This controls the
247 // return value from IsRenderViewLive, which the rest of the system uses to 261 // return value from IsRenderViewLive, which the rest of the system uses to
248 // check whether the RenderView has crashed or not. 262 // check whether the RenderView has crashed or not.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 TestRenderViewHost* active_test_rvh(); 331 TestRenderViewHost* active_test_rvh();
318 TestWebContents* contents(); 332 TestWebContents* contents();
319 333
320 private: 334 private:
321 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 335 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
322 }; 336 };
323 337
324 } // namespace content 338 } // namespace content
325 339
326 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 340 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698