OLD | NEW |
---|---|
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 "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "content/public/browser/navigation_throttle.h" | 9 #include "content/public/browser/navigation_throttle.h" |
10 #include "content/public/common/referrer.h" | 10 #include "content/public/common/referrer.h" |
(...skipping 21 matching lines...) Expand all Loading... | |
32 // when encountering a server redirect. | 32 // when encountering a server redirect. |
33 virtual const GURL& GetURL() = 0; | 33 virtual const GURL& GetURL() = 0; |
34 | 34 |
35 // Whether the navigation is taking place in the main frame or in a subframe. | 35 // Whether the navigation is taking place in the main frame or in a subframe. |
36 // This remains constant over the navigation lifetime. | 36 // This remains constant over the navigation lifetime. |
37 virtual bool IsInMainFrame() = 0; | 37 virtual bool IsInMainFrame() = 0; |
38 | 38 |
39 // The WebContents the navigation is taking place in. | 39 // The WebContents the navigation is taking place in. |
40 WebContents* GetWebContents(); | 40 WebContents* GetWebContents(); |
41 | 41 |
42 // The time the navigation started, recorded either in the renderer or browser | |
43 // process. Corresponds to Navigation Timing API Standard. | |
44 virtual double GetNavigationStart() = 0; | |
clamy
2015/10/28 12:40:01
This should be a base::TimeTicks (or a base::Time
| |
45 | |
42 // Parameters available at network request start time ------------------------ | 46 // Parameters available at network request start time ------------------------ |
43 // | 47 // |
44 // The following parameters are only available when the network request is | 48 // The following parameters are only available when the network request is |
45 // made for the navigation (or at commit time if no network request is made). | 49 // made for the navigation (or at commit time if no network request is made). |
46 // This corresponds to NavigationThrottle::WillSendRequest. They should not | 50 // This corresponds to NavigationThrottle::WillSendRequest. They should not |
47 // be queried before that. | 51 // be queried before that. |
48 | 52 |
49 // Whether the navigation is a POST or a GET. This may change during the | 53 // Whether the navigation is a POST or a GET. This may change during the |
50 // navigation when encountering a server redirect. | 54 // navigation when encountering a server redirect. |
51 virtual bool IsPost() = 0; | 55 virtual bool IsPost() = 0; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
123 virtual NavigationThrottle::ThrottleCheckResult | 127 virtual NavigationThrottle::ThrottleCheckResult |
124 CallWillRedirectRequestForTesting(const GURL& new_url, | 128 CallWillRedirectRequestForTesting(const GURL& new_url, |
125 bool new_method_is_post, | 129 bool new_method_is_post, |
126 const GURL& new_referrer_url, | 130 const GURL& new_referrer_url, |
127 bool new_is_external_protocol) = 0; | 131 bool new_is_external_protocol) = 0; |
128 }; | 132 }; |
129 | 133 |
130 } // namespace content | 134 } // namespace content |
131 | 135 |
132 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 136 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
OLD | NEW |