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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 virtual void SetFrameToNavigate(const std::string& frame_name) = 0; | 191 virtual void SetFrameToNavigate(const std::string& frame_name) = 0; |
192 virtual const std::string& GetFrameToNavigate() const = 0; | 192 virtual const std::string& GetFrameToNavigate() const = 0; |
193 | 193 |
194 // Set extra data on this NavigationEntry according to the specified |key|. | 194 // Set extra data on this NavigationEntry according to the specified |key|. |
195 // This data is not persisted by default. | 195 // This data is not persisted by default. |
196 virtual void SetExtraData(const std::string& key, const string16& data) = 0; | 196 virtual void SetExtraData(const std::string& key, const string16& data) = 0; |
197 // If present, fills the |data| present at the specified |key|. | 197 // If present, fills the |data| present at the specified |key|. |
198 virtual bool GetExtraData(const std::string& key, string16* data) const = 0; | 198 virtual bool GetExtraData(const std::string& key, string16* data) const = 0; |
199 // Removes the data at the specified |key|. | 199 // Removes the data at the specified |key|. |
200 virtual void ClearExtraData(const std::string& key) = 0; | 200 virtual void ClearExtraData(const std::string& key) = 0; |
| 201 |
| 202 // The status code of the last known successful navigation. If |
| 203 // GetHttpStatusCode() returns 0 that means that either: |
| 204 // |
| 205 // - this navigation hasn't completed yet; |
| 206 // - a response wasn't received; |
| 207 // - or this navigation was restored and for some reason the |
| 208 // status code wasn't available. |
| 209 virtual void SetHttpStatusCode(int http_status_code) = 0; |
| 210 virtual int GetHttpStatusCode() const = 0; |
201 }; | 211 }; |
202 | 212 |
203 } // namespace content | 213 } // namespace content |
204 | 214 |
205 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ | 215 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ |
OLD | NEW |