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

Side by Side Diff: content/common/gamepad_param_traits.h

Issue 1659003003: IPC::Message -> base::Pickle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more mac fix Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « content/common/content_param_traits.cc ('k') | content/common/gamepad_param_traits.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_GAMEPAD_PARAM_TRAITS_H_ 5 #ifndef CONTENT_COMMON_GAMEPAD_PARAM_TRAITS_H_
6 #define CONTENT_COMMON_GAMEPAD_PARAM_TRAITS_H_ 6 #define CONTENT_COMMON_GAMEPAD_PARAM_TRAITS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ipc/ipc_param_traits.h" 10 #include "ipc/ipc_param_traits.h"
11 11
12 namespace base { 12 namespace base {
13 class Pickle;
13 class PickleIterator; 14 class PickleIterator;
14 } 15 }
15 16
16 namespace blink { class WebGamepad; } 17 namespace blink { class WebGamepad; }
17 18
18 namespace IPC { 19 namespace IPC {
19 20
20 class Message; 21 class Message;
21 22
22 template <> 23 template <>
23 struct ParamTraits<blink::WebGamepad> { 24 struct ParamTraits<blink::WebGamepad> {
24 typedef blink::WebGamepad param_type; 25 typedef blink::WebGamepad param_type;
25 static void Write(Message* m, const blink::WebGamepad& p); 26 static void Write(base::Pickle* m, const blink::WebGamepad& p);
26 static bool Read(const Message* m, 27 static bool Read(const base::Pickle* m,
27 base::PickleIterator* iter, 28 base::PickleIterator* iter,
28 blink::WebGamepad* p); 29 blink::WebGamepad* p);
29 static void Log(const blink::WebGamepad& p, std::string* l); 30 static void Log(const blink::WebGamepad& p, std::string* l);
30 }; 31 };
31 32
32 } // namespace IPC 33 } // namespace IPC
33 34
34 #endif // CONTENT_COMMON_GAMEPAD_PARAM_TRAITS_H_ 35 #endif // CONTENT_COMMON_GAMEPAD_PARAM_TRAITS_H_
OLDNEW
« no previous file with comments | « content/common/content_param_traits.cc ('k') | content/common/gamepad_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698