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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
42 | 42 |
43 // The page type tells us if this entry is for an interstitial or error page. | 43 // The page type tells us if this entry is for an interstitial or error page. |
44 virtual content::PageType GetPageType() const = 0; | 44 virtual content::PageType GetPageType() const = 0; |
45 | 45 |
46 // The actual URL of the page. For some about pages, this may be a scary | 46 // The actual URL of the page. For some about pages, this may be a scary |
47 // data: URL or something like that. Use GetVirtualURL() below for showing to | 47 // data: URL or something like that. Use GetVirtualURL() below for showing to |
48 // the user. | 48 // the user. |
49 virtual void SetURL(const GURL& url) = 0; | 49 virtual void SetURL(const GURL& url) = 0; |
50 virtual const GURL& GetURL() const = 0; | 50 virtual const GURL& GetURL() const = 0; |
51 | 51 |
52 // Used for specifying a base URL for pages loaded via data URLs. | |
53 virtual void SetBaseURL(const GURL& url) = 0; | |
Charlie Reis
2012/06/18 18:34:29
If this isn't used for any other type of navigatio
mnaganov (inactive)
2012/06/19 12:52:32
Done. Also renamed the field from |base_url_| to |
| |
54 virtual const GURL& GetBaseURL() const = 0; | |
55 | |
52 // The referring URL. Can be empty. | 56 // The referring URL. Can be empty. |
53 virtual void SetReferrer(const content::Referrer& referrer) = 0; | 57 virtual void SetReferrer(const content::Referrer& referrer) = 0; |
54 virtual const content::Referrer& GetReferrer() const = 0; | 58 virtual const content::Referrer& GetReferrer() const = 0; |
55 | 59 |
56 // The virtual URL, when nonempty, will override the actual URL of the page | 60 // The virtual URL, when nonempty, will override the actual URL of the page |
57 // when we display it to the user. This allows us to have nice and friendly | 61 // when we display it to the user. This allows us to have nice and friendly |
58 // URLs that the user sees for things like about: URLs, but actually feed | 62 // URLs that the user sees for things like about: URLs, but actually feed |
59 // the renderer a data URL that results in the content loading. | 63 // the renderer a data URL that results in the content loading. |
60 // | 64 // |
61 // GetVirtualURL() will return the URL to display to the user in all cases, so | 65 // 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... | |
144 virtual const GURL& GetOriginalRequestURL() const = 0; | 148 virtual const GURL& GetOriginalRequestURL() const = 0; |
145 | 149 |
146 // Store whether or not we're overriding the user agent. | 150 // Store whether or not we're overriding the user agent. |
147 virtual void SetIsOverridingUserAgent(bool override) = 0; | 151 virtual void SetIsOverridingUserAgent(bool override) = 0; |
148 virtual bool GetIsOverridingUserAgent() const = 0; | 152 virtual bool GetIsOverridingUserAgent() const = 0; |
149 }; | 153 }; |
150 | 154 |
151 } // namespace content | 155 } // namespace content |
152 | 156 |
153 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ | 157 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ |
OLD | NEW |