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

Unified Diff: chrome/common/render_messages.cc

Issue 6388004: Move non-file-system Pepper IPC messages to chrome/common/pepper_messages.*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/renderer
Patch Set: Fix size_t-size-correctness. Created 9 years, 11 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/render_messages.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/render_messages.cc
diff --git a/chrome/common/render_messages.cc b/chrome/common/render_messages.cc
index a49ea2e536dfea53cb52f351aa8f1451b2d2484d..bab7445abda5cbcc949aea3c6080a31360335f7e 100644
--- a/chrome/common/render_messages.cc
+++ b/chrome/common/render_messages.cc
@@ -16,7 +16,6 @@
#include "media/audio/audio_buffers_state.h"
#include "net/base/upload_data.h"
#include "net/http/http_response_headers.h"
-#include "ppapi/c/private/ppb_flash.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderline.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "webkit/appcache/appcache_interfaces.h"
@@ -1221,33 +1220,4 @@ void ParamTraits<AudioBuffersState>::Log(const param_type& p, std::string* l) {
l->append(")");
}
-void ParamTraits<PP_Flash_NetAddress>::Write(Message* m, const param_type& p) {
- WriteParam(m, p.size);
- m->WriteBytes(p.data, p.size);
-}
-
-bool ParamTraits<PP_Flash_NetAddress>::Read(const Message* m,
- void** iter,
- param_type* p) {
- uint16 size;
- if (!ReadParam(m, iter, &size))
- return false;
- if (size > sizeof(p->data))
- return false;
- p->size = size;
-
- const char* data;
- if (!m->ReadBytes(iter, &data, size))
- return false;
- memcpy(p->data, data, size);
- return true;
-}
-
-void ParamTraits<PP_Flash_NetAddress>::Log(const param_type& p,
- std::string* l) {
- l->append("<PP_Flash_NetAddress (");
- LogParam(p.size, l);
- l->append(" bytes)>");
-}
-
} // namespace IPC
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698