| 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 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 103 |
| 104 // Returns the reload type for this navigation. Note that renderer-initiated | 104 // Returns the reload type for this navigation. Note that renderer-initiated |
| 105 // reloads (via location.reload()) won't count as a reload and do return | 105 // reloads (via location.reload()) won't count as a reload and do return |
| 106 // ReloadType::NONE. | 106 // ReloadType::NONE. |
| 107 virtual ReloadType GetReloadType() = 0; | 107 virtual ReloadType GetReloadType() = 0; |
| 108 | 108 |
| 109 // Returns the restore type for this navigation. RestoreType::NONE is returned | 109 // Returns the restore type for this navigation. RestoreType::NONE is returned |
| 110 // if the navigation is not a restore. | 110 // if the navigation is not a restore. |
| 111 virtual RestoreType GetRestoreType() = 0; | 111 virtual RestoreType GetRestoreType() = 0; |
| 112 | 112 |
| 113 // Used for specifying a base URL for pages loaded via data URLs. |
| 114 virtual const GURL& GetBaseURLForDataURL() = 0; |
| 115 |
| 113 // Parameters available at network request start time ------------------------ | 116 // Parameters available at network request start time ------------------------ |
| 114 // | 117 // |
| 115 // The following parameters are only available when the network request is | 118 // The following parameters are only available when the network request is |
| 116 // made for the navigation (or at commit time if no network request is made). | 119 // made for the navigation (or at commit time if no network request is made). |
| 117 // This corresponds to NavigationThrottle::WillSendRequest. They should not | 120 // This corresponds to NavigationThrottle::WillSendRequest. They should not |
| 118 // be queried before that. | 121 // be queried before that. |
| 119 | 122 |
| 120 // Whether the navigation is done using HTTP POST method. This may change | 123 // Whether the navigation is done using HTTP POST method. This may change |
| 121 // during the navigation (e.g. after encountering a server redirect). | 124 // during the navigation (e.g. after encountering a server redirect). |
| 122 // | 125 // |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 | 284 |
| 282 // The NavigationData that the embedder returned from | 285 // The NavigationData that the embedder returned from |
| 283 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will | 286 // ResourceDispatcherHostDelegate::GetNavigationData during commit. This will |
| 284 // be a clone of the NavigationData. | 287 // be a clone of the NavigationData. |
| 285 virtual NavigationData* GetNavigationData() = 0; | 288 virtual NavigationData* GetNavigationData() = 0; |
| 286 }; | 289 }; |
| 287 | 290 |
| 288 } // namespace content | 291 } // namespace content |
| 289 | 292 |
| 290 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ | 293 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_HANDLE_H_ |
| OLD | NEW |