| 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/string16.h" | 10 #include "base/string16.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // The page type tells us if this entry is for an interstitial or error page. | 42 // The page type tells us if this entry is for an interstitial or error page. |
| 43 virtual content::PageType GetPageType() const = 0; | 43 virtual content::PageType GetPageType() const = 0; |
| 44 | 44 |
| 45 // The actual URL of the page. For some about pages, this may be a scary | 45 // The actual URL of the page. For some about pages, this may be a scary |
| 46 // data: URL or something like that. Use GetVirtualURL() below for showing to | 46 // data: URL or something like that. Use GetVirtualURL() below for showing to |
| 47 // the user. | 47 // the user. |
| 48 virtual void SetURL(const GURL& url) = 0; | 48 virtual void SetURL(const GURL& url) = 0; |
| 49 virtual const GURL& GetURL() const = 0; | 49 virtual const GURL& GetURL() const = 0; |
| 50 | 50 |
| 51 // Used for specifying a base URL for pages loaded via data URLs. |
| 52 virtual void SetBaseURLForDataURL(const GURL& url) = 0; |
| 53 virtual const GURL& GetBaseURLForDataURL() const = 0; |
| 54 |
| 51 // The referring URL. Can be empty. | 55 // The referring URL. Can be empty. |
| 52 virtual void SetReferrer(const content::Referrer& referrer) = 0; | 56 virtual void SetReferrer(const content::Referrer& referrer) = 0; |
| 53 virtual const content::Referrer& GetReferrer() const = 0; | 57 virtual const content::Referrer& GetReferrer() const = 0; |
| 54 | 58 |
| 55 // The virtual URL, when nonempty, will override the actual URL of the page | 59 // The virtual URL, when nonempty, will override the actual URL of the page |
| 56 // when we display it to the user. This allows us to have nice and friendly | 60 // when we display it to the user. This allows us to have nice and friendly |
| 57 // URLs that the user sees for things like about: URLs, but actually feed | 61 // URLs that the user sees for things like about: URLs, but actually feed |
| 58 // the renderer a data URL that results in the content loading. | 62 // the renderer a data URL that results in the content loading. |
| 59 // | 63 // |
| 60 // GetVirtualURL() will return the URL to display to the user in all cases, so | 64 // GetVirtualURL() will return the URL to display to the user in all cases, so |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 virtual const GURL& GetOriginalRequestURL() const = 0; | 147 virtual const GURL& GetOriginalRequestURL() const = 0; |
| 144 | 148 |
| 145 // Store whether or not we're overriding the user agent. | 149 // Store whether or not we're overriding the user agent. |
| 146 virtual void SetIsOverridingUserAgent(bool override) = 0; | 150 virtual void SetIsOverridingUserAgent(bool override) = 0; |
| 147 virtual bool GetIsOverridingUserAgent() const = 0; | 151 virtual bool GetIsOverridingUserAgent() const = 0; |
| 148 }; | 152 }; |
| 149 | 153 |
| 150 } // namespace content | 154 } // namespace content |
| 151 | 155 |
| 152 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ | 156 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ |
| OLD | NEW |