| 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 <stdint.h> | 6 #include <stdint.h> |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 kUnauthorized, | 58 kUnauthorized, |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {} | 61 ChromeViewHostMsg_GetPluginInfo_Status() : value(kAllowed) {} |
| 62 | 62 |
| 63 Value value; | 63 Value value; |
| 64 }; | 64 }; |
| 65 | 65 |
| 66 namespace IPC { | 66 namespace IPC { |
| 67 | 67 |
| 68 #if defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID) | |
| 69 | |
| 70 // TODO(port): this shouldn't exist. However, the plugin stuff is really using | |
| 71 // HWNDS (NativeView), and making Windows calls based on them. I've not figured | |
| 72 // out the deal with plugins yet. | |
| 73 // TODO(android): a gfx::NativeView is the same as a gfx::NativeWindow. | |
| 74 template <> | |
| 75 struct ParamTraits<gfx::NativeView> { | |
| 76 typedef gfx::NativeView param_type; | |
| 77 static void Write(Message* m, const param_type& p) { | |
| 78 NOTIMPLEMENTED(); | |
| 79 } | |
| 80 | |
| 81 static bool Read(const Message* m, PickleIterator* iter, param_type* p) { | |
| 82 NOTIMPLEMENTED(); | |
| 83 *p = NULL; | |
| 84 return true; | |
| 85 } | |
| 86 | |
| 87 static void Log(const param_type& p, std::string* l) { | |
| 88 l->append(base::StringPrintf("<gfx::NativeView>")); | |
| 89 } | |
| 90 }; | |
| 91 | |
| 92 #endif // defined(OS_POSIX) && !defined(USE_AURA) && !defined(OS_ANDROID) | |
| 93 | |
| 94 template <> | 68 template <> |
| 95 struct ParamTraits<ContentSettingsPattern> { | 69 struct ParamTraits<ContentSettingsPattern> { |
| 96 typedef ContentSettingsPattern param_type; | 70 typedef ContentSettingsPattern param_type; |
| 97 static void Write(Message* m, const param_type& p); | 71 static void Write(Message* m, const param_type& p); |
| 98 static bool Read(const Message* m, PickleIterator* iter, param_type* r); | 72 static bool Read(const Message* m, PickleIterator* iter, param_type* r); |
| 99 static void Log(const param_type& p, std::string* l); | 73 static void Log(const param_type& p, std::string* l); |
| 100 }; | 74 }; |
| 101 | 75 |
| 102 } // namespace IPC | 76 } // namespace IPC |
| 103 | 77 |
| (...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 // WebKit. | 706 // WebKit. |
| 733 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded, | 707 IPC_MESSAGE_ROUTED4(ChromeViewHostMsg_DetailedConsoleMessageAdded, |
| 734 base::string16 /* message */, | 708 base::string16 /* message */, |
| 735 base::string16 /* source */, | 709 base::string16 /* source */, |
| 736 extensions::StackTrace /* stack trace */, | 710 extensions::StackTrace /* stack trace */, |
| 737 int32 /* severity level */) | 711 int32 /* severity level */) |
| 738 | 712 |
| 739 // Sent by the renderer to check if crash reporting is enabled. | 713 // Sent by the renderer to check if crash reporting is enabled. |
| 740 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, | 714 IPC_SYNC_MESSAGE_CONTROL0_1(ChromeViewHostMsg_IsCrashReportingEnabled, |
| 741 bool /* enabled */) | 715 bool /* enabled */) |
| OLD | NEW |