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_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 18 matching lines...) Expand all Loading... | |
29 const string16& title, | 29 const string16& title, |
30 PageTransition transition_type, | 30 PageTransition transition_type, |
31 bool is_renderer_initiated); | 31 bool is_renderer_initiated); |
32 virtual ~NavigationEntryImpl(); | 32 virtual ~NavigationEntryImpl(); |
33 | 33 |
34 // NavigationEntry implementation: | 34 // NavigationEntry implementation: |
35 virtual int GetUniqueID() const OVERRIDE; | 35 virtual int GetUniqueID() const OVERRIDE; |
36 virtual PageType GetPageType() const OVERRIDE; | 36 virtual PageType GetPageType() const OVERRIDE; |
37 virtual void SetURL(const GURL& url) OVERRIDE; | 37 virtual void SetURL(const GURL& url) OVERRIDE; |
38 virtual const GURL& GetURL() const OVERRIDE; | 38 virtual const GURL& GetURL() const OVERRIDE; |
39 virtual void SetBaseURLForDataURL(const GURL& url) OVERRIDE; | |
40 virtual const GURL& GetBaseURLForDataURL() const OVERRIDE; | |
39 virtual void SetReferrer(const Referrer& referrer) OVERRIDE; | 41 virtual void SetReferrer(const Referrer& referrer) OVERRIDE; |
40 virtual const Referrer& GetReferrer() const OVERRIDE; | 42 virtual const Referrer& GetReferrer() const OVERRIDE; |
41 virtual void SetVirtualURL(const GURL& url) OVERRIDE; | 43 virtual void SetVirtualURL(const GURL& url) OVERRIDE; |
42 virtual const GURL& GetVirtualURL() const OVERRIDE; | 44 virtual const GURL& GetVirtualURL() const OVERRIDE; |
43 virtual void SetTitle(const string16& title) OVERRIDE; | 45 virtual void SetTitle(const string16& title) OVERRIDE; |
44 virtual const string16& GetTitle() const OVERRIDE; | 46 virtual const string16& GetTitle() const OVERRIDE; |
45 virtual void SetContentState(const std::string& state) OVERRIDE; | 47 virtual void SetContentState(const std::string& state) OVERRIDE; |
46 virtual const std::string& GetContentState() const OVERRIDE; | 48 virtual const std::string& GetContentState() const OVERRIDE; |
47 virtual void SetPageID(int page_id) OVERRIDE; | 49 virtual void SetPageID(int page_id) OVERRIDE; |
48 virtual int32 GetPageID() const OVERRIDE; | 50 virtual int32 GetPageID() const OVERRIDE; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
180 GURL user_typed_url_; | 182 GURL user_typed_url_; |
181 bool has_post_data_; | 183 bool has_post_data_; |
182 int64 post_id_; | 184 int64 post_id_; |
183 RestoreType restore_type_; | 185 RestoreType restore_type_; |
184 GURL original_request_url_; | 186 GURL original_request_url_; |
185 bool is_overriding_user_agent_; | 187 bool is_overriding_user_agent_; |
186 | 188 |
187 // This member is not persisted with sesssion restore. | 189 // This member is not persisted with sesssion restore. |
188 std::string extra_headers_; | 190 std::string extra_headers_; |
189 | 191 |
192 // Used for specifying base URL for pages loaded via data URLs. Not persisted. | |
Charlie Reis
2012/07/10 20:54:19
Sanity check: why is this safe to not persist? Is
mnaganov (inactive)
2012/07/23 14:02:30
WebView currently uses the single-process model (f
| |
193 GURL base_url_for_data_url_; | |
194 | |
190 // Whether the entry, while loading, was created for a renderer-initiated | 195 // Whether the entry, while loading, was created for a renderer-initiated |
191 // navigation. This dictates whether the URL should be displayed before the | 196 // navigation. This dictates whether the URL should be displayed before the |
192 // navigation commits. It is cleared on commit and not persisted. | 197 // navigation commits. It is cleared on commit and not persisted. |
193 bool is_renderer_initiated_; | 198 bool is_renderer_initiated_; |
194 | 199 |
195 // This is a cached version of the result of GetTitleForDisplay. It prevents | 200 // This is a cached version of the result of GetTitleForDisplay. It prevents |
196 // us from having to do URL formatting on the URL every time the title is | 201 // us from having to do URL formatting on the URL every time the title is |
197 // displayed. When the URL, virtual URL, or title is set, this should be | 202 // displayed. When the URL, virtual URL, or title is set, this should be |
198 // cleared to force a refresh. | 203 // cleared to force a refresh. |
199 mutable string16 cached_display_title_; | 204 mutable string16 cached_display_title_; |
(...skipping 13 matching lines...) Expand all Loading... | |
213 // instance, instead of a new navigation. This value should not be persisted | 218 // instance, instead of a new navigation. This value should not be persisted |
214 // and is not needed after the entry commits. | 219 // and is not needed after the entry commits. |
215 bool is_cross_site_reload_; | 220 bool is_cross_site_reload_; |
216 | 221 |
217 // Copy and assignment is explicitly allowed for this class. | 222 // Copy and assignment is explicitly allowed for this class. |
218 }; | 223 }; |
219 | 224 |
220 } // namespace content | 225 } // namespace content |
221 | 226 |
222 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ | 227 #endif // CONTENT_BROWSER_WEB_CONTENTS_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |