| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "content/browser/site_instance_impl.h" | 10 #include "content/browser/site_instance_impl.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 bool is_renderer_initiated); | 34 bool is_renderer_initiated); |
| 35 virtual ~NavigationEntryImpl(); | 35 virtual ~NavigationEntryImpl(); |
| 36 | 36 |
| 37 // NavigationEntry implementation: | 37 // NavigationEntry implementation: |
| 38 virtual int GetUniqueID() const OVERRIDE; | 38 virtual int GetUniqueID() const OVERRIDE; |
| 39 virtual PageType GetPageType() const OVERRIDE; | 39 virtual PageType GetPageType() const OVERRIDE; |
| 40 virtual void SetURL(const GURL& url) OVERRIDE; | 40 virtual void SetURL(const GURL& url) OVERRIDE; |
| 41 virtual const GURL& GetURL() const OVERRIDE; | 41 virtual const GURL& GetURL() const OVERRIDE; |
| 42 virtual void SetBaseURLForDataURL(const GURL& url) OVERRIDE; | 42 virtual void SetBaseURLForDataURL(const GURL& url) OVERRIDE; |
| 43 virtual const GURL& GetBaseURLForDataURL() const OVERRIDE; | 43 virtual const GURL& GetBaseURLForDataURL() const OVERRIDE; |
| 44 virtual void SetDataForDataURL(base::RefCountedMemory* data) OVERRIDE; |
| 45 virtual base::RefCountedMemory* GetDataForDataURL() const OVERRIDE; |
| 44 virtual void SetReferrer(const Referrer& referrer) OVERRIDE; | 46 virtual void SetReferrer(const Referrer& referrer) OVERRIDE; |
| 45 virtual const Referrer& GetReferrer() const OVERRIDE; | 47 virtual const Referrer& GetReferrer() const OVERRIDE; |
| 46 virtual void SetVirtualURL(const GURL& url) OVERRIDE; | 48 virtual void SetVirtualURL(const GURL& url) OVERRIDE; |
| 47 virtual const GURL& GetVirtualURL() const OVERRIDE; | 49 virtual const GURL& GetVirtualURL() const OVERRIDE; |
| 48 virtual void SetTitle(const string16& title) OVERRIDE; | 50 virtual void SetTitle(const string16& title) OVERRIDE; |
| 49 virtual const string16& GetTitle() const OVERRIDE; | 51 virtual const string16& GetTitle() const OVERRIDE; |
| 50 virtual void SetPageState(const PageState& state) OVERRIDE; | 52 virtual void SetPageState(const PageState& state) OVERRIDE; |
| 51 virtual const PageState& GetPageState() const OVERRIDE; | 53 virtual const PageState& GetPageState() const OVERRIDE; |
| 52 virtual void SetPageID(int page_id) OVERRIDE; | 54 virtual void SetPageID(int page_id) OVERRIDE; |
| 53 virtual int32 GetPageID() const OVERRIDE; | 55 virtual int32 GetPageID() const OVERRIDE; |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 // page. This screenshot is displayed during an overscroll-navigation | 272 // page. This screenshot is displayed during an overscroll-navigation |
| 271 // gesture. |screenshot_| will be NULL when the screenshot is not available | 273 // gesture. |screenshot_| will be NULL when the screenshot is not available |
| 272 // (e.g. after a session restore, or if taking the screenshot of a page | 274 // (e.g. after a session restore, or if taking the screenshot of a page |
| 273 // failed). The UI is responsible for dealing with missing screenshots | 275 // failed). The UI is responsible for dealing with missing screenshots |
| 274 // appropriately (e.g. display a placeholder image instead). | 276 // appropriately (e.g. display a placeholder image instead). |
| 275 scoped_refptr<base::RefCountedBytes> screenshot_; | 277 scoped_refptr<base::RefCountedBytes> screenshot_; |
| 276 | 278 |
| 277 // This member is not persisted with session restore. | 279 // This member is not persisted with session restore. |
| 278 std::string extra_headers_; | 280 std::string extra_headers_; |
| 279 | 281 |
| 282 // Payload data of a navigation entry with a base URL override -- only used |
| 283 // if |base_url_for_data_url_| is non-empty. Only used and persisted by |
| 284 // Android WebView. |
| 285 scoped_refptr<base::RefCountedMemory> data_for_data_url_; |
| 286 |
| 280 // Used for specifying base URL for pages loaded via data URLs. Only used and | 287 // Used for specifying base URL for pages loaded via data URLs. Only used and |
| 281 // persisted by Android WebView. | 288 // persisted by Android WebView. |
| 282 GURL base_url_for_data_url_; | 289 GURL base_url_for_data_url_; |
| 283 | 290 |
| 284 // Whether the entry, while loading, was created for a renderer-initiated | 291 // Whether the entry, while loading, was created for a renderer-initiated |
| 285 // navigation. This dictates whether the URL should be displayed before the | 292 // navigation. This dictates whether the URL should be displayed before the |
| 286 // navigation commits. It is cleared in |ResetForCommit| and not persisted. | 293 // navigation commits. It is cleared in |ResetForCommit| and not persisted. |
| 287 bool is_renderer_initiated_; | 294 bool is_renderer_initiated_; |
| 288 | 295 |
| 289 // This is a cached version of the result of GetTitleForDisplay. It prevents | 296 // This is a cached version of the result of GetTitleForDisplay. It prevents |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 // persisted, unless specific data is taken out/put back in at save/restore | 350 // persisted, unless specific data is taken out/put back in at save/restore |
| 344 // time (see TabNavigation for an example of this). | 351 // time (see TabNavigation for an example of this). |
| 345 std::map<std::string, string16> extra_data_; | 352 std::map<std::string, string16> extra_data_; |
| 346 | 353 |
| 347 // Copy and assignment is explicitly allowed for this class. | 354 // Copy and assignment is explicitly allowed for this class. |
| 348 }; | 355 }; |
| 349 | 356 |
| 350 } // namespace content | 357 } // namespace content |
| 351 | 358 |
| 352 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 359 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
| OLD | NEW |