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

Side by Side Diff: chrome/common/automation_messages.h

Issue 9447084: Refactor Pickle Read methods to use higher performance PickleIterator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compile (racing with incoming CLs) Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 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 // Multiply-included message file, no traditional include guard. 5 // Multiply-included message file, no traditional include guard.
6 #include <string> 6 #include <string>
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "chrome/common/automation_constants.h" 11 #include "chrome/common/automation_constants.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 std::vector<Item> items; 185 std::vector<Item> items;
186 }; 186 };
187 187
188 namespace IPC { 188 namespace IPC {
189 189
190 // Traits for ContextMenuModel structure to pack/unpack. 190 // Traits for ContextMenuModel structure to pack/unpack.
191 template <> 191 template <>
192 struct ParamTraits<ContextMenuModel> { 192 struct ParamTraits<ContextMenuModel> {
193 typedef ContextMenuModel param_type; 193 typedef ContextMenuModel param_type;
194 static void Write(Message* m, const param_type& p); 194 static void Write(Message* m, const param_type& p);
195 static bool Read(const Message* m, void** iter, param_type* p); 195 static bool Read(const Message* m, PickleIterator* iter, param_type* p);
196 static void Log(const param_type& p, std::string* l); 196 static void Log(const param_type& p, std::string* l);
197 }; 197 };
198 198
199 } // namespace IPC 199 } // namespace IPC
200 200
201 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H_ 201 #endif // CHROME_COMMON_AUTOMATION_MESSAGES_H_
202 202
203 // Keep this internal message file unchanged to preserve line numbering 203 // Keep this internal message file unchanged to preserve line numbering
204 // (and hence the dubious __LINE__-based message numberings) across versions. 204 // (and hence the dubious __LINE__-based message numberings) across versions.
205 #include "chrome/common/automation_messages_internal.h" 205 #include "chrome/common/automation_messages_internal.h"
OLDNEW
« no previous file with comments | « chrome/browser/visitedlink/visitedlink_unittest.cc ('k') | chrome/common/automation_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698