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

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

Issue 1002803002: Classify navigations without page id in parallel to the existing classifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unit tests Created 5 years, 9 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FRAME_HOST_H_ 5 #ifndef CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_
6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ 6 #define CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 FrameTreeNode* frame_tree_node, 43 FrameTreeNode* frame_tree_node,
44 int routing_id, 44 int routing_id,
45 int flags); 45 int flags);
46 ~TestRenderFrameHost() override; 46 ~TestRenderFrameHost() override;
47 47
48 // RenderFrameHostImpl overrides (same values, but in Test* types) 48 // RenderFrameHostImpl overrides (same values, but in Test* types)
49 TestRenderViewHost* GetRenderViewHost() override; 49 TestRenderViewHost* GetRenderViewHost() override;
50 50
51 // RenderFrameHostTester implementation. 51 // RenderFrameHostTester implementation.
52 TestRenderFrameHost* AppendChild(const std::string& frame_name) override; 52 TestRenderFrameHost* AppendChild(const std::string& frame_name) override;
53 void SendNavigate(int page_id, const GURL& url) override; 53 void SendNavigate(int page_id,
54 void SendFailedNavigate(int page_id, const GURL& url) override; 54 int nav_entry_id,
55 bool did_create_new_entry,
56 const GURL& url) override;
57 void SendFailedNavigate(int page_id,
58 int nav_entry_id,
59 bool did_create_new_entry,
60 const GURL& url) override;
55 void SendNavigateWithTransition(int page_id, 61 void SendNavigateWithTransition(int page_id,
62 int nav_entry_id,
63 bool did_create_new_entry,
56 const GURL& url, 64 const GURL& url,
57 ui::PageTransition transition) override; 65 ui::PageTransition transition) override;
58 void SetContentsMimeType(const std::string& mime_type) override; 66 void SetContentsMimeType(const std::string& mime_type) override;
59 void SendBeforeUnloadACK(bool proceed) override; 67 void SendBeforeUnloadACK(bool proceed) override;
60 void SimulateSwapOutACK() override; 68 void SimulateSwapOutACK() override;
61 69
62 void SendNavigateWithTransitionAndResponseCode( 70 void SendNavigateWithTransitionAndResponseCode(
63 int page_id, 71 int page_id,
72 int nav_entry_id,
73 bool did_create_new_entry,
64 const GURL& url, ui::PageTransition transition, 74 const GURL& url, ui::PageTransition transition,
65 int response_code); 75 int response_code);
66 void SendNavigateWithOriginalRequestURL( 76 void SendNavigateWithOriginalRequestURL(
67 int page_id, 77 int page_id,
78 int nav_entry_id,
79 bool did_create_new_entry,
68 const GURL& url, 80 const GURL& url,
69 const GURL& original_request_url); 81 const GURL& original_request_url);
70 void SendNavigateWithFile( 82 void SendNavigateWithFile(
71 int page_id, 83 int page_id,
84 int nav_entry_id,
85 bool did_create_new_entry,
72 const GURL& url, 86 const GURL& url,
73 const base::FilePath& file_path); 87 const base::FilePath& file_path);
74 void SendNavigateWithParams( 88 void SendNavigateWithParams(
75 FrameHostMsg_DidCommitProvisionalLoad_Params* params); 89 FrameHostMsg_DidCommitProvisionalLoad_Params* params);
76 void SendNavigateWithRedirects( 90 void SendNavigateWithRedirects(
77 int page_id, 91 int page_id,
92 int nav_entry_id,
93 bool did_create_new_entry,
78 const GURL& url, 94 const GURL& url,
79 const std::vector<GURL>& redirects); 95 const std::vector<GURL>& redirects);
80 void SendNavigateWithParameters( 96 void SendNavigateWithParameters(
81 int page_id, 97 int page_id,
98 int nav_entry_id,
99 bool did_create_new_entry,
82 const GURL& url, 100 const GURL& url,
83 ui::PageTransition transition, 101 ui::PageTransition transition,
84 const GURL& original_request_url, 102 const GURL& original_request_url,
85 int response_code, 103 int response_code,
86 const base::FilePath* file_path_for_history_item, 104 const base::FilePath* file_path_for_history_item,
87 const std::vector<GURL>& redirects); 105 const std::vector<GURL>& redirects);
88 106
89 // With the current navigation logic this method is a no-op. 107 // With the current navigation logic this method is a no-op.
90 // PlzNavigate: this method simulates receiving a BeginNavigation IPC. 108 // PlzNavigate: this method simulates receiving a BeginNavigation IPC.
91 void SendRendererInitiatedNavigationRequest(const GURL& url, 109 void SendRendererInitiatedNavigationRequest(const GURL& url,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 145
128 // See set_simulate_history_list_was_cleared() above. 146 // See set_simulate_history_list_was_cleared() above.
129 bool simulate_history_list_was_cleared_; 147 bool simulate_history_list_was_cleared_;
130 148
131 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost); 149 DISALLOW_COPY_AND_ASSIGN(TestRenderFrameHost);
132 }; 150 };
133 151
134 } // namespace content 152 } // namespace content
135 153
136 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_ 154 #endif // CONTENT_TEST_TEST_RENDER_FRAME_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698