OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_COMMON_RENDER_MESSAGES_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
6 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 534 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
545 | 545 |
546 // Traits for AudioBuffersState structure. | 546 // Traits for AudioBuffersState structure. |
547 template <> | 547 template <> |
548 struct ParamTraits<AudioBuffersState> { | 548 struct ParamTraits<AudioBuffersState> { |
549 typedef AudioBuffersState param_type; | 549 typedef AudioBuffersState param_type; |
550 static void Write(Message* m, const param_type& p); | 550 static void Write(Message* m, const param_type& p); |
551 static bool Read(const Message* m, void** iter, param_type* p); | 551 static bool Read(const Message* m, void** iter, param_type* p); |
552 static void Log(const param_type& p, std::string* l); | 552 static void Log(const param_type& p, std::string* l); |
553 }; | 553 }; |
554 | 554 |
555 template <> | |
556 struct ParamTraits<PP_Flash_NetAddress> { | |
557 typedef PP_Flash_NetAddress param_type; | |
558 static void Write(Message* m, const param_type& p); | |
559 static bool Read(const Message* m, void** iter, param_type* p); | |
560 static void Log(const param_type& p, std::string* l); | |
561 }; | |
562 | |
563 } // namespace IPC | 555 } // namespace IPC |
564 | 556 |
565 #include "chrome/common/render_messages_internal.h" | 557 #include "chrome/common/render_messages_internal.h" |
566 | 558 |
567 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 559 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |