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

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

Issue 84703003: Allow data URL > 2MB for loadDataWithBaseURL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted_memory.h" 10 #include "base/memory/ref_counted_memory.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // The actual URL of the page. For some about pages, this may be a scary 48 // The actual URL of the page. For some about pages, this may be a scary
49 // data: URL or something like that. Use GetVirtualURL() below for showing to 49 // data: URL or something like that. Use GetVirtualURL() below for showing to
50 // the user. 50 // the user.
51 virtual void SetURL(const GURL& url) = 0; 51 virtual void SetURL(const GURL& url) = 0;
52 virtual const GURL& GetURL() const = 0; 52 virtual const GURL& GetURL() const = 0;
53 53
54 // Used for specifying a base URL for pages loaded via data URLs. 54 // Used for specifying a base URL for pages loaded via data URLs.
55 virtual void SetBaseURLForDataURL(const GURL& url) = 0; 55 virtual void SetBaseURLForDataURL(const GURL& url) = 0;
56 virtual const GURL& GetBaseURLForDataURL() const = 0; 56 virtual const GURL& GetBaseURLForDataURL() const = 0;
57 57
58 // Used for supplying the payload data of a data URL. Only used if
59 // SetBaseURLForDataURL() is also called.
60 virtual void SetDataForDataURL(base::RefCountedMemory* data) = 0;
61 virtual base::RefCountedMemory* GetDataForDataURL() const = 0;
62
58 // The referring URL. Can be empty. 63 // The referring URL. Can be empty.
59 virtual void SetReferrer(const content::Referrer& referrer) = 0; 64 virtual void SetReferrer(const content::Referrer& referrer) = 0;
60 virtual const content::Referrer& GetReferrer() const = 0; 65 virtual const content::Referrer& GetReferrer() const = 0;
61 66
62 // The virtual URL, when nonempty, will override the actual URL of the page 67 // The virtual URL, when nonempty, will override the actual URL of the page
63 // when we display it to the user. This allows us to have nice and friendly 68 // when we display it to the user. This allows us to have nice and friendly
64 // URLs that the user sees for things like about: URLs, but actually feed 69 // URLs that the user sees for things like about: URLs, but actually feed
65 // the renderer a data URL that results in the content loading. 70 // the renderer a data URL that results in the content loading.
66 // 71 //
67 // GetVirtualURL() will return the URL to display to the user in all cases, so 72 // GetVirtualURL() will return the URL to display to the user in all cases, so
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 // - a response wasn't received; 210 // - a response wasn't received;
206 // - or this navigation was restored and for some reason the 211 // - or this navigation was restored and for some reason the
207 // status code wasn't available. 212 // status code wasn't available.
208 virtual void SetHttpStatusCode(int http_status_code) = 0; 213 virtual void SetHttpStatusCode(int http_status_code) = 0;
209 virtual int GetHttpStatusCode() const = 0; 214 virtual int GetHttpStatusCode() const = 0;
210 }; 215 };
211 216
212 } // namespace content 217 } // namespace content
213 218
214 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_ 219 #endif // CONTENT_PUBLIC_BROWSER_NAVIGATION_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698