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

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

Issue 5526008: Simplify the magic required to create IPC message headers a bit. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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 | « chrome/common/render_messages.h ('k') | chrome/common/render_messages_internal.h » ('j') | 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) 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 #include "chrome/common/render_messages.h"
6
7 #include "base/values.h" 5 #include "base/values.h"
8 #include "chrome/common/edit_command.h" 6 #include "chrome/common/edit_command.h"
9 #include "chrome/common/extensions/extension_extent.h" 7 #include "chrome/common/extensions/extension_extent.h"
10 #include "chrome/common/extensions/url_pattern.h" 8 #include "chrome/common/extensions/url_pattern.h"
11 #include "chrome/common/gpu_param_traits.h" 9 #include "chrome/common/gpu_param_traits.h"
12 #include "chrome/common/indexed_db_key.h" 10 #include "chrome/common/indexed_db_key.h"
13 #include "chrome/common/indexed_db_param_traits.h" 11 #include "chrome/common/indexed_db_param_traits.h"
14 #include "chrome/common/render_messages_params.h" 12 #include "chrome/common/render_messages_params.h"
15 #include "chrome/common/resource_response.h" 13 #include "chrome/common/resource_response.h"
16 #include "chrome/common/serialized_script_value.h" 14 #include "chrome/common/serialized_script_value.h"
17 #include "chrome/common/speech_input_result.h" 15 #include "chrome/common/speech_input_result.h"
18 #include "chrome/common/thumbnail_score.h" 16 #include "chrome/common/thumbnail_score.h"
19 #include "chrome/common/web_apps.h" 17 #include "chrome/common/web_apps.h"
20 #include "gfx/rect.h" 18 #include "gfx/rect.h"
21 #include "ipc/ipc_channel_handle.h" 19 #include "ipc/ipc_channel_handle.h"
22 #include "media/audio/audio_buffers_state.h" 20 #include "media/audio/audio_buffers_state.h"
23 #include "net/base/upload_data.h" 21 #include "net/base/upload_data.h"
24 #include "net/http/http_response_headers.h" 22 #include "net/http/http_response_headers.h"
25 #include "third_party/WebKit/WebKit/chromium/public/WebCompositionUnderline.h" 23 #include "third_party/WebKit/WebKit/chromium/public/WebCompositionUnderline.h"
26 #include "third_party/WebKit/WebKit/chromium/public/WebFindOptions.h"
27 #include "third_party/WebKit/WebKit/chromium/public/WebMediaPlayerAction.h"
28 #include "third_party/WebKit/WebKit/chromium/public/WebScreenInfo.h"
29 #include "third_party/skia/include/core/SkBitmap.h" 24 #include "third_party/skia/include/core/SkBitmap.h"
30 #include "webkit/appcache/appcache_interfaces.h" 25 #include "webkit/appcache/appcache_interfaces.h"
31 #include "webkit/blob/blob_data.h" 26 #include "webkit/blob/blob_data.h"
32 #include "webkit/glue/context_menu.h"
33 #include "webkit/glue/form_data.h"
34 #include "webkit/glue/form_field.h" 27 #include "webkit/glue/form_field.h"
35 #include "webkit/glue/password_form.h" 28 #include "webkit/glue/password_form.h"
36 #include "webkit/glue/password_form_dom_manager.h"
37 #include "webkit/glue/plugins/webplugin.h" 29 #include "webkit/glue/plugins/webplugin.h"
38 #include "webkit/glue/plugins/webplugininfo.h"
39 #include "webkit/glue/resource_loader_bridge.h" 30 #include "webkit/glue/resource_loader_bridge.h"
40 #include "webkit/glue/webaccessibility.h" 31 #include "webkit/glue/webaccessibility.h"
41 #include "webkit/glue/webcookie.h" 32 #include "webkit/glue/webcookie.h"
42 #include "webkit/glue/webcursor.h" 33 #include "webkit/glue/webcursor.h"
43 #include "webkit/glue/webdropdata.h"
44 #include "webkit/glue/webmenuitem.h" 34 #include "webkit/glue/webmenuitem.h"
45 35
46 #if defined(OS_MACOSX) 36 #if defined(OS_MACOSX)
47 #include "chrome/common/font_descriptor_mac.h" 37 #include "chrome/common/font_descriptor_mac.h"
48 #endif 38 #endif
49 39
50 #define MESSAGES_INTERNAL_IMPL_FILE \ 40 #define IPC_MESSAGE_IMPL
51 "chrome/common/render_messages_internal.h" 41 #include "chrome/common/render_messages.h"
52 #include "ipc/ipc_message_impl_macros.h"
53 42
54 namespace IPC { 43 namespace IPC {
55 44
56 45
57 template<> 46 template<>
58 struct ParamTraits<WebMenuItem::Type> { 47 struct ParamTraits<WebMenuItem::Type> {
59 typedef WebMenuItem::Type param_type; 48 typedef WebMenuItem::Type param_type;
60 static void Write(Message* m, const param_type& p) { 49 static void Write(Message* m, const param_type& p) {
61 m->WriteInt(p); 50 m->WriteInt(p);
62 } 51 }
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after
1258 void ParamTraits<speech_input::SpeechInputResultItem>::Log(const param_type& p, 1247 void ParamTraits<speech_input::SpeechInputResultItem>::Log(const param_type& p,
1259 std::string* l) { 1248 std::string* l) {
1260 l->append("("); 1249 l->append("(");
1261 LogParam(p.utterance, l); 1250 LogParam(p.utterance, l);
1262 l->append(":"); 1251 l->append(":");
1263 LogParam(p.confidence, l); 1252 LogParam(p.confidence, l);
1264 l->append(")"); 1253 l->append(")");
1265 } 1254 }
1266 1255
1267 } // namespace IPC 1256 } // namespace IPC
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698