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

Unified Diff: content/public/browser/navigation_controller.h

Issue 1497743005: Allow huge data: URIs only via WebView.loadDataWithBaseUrl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 5 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/navigation_controller.h
diff --git a/content/public/browser/navigation_controller.h b/content/public/browser/navigation_controller.h
index ac52ae13188730ea99ccac05ab66dac907d788c5..39f513436bad0ec5e3fc02fedc6ccf605f2db90c 100644
--- a/content/public/browser/navigation_controller.h
+++ b/content/public/browser/navigation_controller.h
@@ -22,6 +22,7 @@
namespace base {
class RefCountedMemory;
+class RefCountedString;
} // namespace base
@@ -161,6 +162,14 @@ class NavigationController {
// data loads.
GURL virtual_url_for_data_url;
+#if defined(OS_ANDROID)
+ // Used in LOAD_TYPE_DATA loads only. The real data URI is represented
+ // as a string to circumvent the restriction on GURL size. This is only
+ // needed to pass URL that exceed the IPC limit (kMaxURLChars). Short
Charlie Reis 2015/12/15 19:22:07 nit: URLs
mnaganov (inactive) 2015/12/15 20:30:49 Done.
+ // data: URLs can be passed in the |url| field.
+ scoped_refptr<base::RefCountedString> data_url_as_string;
+#endif
+
// Used in LOAD_TYPE_BROWSER_INITIATED_HTTP_POST loads only. Carries the
// post data of the load. Ownership is transferred to NavigationController
// after LoadURLWithParams call.

Powered by Google App Engine
This is Rietveld 408576698