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

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

Issue 6388004: Move non-file-system Pepper IPC messages to chrome/common/pepper_messages.*. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/renderer
Patch Set: Fix size_t-size-correctness. Created 9 years, 11 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 | « 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) 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 #include "base/values.h" 5 #include "base/values.h"
6 #include "chrome/common/edit_command.h" 6 #include "chrome/common/edit_command.h"
7 #include "chrome/common/extensions/extension_extent.h" 7 #include "chrome/common/extensions/extension_extent.h"
8 #include "chrome/common/extensions/url_pattern.h" 8 #include "chrome/common/extensions/url_pattern.h"
9 #include "chrome/common/gpu_param_traits.h" 9 #include "chrome/common/gpu_param_traits.h"
10 #include "chrome/common/render_messages_params.h" 10 #include "chrome/common/render_messages_params.h"
11 #include "chrome/common/resource_response.h" 11 #include "chrome/common/resource_response.h"
12 #include "chrome/common/thumbnail_score.h" 12 #include "chrome/common/thumbnail_score.h"
13 #include "chrome/common/web_apps.h" 13 #include "chrome/common/web_apps.h"
14 #include "gfx/rect.h" 14 #include "gfx/rect.h"
15 #include "ipc/ipc_channel_handle.h" 15 #include "ipc/ipc_channel_handle.h"
16 #include "media/audio/audio_buffers_state.h" 16 #include "media/audio/audio_buffers_state.h"
17 #include "net/base/upload_data.h" 17 #include "net/base/upload_data.h"
18 #include "net/http/http_response_headers.h" 18 #include "net/http/http_response_headers.h"
19 #include "ppapi/c/private/ppb_flash.h"
20 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h"
21 #include "third_party/skia/include/core/SkBitmap.h" 20 #include "third_party/skia/include/core/SkBitmap.h"
22 #include "webkit/appcache/appcache_interfaces.h" 21 #include "webkit/appcache/appcache_interfaces.h"
23 #include "webkit/blob/blob_data.h" 22 #include "webkit/blob/blob_data.h"
24 #include "webkit/glue/form_field.h" 23 #include "webkit/glue/form_field.h"
25 #include "webkit/glue/password_form.h" 24 #include "webkit/glue/password_form.h"
26 #include "webkit/glue/resource_loader_bridge.h" 25 #include "webkit/glue/resource_loader_bridge.h"
27 #include "webkit/glue/webaccessibility.h" 26 #include "webkit/glue/webaccessibility.h"
28 #include "webkit/glue/webcookie.h" 27 #include "webkit/glue/webcookie.h"
29 #include "webkit/glue/webcursor.h" 28 #include "webkit/glue/webcursor.h"
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after
1214 void ParamTraits<AudioBuffersState>::Log(const param_type& p, std::string* l) { 1213 void ParamTraits<AudioBuffersState>::Log(const param_type& p, std::string* l) {
1215 l->append("("); 1214 l->append("(");
1216 LogParam(p.pending_bytes, l); 1215 LogParam(p.pending_bytes, l);
1217 l->append(", "); 1216 l->append(", ");
1218 LogParam(p.hardware_delay_bytes, l); 1217 LogParam(p.hardware_delay_bytes, l);
1219 l->append(", "); 1218 l->append(", ");
1220 LogParam(p.timestamp, l); 1219 LogParam(p.timestamp, l);
1221 l->append(")"); 1220 l->append(")");
1222 } 1221 }
1223 1222
1224 void ParamTraits<PP_Flash_NetAddress>::Write(Message* m, const param_type& p) {
1225 WriteParam(m, p.size);
1226 m->WriteBytes(p.data, p.size);
1227 }
1228
1229 bool ParamTraits<PP_Flash_NetAddress>::Read(const Message* m,
1230 void** iter,
1231 param_type* p) {
1232 uint16 size;
1233 if (!ReadParam(m, iter, &size))
1234 return false;
1235 if (size > sizeof(p->data))
1236 return false;
1237 p->size = size;
1238
1239 const char* data;
1240 if (!m->ReadBytes(iter, &data, size))
1241 return false;
1242 memcpy(p->data, data, size);
1243 return true;
1244 }
1245
1246 void ParamTraits<PP_Flash_NetAddress>::Log(const param_type& p,
1247 std::string* l) {
1248 l->append("<PP_Flash_NetAddress (");
1249 LogParam(p.size, l);
1250 l->append(" bytes)>");
1251 }
1252
1253 } // namespace IPC 1223 } // 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