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

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

Issue 14727006: Check that the files the renderer wants to preserve as part of a session restore are already availa… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . not -> Created 7 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_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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 virtual void SimulateWasHidden() OVERRIDE; 239 virtual void SimulateWasHidden() OVERRIDE;
240 virtual void SimulateWasShown() OVERRIDE; 240 virtual void SimulateWasShown() OVERRIDE;
241 241
242 // Calls OnNavigate on the RenderViewHost with the given information, 242 // Calls OnNavigate on the RenderViewHost with the given information,
243 // including a custom original request URL. Sets the rest of the 243 // including a custom original request URL. Sets the rest of the
244 // parameters in the message to the "typical" values. This is a helper 244 // parameters in the message to the "typical" values. This is a helper
245 // function for simulating the most common types of loads. 245 // function for simulating the most common types of loads.
246 void SendNavigateWithOriginalRequestURL( 246 void SendNavigateWithOriginalRequestURL(
247 int page_id, const GURL& url, const GURL& original_request_url); 247 int page_id, const GURL& url, const GURL& original_request_url);
248 248
249 void SendNavigateWithFile(
250 int page_id, const GURL& url, const base::FilePath& file_path);
251
252 void TestOnUpdateStateWithFile(
253 int process_id, const base::FilePath& file_path);
249 254
250 void TestOnStartDragging(const WebDropData& drop_data); 255 void TestOnStartDragging(const WebDropData& drop_data);
251 256
252 // If set, *delete_counter is incremented when this object destructs. 257 // If set, *delete_counter is incremented when this object destructs.
253 void set_delete_counter(int* delete_counter) { 258 void set_delete_counter(int* delete_counter) {
254 delete_counter_ = delete_counter; 259 delete_counter_ = delete_counter;
255 } 260 }
256 261
257 // Sets whether the RenderView currently exists or not. This controls the 262 // Sets whether the RenderView currently exists or not. This controls the
258 // return value from IsRenderViewLive, which the rest of the system uses to 263 // return value from IsRenderViewLive, which the rest of the system uses to
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate); 305 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate);
301 306
302 void SendNavigateWithTransitionAndResponseCode(int page_id, 307 void SendNavigateWithTransitionAndResponseCode(int page_id,
303 const GURL& url, 308 const GURL& url,
304 PageTransition transition, 309 PageTransition transition,
305 int response_code); 310 int response_code);
306 311
307 // Calls OnNavigate on the RenderViewHost with the given information. 312 // Calls OnNavigate on the RenderViewHost with the given information.
308 // Sets the rest of the parameters in the message to the "typical" values. 313 // Sets the rest of the parameters in the message to the "typical" values.
309 // This is a helper function for simulating the most common types of loads. 314 // This is a helper function for simulating the most common types of loads.
310 void SendNavigateWithParameters(int page_id, 315 void SendNavigateWithParameters(
311 const GURL& url, 316 int page_id,
312 PageTransition transition, 317 const GURL& url,
313 const GURL& original_request_url, 318 PageTransition transition,
314 int response_code); 319 const GURL& original_request_url,
315 320 int response_code,
321 const base::FilePath* file_path_for_history_item);
316 322
317 // Tracks if the caller thinks if it created the RenderView. This is so we can 323 // Tracks if the caller thinks if it created the RenderView. This is so we can
318 // respond to IsRenderViewLive appropriately. 324 // respond to IsRenderViewLive appropriately.
319 bool render_view_created_; 325 bool render_view_created_;
320 326
321 // See set_delete_counter() above. May be NULL. 327 // See set_delete_counter() above. May be NULL.
322 int* delete_counter_; 328 int* delete_counter_;
323 329
324 // See set_simulate_fetch_via_proxy() above. 330 // See set_simulate_fetch_via_proxy() above.
325 bool simulate_fetch_via_proxy_; 331 bool simulate_fetch_via_proxy_;
(...skipping 22 matching lines...) Expand all
348 TestRenderViewHost* active_test_rvh(); 354 TestRenderViewHost* active_test_rvh();
349 TestWebContents* contents(); 355 TestWebContents* contents();
350 356
351 private: 357 private:
352 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 358 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
353 }; 359 };
354 360
355 } // namespace content 361 } // namespace content
356 362
357 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_ 363 #endif // CONTENT_BROWSER_RENDERER_HOST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_unittest.cc ('k') | content/browser/renderer_host/test_render_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698