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 "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
75 bool is_renderer_initiated); | 75 bool is_renderer_initiated); |
76 ~NavigationEntryImpl() override; | 76 ~NavigationEntryImpl() override; |
77 | 77 |
78 // NavigationEntry implementation: | 78 // NavigationEntry implementation: |
79 int GetUniqueID() const override; | 79 int GetUniqueID() const override; |
80 PageType GetPageType() const override; | 80 PageType GetPageType() const override; |
81 void SetURL(const GURL& url) override; | 81 void SetURL(const GURL& url) override; |
82 const GURL& GetURL() const override; | 82 const GURL& GetURL() const override; |
83 void SetBaseURLForDataURL(const GURL& url) override; | 83 void SetBaseURLForDataURL(const GURL& url) override; |
84 const GURL& GetBaseURLForDataURL() const override; | 84 const GURL& GetBaseURLForDataURL() const override; |
85 #if defined(OS_ANDROID) | |
86 void SetDataURLAsString(scoped_refptr<base::RefCountedString>) override; | |
Charlie Reis
2015/12/14 20:35:57
nit: Please name parameter. (data_url)
mnaganov (inactive)
2015/12/15 18:30:29
Done.
| |
87 const scoped_refptr<const base::RefCountedString> GetDataURLAsString() | |
88 const override; | |
89 #endif | |
85 void SetReferrer(const Referrer& referrer) override; | 90 void SetReferrer(const Referrer& referrer) override; |
86 const Referrer& GetReferrer() const override; | 91 const Referrer& GetReferrer() const override; |
87 void SetVirtualURL(const GURL& url) override; | 92 void SetVirtualURL(const GURL& url) override; |
88 const GURL& GetVirtualURL() const override; | 93 const GURL& GetVirtualURL() const override; |
89 void SetTitle(const base::string16& title) override; | 94 void SetTitle(const base::string16& title) override; |
90 const base::string16& GetTitle() const override; | 95 const base::string16& GetTitle() const override; |
91 void SetPageState(const PageState& state) override; | 96 void SetPageState(const PageState& state) override; |
92 PageState GetPageState() const override; | 97 PageState GetPageState() const override; |
93 void SetPageID(int page_id) override; | 98 void SetPageID(int page_id) override; |
94 int32 GetPageID() const override; | 99 int32 GetPageID() const override; |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
413 // This member is not persisted with session restore. | 418 // This member is not persisted with session restore. |
414 std::string extra_headers_; | 419 std::string extra_headers_; |
415 | 420 |
416 // This member is cleared in |ResetForCommit| and not persisted. | 421 // This member is cleared in |ResetForCommit| and not persisted. |
417 scoped_refptr<SiteInstanceImpl> source_site_instance_; | 422 scoped_refptr<SiteInstanceImpl> source_site_instance_; |
418 | 423 |
419 // Used for specifying base URL for pages loaded via data URLs. Only used and | 424 // Used for specifying base URL for pages loaded via data URLs. Only used and |
420 // persisted by Android WebView. | 425 // persisted by Android WebView. |
421 GURL base_url_for_data_url_; | 426 GURL base_url_for_data_url_; |
422 | 427 |
428 #if defined(OS_ANDROID) | |
429 // Used for passing really big data URLs from browser to renderers. Only used | |
430 // and persisted by Android WebView. | |
431 scoped_refptr<const base::RefCountedString> data_url_as_string_; | |
432 #endif | |
433 | |
423 // Whether the entry, while loading, was created for a renderer-initiated | 434 // Whether the entry, while loading, was created for a renderer-initiated |
424 // navigation. This dictates whether the URL should be displayed before the | 435 // navigation. This dictates whether the URL should be displayed before the |
425 // navigation commits. It is cleared in |ResetForCommit| and not persisted. | 436 // navigation commits. It is cleared in |ResetForCommit| and not persisted. |
426 bool is_renderer_initiated_; | 437 bool is_renderer_initiated_; |
427 | 438 |
428 // This is a cached version of the result of GetTitleForDisplay. It prevents | 439 // This is a cached version of the result of GetTitleForDisplay. It prevents |
429 // us from having to do URL formatting on the URL every time the title is | 440 // us from having to do URL formatting on the URL every time the title is |
430 // displayed. When the URL, virtual URL, or title is set, this should be | 441 // displayed. When the URL, virtual URL, or title is set, this should be |
431 // cleared to force a refresh. | 442 // cleared to force a refresh. |
432 mutable base::string16 cached_display_title_; | 443 mutable base::string16 cached_display_title_; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
488 // persisted, unless specific data is taken out/put back in at save/restore | 499 // persisted, unless specific data is taken out/put back in at save/restore |
489 // time (see TabNavigation for an example of this). | 500 // time (see TabNavigation for an example of this). |
490 std::map<std::string, base::string16> extra_data_; | 501 std::map<std::string, base::string16> extra_data_; |
491 | 502 |
492 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); | 503 DISALLOW_COPY_AND_ASSIGN(NavigationEntryImpl); |
493 }; | 504 }; |
494 | 505 |
495 } // namespace content | 506 } // namespace content |
496 | 507 |
497 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ | 508 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_ENTRY_IMPL_H_ |
OLD | NEW |