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

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

Issue 302063003: Remove old "TODO(port)" IPC goop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | 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) 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
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
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 */)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698