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

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

Issue 15836003: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/common/cancelable_task_tracker_unittest.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 (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 #include "ui/base/models/menu_model.h" 5 #include "ui/base/models/menu_model.h"
6 6
7 // Get basic type definitions. 7 // Get basic type definitions.
8 #define IPC_MESSAGE_IMPL 8 #define IPC_MESSAGE_IMPL
9 #include "chrome/common/automation_messages.h" 9 #include "chrome/common/automation_messages.h"
10 10
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 return true; 187 return true;
188 } 188 }
189 static void Log(const param_type& p, std::string* l) { 189 static void Log(const param_type& p, std::string* l) {
190 l->append("<net::UploadElement>"); 190 l->append("<net::UploadElement>");
191 } 191 }
192 }; 192 };
193 193
194 void ParamTraits<scoped_refptr<net::UploadData> >::Write(Message* m, 194 void ParamTraits<scoped_refptr<net::UploadData> >::Write(Message* m,
195 const param_type& p) { 195 const param_type& p) {
196 WriteParam(m, p.get() != NULL); 196 WriteParam(m, p.get() != NULL);
197 if (p) { 197 if (p.get()) {
198 WriteParam(m, p->elements()); 198 WriteParam(m, p->elements());
199 WriteParam(m, p->identifier()); 199 WriteParam(m, p->identifier());
200 WriteParam(m, p->is_chunked()); 200 WriteParam(m, p->is_chunked());
201 WriteParam(m, p->last_chunk_appended()); 201 WriteParam(m, p->last_chunk_appended());
202 } 202 }
203 } 203 }
204 204
205 bool ParamTraits<scoped_refptr<net::UploadData> >::Read(const Message* m, 205 bool ParamTraits<scoped_refptr<net::UploadData> >::Read(const Message* m,
206 PickleIterator* iter, 206 PickleIterator* iter,
207 param_type* r) { 207 param_type* r) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 LogParam(status, l); 278 LogParam(status, l);
279 279
280 if (p.status() == net::URLRequestStatus::FAILED) { 280 if (p.status() == net::URLRequestStatus::FAILED) {
281 l->append(", "); 281 l->append(", ");
282 LogParam(p.error(), l); 282 LogParam(p.error(), l);
283 l->append(")"); 283 l->append(")");
284 } 284 }
285 } 285 }
286 286
287 } // namespace IPC 287 } // namespace IPC
OLDNEW
« no previous file with comments | « no previous file | chrome/common/cancelable_task_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698