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

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

Issue 6717001: Move audio messages to their own file. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/common/render_messages_params.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Get basic type definitions. 5 // Get basic type definitions.
6 #define IPC_MESSAGE_IMPL 6 #define IPC_MESSAGE_IMPL
7 #include "chrome/common/render_messages.h" 7 #include "chrome/common/render_messages.h"
8 #include "chrome/common/common_param_traits.h" 8 #include "chrome/common/common_param_traits.h"
9 9
10 // Generate constructors. 10 // Generate constructors.
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 LogParam(p.attributes, l); 707 LogParam(p.attributes, l);
708 l->append(", "); 708 l->append(", ");
709 LogParam(p.children, l); 709 LogParam(p.children, l);
710 l->append(", "); 710 l->append(", ");
711 LogParam(p.html_attributes, l); 711 LogParam(p.html_attributes, l);
712 l->append(", "); 712 l->append(", ");
713 LogParam(p.indirect_child_ids, l); 713 LogParam(p.indirect_child_ids, l);
714 l->append(")"); 714 l->append(")");
715 } 715 }
716 716
717 void ParamTraits<AudioBuffersState>::Write(Message* m, const param_type& p) {
718 WriteParam(m, p.pending_bytes);
719 WriteParam(m, p.hardware_delay_bytes);
720 WriteParam(m, p.timestamp);
721 }
722
723 bool ParamTraits<AudioBuffersState>::Read(const Message* m,
724 void** iter,
725 param_type* p) {
726 return
727 ReadParam(m, iter, &p->pending_bytes) &&
728 ReadParam(m, iter, &p->hardware_delay_bytes) &&
729 ReadParam(m, iter, &p->timestamp);
730 }
731
732 void ParamTraits<AudioBuffersState>::Log(const param_type& p, std::string* l) {
733 l->append("(");
734 LogParam(p.pending_bytes, l);
735 l->append(", ");
736 LogParam(p.hardware_delay_bytes, l);
737 l->append(", ");
738 LogParam(p.timestamp, l);
739 l->append(")");
740 }
741
742 } // namespace IPC 717 } // namespace IPC
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/common/render_messages_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698