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

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: Fixed the test 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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/navigation_params.h
diff --git a/content/common/navigation_params.h b/content/common/navigation_params.h
index 7caceeb9dc0f7bc522b8522c9c1c90e9263e974c..f43bbd4df25cb08be3122084535473518bf70c79 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,14 @@ 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. Only used in Android WebView for
+ // implementing LoadDataWithBaseUrl API method to circumvent the restriction
+ // on the GURL max length in the IPC layer. Short data: URLs can still be
+ // passed in the |CommonNavigationParams::url| field.
+ std::string data_url_as_string;
+#endif
};
// Helper struct keeping track in one place of all the parameters the browser
« no previous file with comments | « content/common/frame_messages.h ('k') | content/common/navigation_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698