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

Unified Diff: content/common/content_param_traits.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, 1 month 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/content_param_traits.h
diff --git a/content/common/content_param_traits.h b/content/common/content_param_traits.h
index d4bc359863e4102b62bfb9174aa79e82f8c36038..0a66f3f5a1375a532a43902feac817c2a4923810 100644
--- a/content/common/content_param_traits.h
+++ b/content/common/content_param_traits.h
@@ -14,6 +14,7 @@
#ifndef CONTENT_COMMON_CONTENT_PARAM_TRAITS_H_
#define CONTENT_COMMON_CONTENT_PARAM_TRAITS_H_
+#include "base/memory/ref_counted_memory.h"
#include "content/common/content_param_traits_macros.h"
#include "third_party/WebKit/public/web/WebInputEvent.h"
#include "webkit/common/cursors/webcursor.h"
@@ -28,6 +29,14 @@ class IPEndPoint;
namespace IPC {
+template<>
+struct ParamTraits<scoped_refptr<base::RefCountedMemory> > {
+ typedef scoped_refptr<base::RefCountedMemory> param_type;
+ static void Write(Message* m, const param_type& p);
+ static bool Read(const Message* m, PickleIterator* iter, param_type* p);
+ static void Log(const param_type& p, std::string* l);
+};
+
template <>
struct ParamTraits<net::IPEndPoint> {
typedef net::IPEndPoint param_type;

Powered by Google App Engine
This is Rietveld 408576698