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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 // Page state is an opaque blob created by Blink that represents the state of | 79 // Page state is an opaque blob created by Blink that represents the state of |
80 // the page. This includes form entries and scroll position for each frame. | 80 // the page. This includes form entries and scroll position for each frame. |
81 // We store it so that we can supply it back to Blink to restore form state | 81 // We store it so that we can supply it back to Blink to restore form state |
82 // properly when the user goes back and forward. | 82 // properly when the user goes back and forward. |
83 // | 83 // |
84 // NOTE: This state is saved to disk and used to restore previous states. If | 84 // NOTE: This state is saved to disk and used to restore previous states. If |
85 // the format is modified in the future, we should still be able to deal with | 85 // the format is modified in the future, we should still be able to deal with |
86 // older versions. | 86 // older versions. |
87 virtual void SetPageState(const PageState& state) = 0; | 87 virtual void SetPageState(const PageState& state) = 0; |
88 virtual const PageState& GetPageState() const = 0; | 88 virtual PageState GetPageState() const = 0; |
89 | 89 |
90 // Describes the current page that the tab represents. This is the ID that the | 90 // Describes the current page that the tab represents. This is the ID that the |
91 // renderer generated for the page and is how we can tell new versus | 91 // renderer generated for the page and is how we can tell new versus |
92 // renavigations. | 92 // renavigations. |
93 virtual void SetPageID(int page_id) = 0; | 93 virtual void SetPageID(int page_id) = 0; |
94 virtual int32 GetPageID() const = 0; | 94 virtual int32 GetPageID() const = 0; |
95 | 95 |
96 // Page-related helpers ------------------------------------------------------ | 96 // Page-related helpers ------------------------------------------------------ |
97 | 97 |
98 // Returns the title to be displayed on the tab. This could be the title of | 98 // Returns the title to be displayed on the tab. This could be the title of |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 virtual void SetRedirectChain(const std::vector<GURL>& redirects) = 0; | 209 virtual void SetRedirectChain(const std::vector<GURL>& redirects) = 0; |
210 virtual const std::vector<GURL>& GetRedirectChain() const = 0; | 210 virtual const std::vector<GURL>& GetRedirectChain() const = 0; |
211 | 211 |
212 // True if this entry is restored and hasn't been loaded. | 212 // True if this entry is restored and hasn't been loaded. |
213 virtual bool IsRestored() const = 0; | 213 virtual bool IsRestored() const = 0; |
214 }; | 214 }; |
215 | 215 |
216 } // namespace content | 216 } // namespace content |
217 | 217 |
218 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ | 218 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ |
OLD | NEW |