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

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

Issue 212703005: Preserve Page::openedByDOM state across process swaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tie opened_by_dom with opener. Created 6 years, 8 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_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 return main_render_frame_host_; 313 return main_render_frame_host_;
314 } 314 }
315 void set_main_render_frame_host(TestRenderFrameHost* rfh) { 315 void set_main_render_frame_host(TestRenderFrameHost* rfh) {
316 main_render_frame_host_ = rfh; 316 main_render_frame_host_ = rfh;
317 } 317 }
318 318
319 // RenderViewHost overrides -------------------------------------------------- 319 // RenderViewHost overrides --------------------------------------------------
320 320
321 virtual bool CreateRenderView(const base::string16& frame_name, 321 virtual bool CreateRenderView(const base::string16& frame_name,
322 int opener_route_id, 322 int opener_route_id,
323 int32 max_page_id) OVERRIDE; 323 int32 max_page_id,
324 bool created_with_opener) OVERRIDE;
324 virtual bool IsRenderViewLive() const OVERRIDE; 325 virtual bool IsRenderViewLive() const OVERRIDE;
325 virtual bool IsFullscreen() const OVERRIDE; 326 virtual bool IsFullscreen() const OVERRIDE;
326 327
327 private: 328 private:
328 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate); 329 FRIEND_TEST_ALL_PREFIXES(RenderViewHostTest, FilterNavigate);
329 330
330 void SendNavigateWithTransitionAndResponseCode(int page_id, 331 void SendNavigateWithTransitionAndResponseCode(int page_id,
331 const GURL& url, 332 const GURL& url,
332 PageTransition transition, 333 PageTransition transition,
333 int response_code); 334 int response_code);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 private: 387 private:
387 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors> 388 typedef scoped_ptr<ui::test::ScopedSetSupportedScaleFactors>
388 ScopedSetSupportedScaleFactors; 389 ScopedSetSupportedScaleFactors;
389 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; 390 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_;
390 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 391 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
391 }; 392 };
392 393
393 } // namespace content 394 } // namespace content
394 395
395 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 396 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698