Chromium Code Reviews| Index: content/public/browser/navigation_handle.h |
| diff --git a/content/public/browser/navigation_handle.h b/content/public/browser/navigation_handle.h |
| index 1c65544982e749b10cb22f40a019ac4e800e5ef4..cbb84fa5ef198928d9a15df19cf5134a4d5fedfb 100644 |
| --- a/content/public/browser/navigation_handle.h |
| +++ b/content/public/browser/navigation_handle.h |
| @@ -6,6 +6,7 @@ |
| #define CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
| #include <memory> |
| +#include <string> |
| #include "content/common/content_export.h" |
| #include "content/public/browser/navigation_throttle.h" |
| @@ -20,6 +21,7 @@ class HttpResponseHeaders; |
| } // namespace net |
| namespace content { |
| +struct GlobalRequestID; |
| class NavigationData; |
| class NavigationThrottle; |
| class RenderFrameHost; |
| @@ -181,6 +183,12 @@ class CONTENT_EXPORT NavigationHandle { |
| virtual void CancelDeferredNavigation( |
| NavigationThrottle::ThrottleCheckResult result) = 0; |
| + virtual bool HasNetworkResponseStarted() = 0; |
|
Charlie Reis
2016/10/29 00:07:10
nit: All methods in content/public should be docum
Not at Google. Contact bengr
2016/11/01 21:11:06
Done.
|
| + |
| + // This is valid after the network response has started. Returns the ID of the |
| + // MAIN_FRAME URLRequest associated with this navigation. |
| + virtual const GlobalRequestID& GetGlobalRequestID() = 0; |
| + |
| // Testing methods ---------------------------------------------------------- |
| // |
| // The following methods should be used exclusively for writing unit tests. |