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

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

Issue 1136553005: Revert of Classify navigations without page id in parallel to the existing classifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « content/test/test_render_view_host.h ('k') | content/test/test_web_contents.h » ('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 #include "content/test/test_render_view_host.h" 5 #include "content/test/test_render_view_host.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
10 #include "content/browser/loader/resource_dispatcher_host_impl.h" 10 #include "content/browser/loader/resource_dispatcher_host_impl.h"
(...skipping 10 matching lines...) Expand all
21 #include "content/public/common/web_preferences.h" 21 #include "content/public/common/web_preferences.h"
22 #include "content/test/test_render_frame_host.h" 22 #include "content/test/test_render_frame_host.h"
23 #include "content/test/test_web_contents.h" 23 #include "content/test/test_web_contents.h"
24 #include "media/base/video_frame.h" 24 #include "media/base/video_frame.h"
25 #include "ui/gfx/geometry/rect.h" 25 #include "ui/gfx/geometry/rect.h"
26 26
27 namespace content { 27 namespace content {
28 28
29 void InitNavigateParams(FrameHostMsg_DidCommitProvisionalLoad_Params* params, 29 void InitNavigateParams(FrameHostMsg_DidCommitProvisionalLoad_Params* params,
30 int page_id, 30 int page_id,
31 int nav_entry_id,
32 bool did_create_new_entry,
33 const GURL& url, 31 const GURL& url,
34 ui::PageTransition transition) { 32 ui::PageTransition transition) {
35 params->page_id = page_id; 33 params->page_id = page_id;
36 params->nav_entry_id = nav_entry_id;
37 params->url = url; 34 params->url = url;
38 params->referrer = Referrer(); 35 params->referrer = Referrer();
39 params->transition = transition; 36 params->transition = transition;
40 params->redirects = std::vector<GURL>(); 37 params->redirects = std::vector<GURL>();
41 params->should_update_history = false; 38 params->should_update_history = false;
42 params->searchable_form_url = GURL(); 39 params->searchable_form_url = GURL();
43 params->searchable_form_encoding = std::string(); 40 params->searchable_form_encoding = std::string();
44 params->did_create_new_entry = did_create_new_entry;
45 params->security_info = std::string(); 41 params->security_info = std::string();
46 params->gesture = NavigationGestureUser; 42 params->gesture = NavigationGestureUser;
47 params->was_within_same_page = false; 43 params->was_within_same_page = false;
48 params->is_post = false; 44 params->is_post = false;
49 params->page_state = PageState::CreateFromURL(url); 45 params->page_state = PageState::CreateFromURL(url);
50 } 46 }
51 47
52 TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh) 48 TestRenderWidgetHostView::TestRenderWidgetHostView(RenderWidgetHost* rwh)
53 : rwh_(RenderWidgetHostImpl::From(rwh)), 49 : rwh_(RenderWidgetHostImpl::From(rwh)),
54 is_showing_(false), 50 is_showing_(false),
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 309
314 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 310 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
315 return contents()->GetMainFrame(); 311 return contents()->GetMainFrame();
316 } 312 }
317 313
318 TestWebContents* RenderViewHostImplTestHarness::contents() { 314 TestWebContents* RenderViewHostImplTestHarness::contents() {
319 return static_cast<TestWebContents*>(web_contents()); 315 return static_cast<TestWebContents*>(web_contents());
320 } 316 }
321 317
322 } // namespace content 318 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_render_view_host.h ('k') | content/test/test_web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698