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

Unified Diff: content/common/navigation_params.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/common/navigation_params.h
diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h
index 7caceeb9dc0f7bc522b8522c9c1c90e9263e974c..82712a46262e9a2e86774dbcbb6173d1a53e8cbf 100644
--- a/content/common/navigation_params.h
+++ b/content/common/navigation_params.h
@@ -17,10 +17,6 @@
#include "ui/base/page_transition_types.h"
#include "url/gurl.h"
-namespace base {
-class RefCountedMemory;
-}
-
namespace content {
// The LoFi state which determines whether to add the Lo-Fi header.
@@ -305,6 +301,12 @@ struct CONTENT_EXPORT RequestNavigationParams {
// This parameter is not used in the current navigation architecture, where
// it will always be equal to kInvalidServiceWorkerProviderId.
int service_worker_provider_id;
+
+#if defined(OS_ANDROID)
+ // The real content of the data: URL. Used to circumvent the restriction
Charlie Reis 2015/12/14 20:35:57 nit: Can you add something about how this is only
mnaganov (inactive) 2015/12/15 18:30:29 Done.
+ // on the GURL max length.
+ std::string data_url_as_string;
+#endif
};
// Helper struct keeping track in one place of all the parameters the browser

Powered by Google App Engine
This is Rietveld 408576698