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

Unified Diff: chrome/common/common_param_traits.h

Issue 6682033: Move plugin messages to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 months 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 | « chrome/common/common_message_generator.h ('k') | chrome/common/logging_chrome.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/common_param_traits.h
===================================================================
--- chrome/common/common_param_traits.h (revision 78042)
+++ chrome/common/common_param_traits.h (working copy)
@@ -12,7 +12,6 @@
#define CHROME_COMMON_COMMON_PARAM_TRAITS_H_
#pragma once
-#include "app/surface/transport_dib.h"
#include "base/file_util.h"
#include "base/ref_counted.h"
#include "chrome/common/content_settings.h"
@@ -27,7 +26,6 @@
//
// TODO(erg): The following headers are historical and only work because
// their definitions are inlined, which also needs to be fixed.
-#include "webkit/glue/webcursor.h"
#include "webkit/glue/window_open_disposition.h"
// Forward declarations.
@@ -37,7 +35,6 @@
class ListValue;
struct ThumbnailScore;
struct WebApplicationInfo;
-class WebCursor;
namespace printing {
struct PageRange;
@@ -135,23 +132,7 @@
}
};
-
template <>
-struct ParamTraits<WebCursor> {
- typedef WebCursor param_type;
- static void Write(Message* m, const param_type& p) {
- p.Serialize(m);
- }
- static bool Read(const Message* m, void** iter, param_type* r) {
- return r->Deserialize(m, iter);
- }
- static void Log(const param_type& p, std::string* l) {
- l->append("<WebCursor>");
- }
-};
-
-
-template <>
struct ParamTraits<WebApplicationInfo> {
typedef WebApplicationInfo param_type;
static void Write(Message* m, const param_type& p);
@@ -159,30 +140,7 @@
static void Log(const param_type& p, std::string* l);
};
-
-#if defined(OS_WIN)
template<>
-struct ParamTraits<TransportDIB::Id> {
- typedef TransportDIB::Id param_type;
- static void Write(Message* m, const param_type& p) {
- WriteParam(m, p.handle);
- WriteParam(m, p.sequence_num);
- }
- static bool Read(const Message* m, void** iter, param_type* r) {
- return (ReadParam(m, iter, &r->handle) &&
- ReadParam(m, iter, &r->sequence_num));
- }
- static void Log(const param_type& p, std::string* l) {
- l->append("TransportDIB(");
- LogParam(p.handle, l);
- l->append(", ");
- LogParam(p.sequence_num, l);
- l->append(")");
- }
-};
-#endif
-
-template<>
struct ParamTraits<ThumbnailScore> {
typedef ThumbnailScore param_type;
static void Write(Message* m, const param_type& p);
« no previous file with comments | « chrome/common/common_message_generator.h ('k') | chrome/common/logging_chrome.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698