Chromium Code Reviews| 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 <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
| 12 #include "content/public/browser/navigation_throttle.h" | 12 #include "content/public/browser/navigation_throttle.h" |
| 13 #include "content/public/browser/reload_type.h" | |
| 13 #include "content/public/common/referrer.h" | 14 #include "content/public/common/referrer.h" |
| 14 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
| 15 #include "net/http/http_response_info.h" | 16 #include "net/http/http_response_info.h" |
| 16 #include "ui/base/page_transition_types.h" | 17 #include "ui/base/page_transition_types.h" |
| 17 | 18 |
| 18 class GURL; | 19 class GURL; |
| 19 | 20 |
| 20 namespace net { | 21 namespace net { |
| 21 class HttpResponseHeaders; | 22 class HttpResponseHeaders; |
| 22 } // namespace net | 23 } // namespace net |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 virtual const base::TimeTicks& NavigationStart() = 0; | 92 virtual const base::TimeTicks& NavigationStart() = 0; |
| 92 | 93 |
| 93 // Whether or not the navigation was started within a context menu. | 94 // Whether or not the navigation was started within a context menu. |
| 94 virtual bool WasStartedFromContextMenu() const = 0; | 95 virtual bool WasStartedFromContextMenu() const = 0; |
| 95 | 96 |
| 96 // Returns the URL and encoding of an INPUT field that corresponds to a | 97 // Returns the URL and encoding of an INPUT field that corresponds to a |
| 97 // searchable form request. | 98 // searchable form request. |
| 98 virtual const GURL& GetSearchableFormURL() = 0; | 99 virtual const GURL& GetSearchableFormURL() = 0; |
| 99 virtual const std::string& GetSearchableFormEncoding() = 0; | 100 virtual const std::string& GetSearchableFormEncoding() = 0; |
| 100 | 101 |
| 102 virtual ReloadType GetReloadType() = 0; | |
|
Charlie Reis
2017/01/23 18:30:08
Let's add a comment mentioning this is only presen
| |
| 103 | |
| 101 // Parameters available at network request start time ------------------------ | 104 // Parameters available at network request start time ------------------------ |
| 102 // | 105 // |
| 103 // The following parameters are only available when the network request is | 106 // The following parameters are only available when the network request is |
| 104 // made for the navigation (or at commit time if no network request is made). | 107 // made for the navigation (or at commit time if no network request is made). |
| 105 // This corresponds to NavigationThrottle::WillSendRequest. They should not | 108 // This corresponds to NavigationThrottle::WillSendRequest. They should not |
| 106 // be queried before that. | 109 // be queried before that. |
| 107 | 110 |
| 108 // Whether the navigation is done using HTTP POST method. This may change | 111 // Whether the navigation is done using HTTP POST method. This may change |
| 109 // during the navigation (e.g. after encountering a server redirect). | 112 // during the navigation (e.g. after encountering a server redirect). |
| 110 // | 113 // |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 245 | 248 |
| 246 // The NavigationData that the embedder returned from | 249 // The NavigationData that the embedder returned from |
| 247 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will | 250 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will |
| 248 // be a clone of the NavigationData. | 251 // be a clone of the NavigationData. |
| 249 virtual NavigationData* GetNavigationData() = 0; | 252 virtual NavigationData* GetNavigationData() = 0; |
| 250 }; | 253 }; |
| 251 | 254 |
| 252 } // namespace content | 255 } // namespace content |
| 253 | 256 |
| 254 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 257 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
| OLD | NEW |