diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-15 21:03:55 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-15 21:03:55 +0000 |
commit | 61e78f1855792814e87a777df59595edc9b163fe (patch) | |
tree | f889f061d425efcdb07d637ad9c7379881f7afa4 /chrome/common/pepper_file_messages.cc | |
parent | 630dc91c5a4e97b1c3b33799978c6bd4c00678e7 (diff) | |
download | chromium_src-61e78f1855792814e87a777df59595edc9b163fe.zip chromium_src-61e78f1855792814e87a777df59595edc9b163fe.tar.gz chromium_src-61e78f1855792814e87a777df59595edc9b163fe.tar.bz2 |
Make PepperFileMessageFilter be a BrowserMessageFilter.
Review URL: http://codereview.chromium.org/5877002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69313 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/pepper_file_messages.cc')
-rw-r--r-- | chrome/common/pepper_file_messages.cc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/chrome/common/pepper_file_messages.cc b/chrome/common/pepper_file_messages.cc new file mode 100644 index 0000000..a6ab4dc7 --- /dev/null +++ b/chrome/common/pepper_file_messages.cc @@ -0,0 +1,32 @@ +// Copyright (c) 2010 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" + +#define IPC_MESSAGE_IMPL +#include "chrome/common/pepper_file_messages.h" + +namespace IPC { + +void ParamTraits<PepperDirEntry>::Write(Message* m, const param_type& p) { + WriteParam(m, p.name); + WriteParam(m, p.is_dir); +} + +bool ParamTraits<PepperDirEntry>::Read(const Message* m, + void** iter, + param_type* p) { + return ReadParam(m, iter, &p->name) && + ReadParam(m, iter, &p->is_dir); +} + +void ParamTraits<PepperDirEntry>::Log(const param_type& p, std::string* l) { + l->append("("); + LogParam(p.name, l); + l->append(", "); + LogParam(p.is_dir, l); + l->append(")"); +} + +} // namespace IPC |