| 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 // Returns the reload type for this navigation. Note that renderer-initiated |
| 103 // reloads (via location.reload()) won't count as a reload and do return |
| 104 // ReloadType::NONE. |
| 105 virtual ReloadType GetReloadType() = 0; |
| 106 |
| 101 // Parameters available at network request start time ------------------------ | 107 // Parameters available at network request start time ------------------------ |
| 102 // | 108 // |
| 103 // The following parameters are only available when the network request is | 109 // 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). | 110 // made for the navigation (or at commit time if no network request is made). |
| 105 // This corresponds to NavigationThrottle::WillSendRequest. They should not | 111 // This corresponds to NavigationThrottle::WillSendRequest. They should not |
| 106 // be queried before that. | 112 // be queried before that. |
| 107 | 113 |
| 108 // Whether the navigation is done using HTTP POST method. This may change | 114 // Whether the navigation is done using HTTP POST method. This may change |
| 109 // during the navigation (e.g. after encountering a server redirect). | 115 // during the navigation (e.g. after encountering a server redirect). |
| 110 // | 116 // |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 | 251 |
| 246 // The NavigationData that the embedder returned from | 252 // The NavigationData that the embedder returned from |
| 247 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will | 253 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will |
| 248 // be a clone of the NavigationData. | 254 // be a clone of the NavigationData. |
| 249 virtual NavigationData* GetNavigationData() = 0; | 255 virtual NavigationData* GetNavigationData() = 0; |
| 250 }; | 256 }; |
| 251 | 257 |
| 252 } // namespace content | 258 } // namespace content |
| 253 | 259 |
| 254 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 260 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
| OLD | NEW |