Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: content/public/browser/navigation_entry.h

Issue 10544175: Add an ability to call WebKit's WebFrame::loadData via NavigationController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 URLs for pages loaded via data URLs.
53 // This is used only for Android WebView.
54 virtual void SetBaseURL(const GURL& url) = 0;
55 virtual const GURL& GetBaseURL() const = 0;
56
52 // The referring URL. Can be empty. 57 // The referring URL. Can be empty.
53 virtual void SetReferrer(const content::Referrer& referrer) = 0; 58 virtual void SetReferrer(const content::Referrer& referrer) = 0;
54 virtual const content::Referrer& GetReferrer() const = 0; 59 virtual const content::Referrer& GetReferrer() const = 0;
55 60
56 // The virtual URL, when nonempty, will override the actual URL of the page 61 // 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 62 // 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 63 // 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. 64 // the renderer a data URL that results in the content loading.
60 // 65 //
61 // GetVirtualURL() will return the URL to display to the user in all cases, so 66 // 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
144 virtual const GURL& GetOriginalRequestURL() const = 0; 149 virtual const GURL& GetOriginalRequestURL() const = 0;
145 150
146 // Store whether or not we're overriding the user agent. 151 // Store whether or not we're overriding the user agent.
147 virtual void SetIsOverridingUserAgent(bool override) = 0; 152 virtual void SetIsOverridingUserAgent(bool override) = 0;
148 virtual bool GetIsOverridingUserAgent() const = 0; 153 virtual bool GetIsOverridingUserAgent() const = 0;
149 }; 154 };
150 155
151 } // namespace content 156 } // namespace content
152 157
153 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 158 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698