blob: cae2f469262de399d93483bcc160f4144bbb6beb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright (c) 2012 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 "content/common/clipboard_messages.h"
#include "ui/base/clipboard/clipboard.h"
namespace IPC {
void ParamTraits<ui::Clipboard::FormatType>::Write(
Message* m, const param_type& p) {
m->WriteString(p.Serialize());
}
bool ParamTraits<ui::Clipboard::FormatType>::Read(
const Message* m, PickleIterator* iter, param_type* r) {
std::string serialization;
if (!ReadParam(m, iter, &serialization))
return false;
*r = ui::Clipboard::FormatType::Deserialize(serialization);
return true;
}
void ParamTraits<ui::Clipboard::FormatType>::Log(
const param_type& p, std::string* l) {
*l = p.Serialize();
}
} // namespace IPC
|