| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/memory/ref_counted_memory.h" | 10 #include "base/memory/ref_counted_memory.h" |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 // The status code of the last known successful navigation. If | 203 // The status code of the last known successful navigation. If |
| 204 // GetHttpStatusCode() returns 0 that means that either: | 204 // GetHttpStatusCode() returns 0 that means that either: |
| 205 // | 205 // |
| 206 // - this navigation hasn't completed yet; | 206 // - this navigation hasn't completed yet; |
| 207 // - a response wasn't received; | 207 // - a response wasn't received; |
| 208 // - or this navigation was restored and for some reason the | 208 // - or this navigation was restored and for some reason the |
| 209 // status code wasn't available. | 209 // status code wasn't available. |
| 210 virtual void SetHttpStatusCode(int http_status_code) = 0; | 210 virtual void SetHttpStatusCode(int http_status_code) = 0; |
| 211 virtual int GetHttpStatusCode() const = 0; | 211 virtual int GetHttpStatusCode() const = 0; |
| 212 | 212 |
| 213 // The redirect chain traversed during this navigation, from the initial |
| 214 // redirecting URL to the final non-redirecting current URL. |
| 215 virtual void SetRedirectChain(const std::vector<GURL>& redirects) = 0; |
| 216 virtual const std::vector<GURL>& GetRedirectChain() const = 0; |
| 217 |
| 213 // True if this entry is restored and hasn't been loaded. | 218 // True if this entry is restored and hasn't been loaded. |
| 214 virtual bool IsRestored() const = 0; | 219 virtual bool IsRestored() const = 0; |
| 215 }; | 220 }; |
| 216 | 221 |
| 217 } // namespace content | 222 } // namespace content |
| 218 | 223 |
| 219 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ | 224 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ |
| OLD | NEW |