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

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: Make specific to Android, use RefCountedString 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..94c9a82b7a2f06dcabea4430122034f2d5bad454 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,12 @@ 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 represented
Charlie Reis 2015/12/14 20:35:57 nit: is represented
mnaganov (inactive) 2015/12/15 18:30:29 Done.
+ // as a string to circumvent the restriction on GURL size.
Charlie Reis 2015/12/14 20:35:57 nit: Can you mention something about it being opti
mnaganov (inactive) 2015/12/15 18:30:29 Done.
+ 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