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

Side by Side Diff: content/public/test/web_contents_tester.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 (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_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ 5 #ifndef CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_
6 #define CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ 6 #define CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_
7 7
8 #include "ui/base/page_transition_types.h" 8 #include "ui/base/page_transition_types.h"
9 9
10 class GURL; 10 class GURL;
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Sets the loading state to the given value. 73 // Sets the loading state to the given value.
74 virtual void TestSetIsLoading(bool value) = 0; 74 virtual void TestSetIsLoading(bool value) = 0;
75 75
76 // Simulates the current RVH notifying that it has unloaded so that the 76 // Simulates the current RVH notifying that it has unloaded so that the
77 // pending RVH navigation can proceed. 77 // pending RVH navigation can proceed.
78 // Does nothing if no cross-navigation is pending. 78 // Does nothing if no cross-navigation is pending.
79 virtual void ProceedWithCrossSiteNavigation() = 0; 79 virtual void ProceedWithCrossSiteNavigation() = 0;
80 80
81 virtual void TestDidNavigate(RenderFrameHost* render_frame_host, 81 virtual void TestDidNavigate(RenderFrameHost* render_frame_host,
82 int page_id, 82 int page_id,
83 int nav_entry_id,
84 bool did_create_new_entry,
83 const GURL& url, 85 const GURL& url,
84 ui::PageTransition transition) = 0; 86 ui::PageTransition transition) = 0;
85 87
86 virtual void TestDidNavigateWithReferrer( 88 virtual void TestDidNavigateWithReferrer(
87 RenderFrameHost* render_frame_host, 89 RenderFrameHost* render_frame_host,
88 int page_id, 90 int page_id,
91 int nav_entry_id,
92 bool did_create_new_entry,
89 const GURL& url, 93 const GURL& url,
90 const Referrer& referrer, 94 const Referrer& referrer,
91 ui::PageTransition transition) = 0; 95 ui::PageTransition transition) = 0;
92 }; 96 };
93 97
94 } // namespace content 98 } // namespace content
95 99
96 #endif // CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_ 100 #endif // CONTENT_PUBLIC_TEST_WEB_CONTENTS_TESTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698