OLD | NEW |
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 // Multiply-included file, no traditional include guard. | 5 // Multiply-included file, no traditional include guard. |
6 #include <map> | 6 #include <map> |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 // HWNDS (NativeView), and making Windows calls based on them. I've not figured | 78 // HWNDS (NativeView), and making Windows calls based on them. I've not figured |
79 // out the deal with plugins yet. | 79 // out the deal with plugins yet. |
80 // TODO(android): a gfx::NativeView is the same as a gfx::NativeWindow. | 80 // TODO(android): a gfx::NativeView is the same as a gfx::NativeWindow. |
81 template <> | 81 template <> |
82 struct ParamTraits<gfx::NativeView> { | 82 struct ParamTraits<gfx::NativeView> { |
83 typedef gfx::NativeView param_type; | 83 typedef gfx::NativeView param_type; |
84 static void Write(Message* m, const param_type& p) { | 84 static void Write(Message* m, const param_type& p) { |
85 NOTIMPLEMENTED(); | 85 NOTIMPLEMENTED(); |
86 } | 86 } |
87 | 87 |
88 static bool Read(const Message* m, void** iter, param_type* p) { | 88 static bool Read(const Message* m, PickleIterator* iter, param_type* p) { |
89 NOTIMPLEMENTED(); | 89 NOTIMPLEMENTED(); |
90 *p = NULL; | 90 *p = NULL; |
91 return true; | 91 return true; |
92 } | 92 } |
93 | 93 |
94 static void Log(const param_type& p, std::string* l) { | 94 static void Log(const param_type& p, std::string* l) { |
95 l->append(base::StringPrintf("<gfx::NativeView>")); | 95 l->append(base::StringPrintf("<gfx::NativeView>")); |
96 } | 96 } |
97 }; | 97 }; |
98 | 98 |
99 #endif // defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID) | 99 #endif // defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID) |
100 | 100 |
101 template <> | 101 template <> |
102 struct ParamTraits<ContentSettingsPattern> { | 102 struct ParamTraits<ContentSettingsPattern> { |
103 typedef ContentSettingsPattern param_type; | 103 typedef ContentSettingsPattern param_type; |
104 static void Write(Message* m, const param_type& p); | 104 static void Write(Message* m, const param_type& p); |
105 static bool Read(const Message* m, void** iter, param_type* r); | 105 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
106 static void Log(const param_type& p, std::string* l); | 106 static void Log(const param_type& p, std::string* l); |
107 }; | 107 }; |
108 | 108 |
109 } // namespace IPC | 109 } // namespace IPC |
110 | 110 |
111 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 111 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
112 | 112 |
113 #define IPC_MESSAGE_START ChromeMsgStart | 113 #define IPC_MESSAGE_START ChromeMsgStart |
114 | 114 |
115 IPC_ENUM_TRAITS(ChromeViewHostMsg_GetPluginInfo_Status::Value) | 115 IPC_ENUM_TRAITS(ChromeViewHostMsg_GetPluginInfo_Status::Value) |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
629 // previous SetCookie message to be processed. | 629 // previous SetCookie message to be processed. |
630 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, | 630 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, |
631 GURL /* url */, | 631 GURL /* url */, |
632 GURL /* first_party_for_cookies */, | 632 GURL /* first_party_for_cookies */, |
633 std::string /* cookies */) | 633 std::string /* cookies */) |
634 | 634 |
635 // Provide the browser process with current renderer framerate. | 635 // Provide the browser process with current renderer framerate. |
636 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, | 636 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, |
637 int /* routing id */, | 637 int /* routing id */, |
638 float /* frames per second */) | 638 float /* frames per second */) |
OLD | NEW |