OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ENTRY_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ |
6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ | 6 #define CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 virtual void SetHttpStatusCode(int http_status_code) = 0; | 218 virtual void SetHttpStatusCode(int http_status_code) = 0; |
219 virtual int GetHttpStatusCode() const = 0; | 219 virtual int GetHttpStatusCode() const = 0; |
220 | 220 |
221 // The redirect chain traversed during this navigation, from the initial | 221 // The redirect chain traversed during this navigation, from the initial |
222 // redirecting URL to the final non-redirecting current URL. | 222 // redirecting URL to the final non-redirecting current URL. |
223 virtual void SetRedirectChain(const std::vector<GURL>& redirects) = 0; | 223 virtual void SetRedirectChain(const std::vector<GURL>& redirects) = 0; |
224 virtual const std::vector<GURL>& GetRedirectChain() const = 0; | 224 virtual const std::vector<GURL>& GetRedirectChain() const = 0; |
225 | 225 |
226 // True if this entry is restored and hasn't been loaded. | 226 // True if this entry is restored and hasn't been loaded. |
227 virtual bool IsRestored() const = 0; | 227 virtual bool IsRestored() const = 0; |
| 228 |
| 229 // Returns the extra headers (separated by \n) to send during the request. |
| 230 virtual std::string GetExtraHeaders() const = 0; |
| 231 |
| 232 // Adds more extra headers (separated by \n) to send during the request. |
| 233 virtual void AddExtraHeaders(const std::string& extra_headers) = 0; |
228 }; | 234 }; |
229 | 235 |
230 } // namespace content | 236 } // namespace content |
231 | 237 |
232 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ | 238 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ |
OLD | NEW |