| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #include "ipc/ipc_message_utils.h" | 48 #include "ipc/ipc_message_utils.h" |
| 49 #include "ipc/ipc_platform_file.h" // ifdefed typedef. | 49 #include "ipc/ipc_platform_file.h" // ifdefed typedef. |
| 50 #include "media/audio/audio_buffers_state.h" | 50 #include "media/audio/audio_buffers_state.h" |
| 51 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" | 51 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli
ne.h" |
| 52 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" | 52 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" |
| 53 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" | 53 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction.
h" |
| 54 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" | 54 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" |
| 55 #include "third_party/skia/include/core/SkBitmap.h" | 55 #include "third_party/skia/include/core/SkBitmap.h" |
| 56 #include "ui/gfx/rect.h" | 56 #include "ui/gfx/rect.h" |
| 57 #include "webkit/appcache/appcache_interfaces.h" // enum appcache::Status | 57 #include "webkit/appcache/appcache_interfaces.h" // enum appcache::Status |
| 58 #include "webkit/blob/blob_data.h" | |
| 59 #include "webkit/glue/context_menu.h" | 58 #include "webkit/glue/context_menu.h" |
| 60 #include "webkit/glue/webaccessibility.h" | 59 #include "webkit/glue/webaccessibility.h" |
| 61 #include "webkit/glue/webcookie.h" | 60 #include "webkit/glue/webcookie.h" |
| 62 #include "webkit/glue/webcursor.h" | 61 #include "webkit/glue/webcursor.h" |
| 63 #include "webkit/glue/webdropdata.h" | 62 #include "webkit/glue/webdropdata.h" |
| 64 #include "webkit/glue/webmenuitem.h" | 63 #include "webkit/glue/webmenuitem.h" |
| 65 #include "webkit/plugins/npapi/webplugin.h" | 64 #include "webkit/plugins/npapi/webplugin.h" |
| 66 #include "webkit/plugins/npapi/webplugininfo.h" | 65 #include "webkit/plugins/npapi/webplugininfo.h" |
| 67 | 66 |
| 68 #if defined(OS_POSIX) | 67 #if defined(OS_POSIX) |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 }; | 394 }; |
| 396 | 395 |
| 397 template <> | 396 template <> |
| 398 struct ParamTraits<webkit_glue::WebAccessibility> { | 397 struct ParamTraits<webkit_glue::WebAccessibility> { |
| 399 typedef webkit_glue::WebAccessibility param_type; | 398 typedef webkit_glue::WebAccessibility param_type; |
| 400 static void Write(Message* m, const param_type& p); | 399 static void Write(Message* m, const param_type& p); |
| 401 static bool Read(const Message* m, void** iter, param_type* p); | 400 static bool Read(const Message* m, void** iter, param_type* p); |
| 402 static void Log(const param_type& p, std::string* l); | 401 static void Log(const param_type& p, std::string* l); |
| 403 }; | 402 }; |
| 404 | 403 |
| 405 template <> | |
| 406 struct ParamTraits<scoped_refptr<webkit_blob::BlobData> > { | |
| 407 typedef scoped_refptr<webkit_blob::BlobData> param_type; | |
| 408 static void Write(Message* m, const param_type& p); | |
| 409 static bool Read(const Message* m, void** iter, param_type* r); | |
| 410 static void Log(const param_type& p, std::string* l); | |
| 411 }; | |
| 412 | |
| 413 // Traits for AudioBuffersState structure. | 404 // Traits for AudioBuffersState structure. |
| 414 template <> | 405 template <> |
| 415 struct ParamTraits<AudioBuffersState> { | 406 struct ParamTraits<AudioBuffersState> { |
| 416 typedef AudioBuffersState param_type; | 407 typedef AudioBuffersState param_type; |
| 417 static void Write(Message* m, const param_type& p); | 408 static void Write(Message* m, const param_type& p); |
| 418 static bool Read(const Message* m, void** iter, param_type* p); | 409 static bool Read(const Message* m, void** iter, param_type* p); |
| 419 static void Log(const param_type& p, std::string* l); | 410 static void Log(const param_type& p, std::string* l); |
| 420 }; | 411 }; |
| 421 | 412 |
| 422 } // namespace IPC | 413 } // namespace IPC |
| (...skipping 2114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2537 // Device orientation services messages: | 2528 // Device orientation services messages: |
| 2538 | 2529 |
| 2539 // A RenderView requests to start receiving device orientation updates. | 2530 // A RenderView requests to start receiving device orientation updates. |
| 2540 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating, | 2531 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating, |
| 2541 int /* render_view_id */) | 2532 int /* render_view_id */) |
| 2542 | 2533 |
| 2543 // A RenderView requests to stop receiving device orientation updates. | 2534 // A RenderView requests to stop receiving device orientation updates. |
| 2544 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating, | 2535 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating, |
| 2545 int /* render_view_id */) | 2536 int /* render_view_id */) |
| 2546 | 2537 |
| 2547 //--------------------------------------------------------------------------- | |
| 2548 // Blob messages: | |
| 2549 | |
| 2550 // Registers a blob URL referring to the specified blob data. | |
| 2551 IPC_MESSAGE_CONTROL2(ViewHostMsg_RegisterBlobUrl, | |
| 2552 GURL /* url */, | |
| 2553 scoped_refptr<webkit_blob::BlobData> /* blob_data */) | |
| 2554 | |
| 2555 // Registers a blob URL referring to the blob data identified by the specified | |
| 2556 // source URL. | |
| 2557 IPC_MESSAGE_CONTROL2(ViewHostMsg_RegisterBlobUrlFrom, | |
| 2558 GURL /* url */, | |
| 2559 GURL /* src_url */) | |
| 2560 | |
| 2561 // Unregister a blob URL. | |
| 2562 IPC_MESSAGE_CONTROL1(ViewHostMsg_UnregisterBlobUrl, GURL /* url */) | |
| 2563 | |
| 2564 // Suggest results ----------------------------------------------------------- | 2538 // Suggest results ----------------------------------------------------------- |
| 2565 | 2539 |
| 2566 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetSuggestions, | 2540 IPC_MESSAGE_ROUTED3(ViewHostMsg_SetSuggestions, |
| 2567 int32 /* page_id */, | 2541 int32 /* page_id */, |
| 2568 std::vector<std::string> /* suggestions */, | 2542 std::vector<std::string> /* suggestions */, |
| 2569 InstantCompleteBehavior) | 2543 InstantCompleteBehavior) |
| 2570 | 2544 |
| 2571 IPC_MESSAGE_ROUTED2(ViewHostMsg_InstantSupportDetermined, | 2545 IPC_MESSAGE_ROUTED2(ViewHostMsg_InstantSupportDetermined, |
| 2572 int32 /* page_id */, | 2546 int32 /* page_id */, |
| 2573 bool /* result */) | 2547 bool /* result */) |
| (...skipping 20 matching lines...) Expand all Loading... |
| 2594 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, | 2568 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, |
| 2595 int /* cmd */, | 2569 int /* cmd */, |
| 2596 int /* param */) | 2570 int /* param */) |
| 2597 | 2571 |
| 2598 // Register a new handler for URL requests with the given scheme. | 2572 // Register a new handler for URL requests with the given scheme. |
| 2599 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, | 2573 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, |
| 2600 std::string /* scheme */, | 2574 std::string /* scheme */, |
| 2601 GURL /* url */, | 2575 GURL /* url */, |
| 2602 string16 /* title */) | 2576 string16 /* title */) |
| 2603 | 2577 |
| OLD | NEW |