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

Side by Side Diff: content/common/mac/attributed_string_coder.h

Issue 1149113006: Move Pickle to base namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/input/input_param_traits.h ('k') | content/common/media/media_param_traits.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MAC_ATTRIBUTED_STRING_CODER_H_ 5 #ifndef CONTENT_COMMON_MAC_ATTRIBUTED_STRING_CODER_H_
6 #define CONTENT_COMMON_MAC_ATTRIBUTED_STRING_CODER_H_ 6 #define CONTENT_COMMON_MAC_ATTRIBUTED_STRING_CODER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } // namespace mac 94 } // namespace mac
95 95
96 // IPC ParamTraits specialization ////////////////////////////////////////////// 96 // IPC ParamTraits specialization //////////////////////////////////////////////
97 97
98 namespace IPC { 98 namespace IPC {
99 99
100 template <> 100 template <>
101 struct ParamTraits<mac::AttributedStringCoder::EncodedString> { 101 struct ParamTraits<mac::AttributedStringCoder::EncodedString> {
102 typedef mac::AttributedStringCoder::EncodedString param_type; 102 typedef mac::AttributedStringCoder::EncodedString param_type;
103 static void Write(Message* m, const param_type& p); 103 static void Write(Message* m, const param_type& p);
104 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 104 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r);
105 static void Log(const param_type& p, std::string* l); 105 static void Log(const param_type& p, std::string* l);
106 }; 106 };
107 107
108 template <> 108 template <>
109 struct ParamTraits<mac::AttributedStringCoder::FontAttribute> { 109 struct ParamTraits<mac::AttributedStringCoder::FontAttribute> {
110 typedef mac::AttributedStringCoder::FontAttribute param_type; 110 typedef mac::AttributedStringCoder::FontAttribute param_type;
111 static void Write(Message* m, const param_type& p); 111 static void Write(Message* m, const param_type& p);
112 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 112 static bool Read(const Message* m, base::PickleIterator* iter, param_type* r);
113 static void Log(const param_type& p, std::string* l); 113 static void Log(const param_type& p, std::string* l);
114 }; 114 };
115 115
116 } // namespace IPC 116 } // namespace IPC
117 117
118 #endif // CONTENT_COMMON_MAC_ATTRIBUTED_STRING_CODER_H_ 118 #endif // CONTENT_COMMON_MAC_ATTRIBUTED_STRING_CODER_H_
OLDNEW
« no previous file with comments | « content/common/input/input_param_traits.h ('k') | content/common/media/media_param_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698