| OLD | NEW |
| 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 // 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // type taken from the enumeration v8::Testing::StressType. | 45 // type taken from the enumeration v8::Testing::StressType. |
| 46 // For the command kJavaScriptStressTestPrepareStressRun the parameter it the | 46 // For the command kJavaScriptStressTestPrepareStressRun the parameter it the |
| 47 // number of the stress run about to take place. | 47 // number of the stress run about to take place. |
| 48 enum ViewHostMsg_JavaScriptStressTestControl_Commands { | 48 enum ViewHostMsg_JavaScriptStressTestControl_Commands { |
| 49 kJavaScriptStressTestSetStressRunType = 0, | 49 kJavaScriptStressTestSetStressRunType = 0, |
| 50 kJavaScriptStressTestPrepareStressRun = 1, | 50 kJavaScriptStressTestPrepareStressRun = 1, |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 namespace IPC { | 53 namespace IPC { |
| 54 | 54 |
| 55 #if defined(OS_POSIX) | 55 #if defined(OS_POSIX) && !defined(USE_AURA) |
| 56 | 56 |
| 57 // TODO(port): this shouldn't exist. However, the plugin stuff is really using | 57 // TODO(port): this shouldn't exist. However, the plugin stuff is really using |
| 58 // HWNDS (NativeView), and making Windows calls based on them. I've not figured | 58 // HWNDS (NativeView), and making Windows calls based on them. I've not figured |
| 59 // out the deal with plugins yet. | 59 // out the deal with plugins yet. |
| 60 template <> | 60 template <> |
| 61 struct ParamTraits<gfx::NativeView> { | 61 struct ParamTraits<gfx::NativeView> { |
| 62 typedef gfx::NativeView param_type; | 62 typedef gfx::NativeView param_type; |
| 63 static void Write(Message* m, const param_type& p) { | 63 static void Write(Message* m, const param_type& p) { |
| 64 NOTIMPLEMENTED(); | 64 NOTIMPLEMENTED(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 static bool Read(const Message* m, void** iter, param_type* p) { | 67 static bool Read(const Message* m, void** iter, param_type* p) { |
| 68 NOTIMPLEMENTED(); | 68 NOTIMPLEMENTED(); |
| 69 *p = NULL; | 69 *p = NULL; |
| 70 return true; | 70 return true; |
| 71 } | 71 } |
| 72 | 72 |
| 73 static void Log(const param_type& p, std::string* l) { | 73 static void Log(const param_type& p, std::string* l) { |
| 74 l->append(base::StringPrintf("<gfx::NativeView>")); | 74 l->append(base::StringPrintf("<gfx::NativeView>")); |
| 75 } | 75 } |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 #endif // defined(OS_POSIX) | 78 #endif // defined(OS_POSIX) && !defined(USE_AURA) |
| 79 | 79 |
| 80 template <> | 80 template <> |
| 81 struct ParamTraits<ContentSettings> { | 81 struct ParamTraits<ContentSettings> { |
| 82 typedef ContentSettings param_type; | 82 typedef ContentSettings param_type; |
| 83 static void Write(Message* m, const param_type& p); | 83 static void Write(Message* m, const param_type& p); |
| 84 static bool Read(const Message* m, void** iter, param_type* r); | 84 static bool Read(const Message* m, void** iter, param_type* r); |
| 85 static void Log(const param_type& p, std::string* l); | 85 static void Log(const param_type& p, std::string* l); |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 } // namespace IPC | 88 } // namespace IPC |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 // previous SetCookie message to be processed. | 556 // previous SetCookie message to be processed. |
| 557 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, | 557 IPC_SYNC_MESSAGE_ROUTED2_1(ChromeViewHostMsg_GetCookies, |
| 558 GURL /* url */, | 558 GURL /* url */, |
| 559 GURL /* first_party_for_cookies */, | 559 GURL /* first_party_for_cookies */, |
| 560 std::string /* cookies */) | 560 std::string /* cookies */) |
| 561 | 561 |
| 562 // Provide the browser process with current renderer framerate. | 562 // Provide the browser process with current renderer framerate. |
| 563 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, | 563 IPC_MESSAGE_CONTROL2(ChromeViewHostMsg_FPS, |
| 564 int /* routing id */, | 564 int /* routing id */, |
| 565 float /* frames per second */) | 565 float /* frames per second */) |
| OLD | NEW |