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

Side by Side Diff: content/public/browser/navigation_handle.h

Issue 2380773002: Prevent tracking metrics for cases such as 204s and downloads. (Closed)
Patch Set: use existing test file Created 4 years, 2 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/browser/frame_host/navigation_handle_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BROWSER_NAVIGATION_HANDLE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 // successful commits or error pages that replace the previous page 149 // successful commits or error pages that replace the previous page
150 // (distinguished by |IsErrorPage|), and false for errors that leave the user 150 // (distinguished by |IsErrorPage|), and false for errors that leave the user
151 // on the previous page. 151 // on the previous page.
152 virtual bool HasCommitted() = 0; 152 virtual bool HasCommitted() = 0;
153 153
154 // Whether the navigation resulted in an error page. 154 // Whether the navigation resulted in an error page.
155 // Note that if an error page reloads, this will return true even though 155 // Note that if an error page reloads, this will return true even though
156 // GetNetErrorCode will be net::OK. 156 // GetNetErrorCode will be net::OK.
157 virtual bool IsErrorPage() = 0; 157 virtual bool IsErrorPage() = 0;
158 158
159 // Returns the response headers for the request or nullptr if there are none. 159 // Returns the response headers for the request or nullptr if there are
clamy 2016/09/29 15:35:57 Please mention that these are the final headers. w
Bryan McQuade 2016/09/29 19:44:16 Done, thanks!
160 // This should only be accessed after a redirect was encountered or after the 160 // none. The headers returned should not be modified, as modifications will
clamy 2016/09/29 15:35:57 nit: none or they have not been received yet.
Bryan McQuade 2016/09/29 19:44:16 Done.
161 // navigation is ready to commit. The headers returned should not be modified, 161 // not be reflected in the network stack.
162 // as modifications will not be reflected in the network stack.
163 virtual const net::HttpResponseHeaders* GetResponseHeaders() = 0; 162 virtual const net::HttpResponseHeaders* GetResponseHeaders() = 0;
164 163
165 // Resumes a navigation that was previously deferred by a NavigationThrottle. 164 // Resumes a navigation that was previously deferred by a NavigationThrottle.
166 virtual void Resume() = 0; 165 virtual void Resume() = 0;
167 166
168 // Cancels a navigation that was previously deferred by a NavigationThrottle. 167 // Cancels a navigation that was previously deferred by a NavigationThrottle.
169 // |result| should be equal to NavigationThrottle::CANCEL or 168 // |result| should be equal to NavigationThrottle::CANCEL or
170 // NavigationThrottle::CANCEL_AND_IGNORE. 169 // NavigationThrottle::CANCEL_AND_IGNORE.
171 virtual void CancelDeferredNavigation( 170 virtual void CancelDeferredNavigation(
172 NavigationThrottle::ThrottleCheckResult result) = 0; 171 NavigationThrottle::ThrottleCheckResult result) = 0;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 216
218 // The NavigationData that the embedder returned from 217 // The NavigationData that the embedder returned from
219 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will 218 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will
220 // be a clone of the NavigationData. 219 // be a clone of the NavigationData.
221 virtual NavigationData* GetNavigationData() = 0; 220 virtual NavigationData* GetNavigationData() = 0;
222 }; 221 };
223 222
224 } // namespace content 223 } // namespace content
225 224
226 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ 225 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698