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

Unified Diff: chrome/common/pepper_messages.cc

Issue 6672057: Move all the message files in chrome that belong in 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
Index: chrome/common/pepper_messages.cc
===================================================================
--- chrome/common/pepper_messages.cc (revision 78395)
+++ chrome/common/pepper_messages.cc (working copy)
@@ -1,42 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/common/common_param_traits.h"
-#include "ppapi/c/private/ppb_flash_net_connector.h"
-
-#define IPC_MESSAGE_IMPL
-#include "chrome/common/pepper_messages.h"
-
-namespace IPC {
-
-void ParamTraits<PP_Flash_NetAddress>::Write(Message* m, const param_type& p) {
- WriteParam(m, p.size);
- m->WriteBytes(p.data, static_cast<int>(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

Powered by Google App Engine
This is Rietveld 408576698