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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 // Used to specify if this entry should be able to access local file:// | 181 // Used to specify if this entry should be able to access local file:// |
182 // resources. | 182 // resources. |
183 virtual void SetCanLoadLocalResources(bool allow) = 0; | 183 virtual void SetCanLoadLocalResources(bool allow) = 0; |
184 virtual bool GetCanLoadLocalResources() const = 0; | 184 virtual bool GetCanLoadLocalResources() const = 0; |
185 | 185 |
186 // Used to specify which frame to navigate. If empty, the main frame is | 186 // Used to specify which frame to navigate. If empty, the main frame is |
187 // navigated. This is currently not persisted in session restore, because it | 187 // navigated. This is currently not persisted in session restore, because it |
188 // is currently only used in tests. | 188 // is currently only used in tests. |
189 virtual void SetFrameToNavigate(const std::string& frame_name) = 0; | 189 virtual void SetFrameToNavigate(const std::string& frame_name) = 0; |
190 virtual const std::string& GetFrameToNavigate() const = 0; | 190 virtual const std::string& GetFrameToNavigate() const = 0; |
| 191 |
| 192 // Set extra data on this NavigationEntry according to the specified |key|. |
| 193 // This data is not persisted by default. |
| 194 virtual void SetExtraData(const std::string& key, const string16& data) = 0; |
| 195 // If present, fills the |data| present at the specified |key|. |
| 196 virtual bool GetExtraData(const std::string& key, string16* data) const = 0; |
| 197 // Removes the data at the specified |key|. |
| 198 virtual void ClearExtraData(const std::string& key) = 0; |
191 }; | 199 }; |
192 | 200 |
193 } // namespace content | 201 } // namespace content |
194 | 202 |
195 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ | 203 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ |
OLD | NEW |