| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
| 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/gfx/native_widget_types.h" | 13 #include "base/gfx/native_widget_types.h" |
| 14 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
| 15 #include "base/shared_memory.h" | 15 #include "base/shared_memory.h" |
| 16 #include "chrome/browser/renderer_host/resource_handler.h" | 16 #include "chrome/browser/renderer_host/resource_handler.h" |
| 17 #include "chrome/common/accessibility.h" | |
| 18 #include "chrome/common/filter_policy.h" | 17 #include "chrome/common/filter_policy.h" |
| 19 #include "chrome/common/ipc_message_utils.h" | 18 #include "chrome/common/ipc_message_utils.h" |
| 20 #include "chrome/common/modal_dialog_event.h" | 19 #include "chrome/common/modal_dialog_event.h" |
| 21 #include "chrome/common/page_transition_types.h" | 20 #include "chrome/common/page_transition_types.h" |
| 22 #include "chrome/common/transport_dib.h" | 21 #include "chrome/common/transport_dib.h" |
| 23 #include "googleurl/src/gurl.h" | 22 #include "googleurl/src/gurl.h" |
| 24 #include "media/audio/audio_output.h" | 23 #include "media/audio/audio_output.h" |
| 25 #include "net/base/upload_data.h" | 24 #include "net/base/upload_data.h" |
| 26 #include "net/http/http_response_headers.h" | 25 #include "net/http/http_response_headers.h" |
| 27 #include "net/url_request/url_request_status.h" | 26 #include "net/url_request/url_request_status.h" |
| 28 #include "third_party/WebKit/WebKit/chromium/public/WebCache.h" | 27 #include "third_party/WebKit/WebKit/chromium/public/WebCache.h" |
| 29 #include "webkit/glue/autofill_form.h" | 28 #include "webkit/glue/autofill_form.h" |
| 30 #include "webkit/glue/context_menu.h" | 29 #include "webkit/glue/context_menu.h" |
| 31 #include "webkit/glue/feed.h" | 30 #include "webkit/glue/feed.h" |
| 32 #include "webkit/glue/form_data.h" | 31 #include "webkit/glue/form_data.h" |
| 33 #include "webkit/glue/password_form.h" | 32 #include "webkit/glue/password_form.h" |
| 34 #include "webkit/glue/password_form_dom_manager.h" | 33 #include "webkit/glue/password_form_dom_manager.h" |
| 35 #include "webkit/glue/resource_loader_bridge.h" | 34 #include "webkit/glue/resource_loader_bridge.h" |
| 36 #include "webkit/glue/screen_info.h" | 35 #include "webkit/glue/screen_info.h" |
| 36 #include "webkit/glue/webaccessibility.h" |
| 37 #include "webkit/glue/webdropdata.h" | 37 #include "webkit/glue/webdropdata.h" |
| 38 #include "webkit/glue/webinputevent.h" | 38 #include "webkit/glue/webinputevent.h" |
| 39 #include "webkit/glue/webplugin.h" | 39 #include "webkit/glue/webplugin.h" |
| 40 #include "webkit/glue/webpreferences.h" | 40 #include "webkit/glue/webpreferences.h" |
| 41 #include "webkit/glue/webview_delegate.h" | 41 #include "webkit/glue/webview_delegate.h" |
| 42 | 42 |
| 43 #if defined(OS_POSIX) | 43 #if defined(OS_POSIX) |
| 44 #include "skia/include/SkBitmap.h" | 44 #include "skia/include/SkBitmap.h" |
| 45 #endif | 45 #endif |
| 46 | 46 |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 LogParam(iter->type, log); | 587 LogParam(iter->type, log); |
| 588 log->append(L", "); | 588 log->append(L", "); |
| 589 LogParam(iter->url, log); | 589 LogParam(iter->url, log); |
| 590 log->append(L"]"); | 590 log->append(L"]"); |
| 591 } | 591 } |
| 592 log->append(L"})"); | 592 log->append(L"})"); |
| 593 } | 593 } |
| 594 }; | 594 }; |
| 595 | 595 |
| 596 template <> | 596 template <> |
| 597 struct ParamTraits<AccessibilityInParams> { | 597 struct ParamTraits<webkit_glue::WebAccessibility::InParams> { |
| 598 typedef AccessibilityInParams param_type; | 598 typedef webkit_glue::WebAccessibility::InParams param_type; |
| 599 static void Write(Message* m, const param_type& p) { | 599 static void Write(Message* m, const param_type& p) { |
| 600 WriteParam(m, p.iaccessible_id); | 600 WriteParam(m, p.object_id); |
| 601 WriteParam(m, p.iaccessible_function_id); | 601 WriteParam(m, p.function_id); |
| 602 WriteParam(m, p.input_variant_lval); | 602 WriteParam(m, p.child_id); |
| 603 WriteParam(m, p.input_long1); | 603 WriteParam(m, p.input_long1); |
| 604 WriteParam(m, p.input_long2); | 604 WriteParam(m, p.input_long2); |
| 605 } | 605 } |
| 606 static bool Read(const Message* m, void** iter, param_type* p) { | 606 static bool Read(const Message* m, void** iter, param_type* p) { |
| 607 return | 607 return |
| 608 ReadParam(m, iter, &p->iaccessible_id) && | 608 ReadParam(m, iter, &p->object_id) && |
| 609 ReadParam(m, iter, &p->iaccessible_function_id) && | 609 ReadParam(m, iter, &p->function_id) && |
| 610 ReadParam(m, iter, &p->input_variant_lval) && | 610 ReadParam(m, iter, &p->child_id) && |
| 611 ReadParam(m, iter, &p->input_long1) && | 611 ReadParam(m, iter, &p->input_long1) && |
| 612 ReadParam(m, iter, &p->input_long2); | 612 ReadParam(m, iter, &p->input_long2); |
| 613 } | 613 } |
| 614 static void Log(const param_type& p, std::wstring* l) { | 614 static void Log(const param_type& p, std::wstring* l) { |
| 615 l->append(L"("); | 615 l->append(L"("); |
| 616 LogParam(p.iaccessible_id, l); | 616 LogParam(p.object_id, l); |
| 617 l->append(L", "); | 617 l->append(L", "); |
| 618 LogParam(p.iaccessible_function_id, l); | 618 LogParam(p.function_id, l); |
| 619 l->append(L", "); | 619 l->append(L", "); |
| 620 LogParam(p.input_variant_lval, l); | 620 LogParam(p.child_id, l); |
| 621 l->append(L", "); | 621 l->append(L", "); |
| 622 LogParam(p.input_long1, l); | 622 LogParam(p.input_long1, l); |
| 623 l->append(L", "); | 623 l->append(L", "); |
| 624 LogParam(p.input_long2, l); | 624 LogParam(p.input_long2, l); |
| 625 l->append(L")"); | 625 l->append(L")"); |
| 626 } | 626 } |
| 627 }; | 627 }; |
| 628 | 628 |
| 629 template <> | 629 template <> |
| 630 struct ParamTraits<AccessibilityOutParams> { | 630 struct ParamTraits<webkit_glue::WebAccessibility::OutParams> { |
| 631 typedef AccessibilityOutParams param_type; | 631 typedef webkit_glue::WebAccessibility::OutParams param_type; |
| 632 static void Write(Message* m, const param_type& p) { | 632 static void Write(Message* m, const param_type& p) { |
| 633 WriteParam(m, p.iaccessible_id); | 633 WriteParam(m, p.object_id); |
| 634 WriteParam(m, p.output_variant_lval); | |
| 635 WriteParam(m, p.output_long1); | 634 WriteParam(m, p.output_long1); |
| 636 WriteParam(m, p.output_long2); | 635 WriteParam(m, p.output_long2); |
| 637 WriteParam(m, p.output_long3); | 636 WriteParam(m, p.output_long3); |
| 638 WriteParam(m, p.output_long4); | 637 WriteParam(m, p.output_long4); |
| 639 WriteParam(m, p.output_string); | 638 WriteParam(m, p.output_string); |
| 640 WriteParam(m, p.return_code); | 639 WriteParam(m, p.return_code); |
| 641 } | 640 } |
| 642 static bool Read(const Message* m, void** iter, param_type* p) { | 641 static bool Read(const Message* m, void** iter, param_type* p) { |
| 643 return | 642 return |
| 644 ReadParam(m, iter, &p->iaccessible_id) && | 643 ReadParam(m, iter, &p->object_id) && |
| 645 ReadParam(m, iter, &p->output_variant_lval) && | |
| 646 ReadParam(m, iter, &p->output_long1) && | 644 ReadParam(m, iter, &p->output_long1) && |
| 647 ReadParam(m, iter, &p->output_long2) && | 645 ReadParam(m, iter, &p->output_long2) && |
| 648 ReadParam(m, iter, &p->output_long3) && | 646 ReadParam(m, iter, &p->output_long3) && |
| 649 ReadParam(m, iter, &p->output_long4) && | 647 ReadParam(m, iter, &p->output_long4) && |
| 650 ReadParam(m, iter, &p->output_string) && | 648 ReadParam(m, iter, &p->output_string) && |
| 651 ReadParam(m, iter, &p->return_code); | 649 ReadParam(m, iter, &p->return_code); |
| 652 } | 650 } |
| 653 static void Log(const param_type& p, std::wstring* l) { | 651 static void Log(const param_type& p, std::wstring* l) { |
| 654 l->append(L"("); | 652 l->append(L"("); |
| 655 LogParam(p.iaccessible_id, l); | 653 LogParam(p.object_id, l); |
| 656 l->append(L", "); | |
| 657 LogParam(p.output_variant_lval, l); | |
| 658 l->append(L", "); | 654 l->append(L", "); |
| 659 LogParam(p.output_long1, l); | 655 LogParam(p.output_long1, l); |
| 660 l->append(L", "); | 656 l->append(L", "); |
| 661 LogParam(p.output_long2, l); | 657 LogParam(p.output_long2, l); |
| 662 l->append(L", "); | 658 l->append(L", "); |
| 663 LogParam(p.output_long3, l); | 659 LogParam(p.output_long3, l); |
| 664 l->append(L", "); | 660 l->append(L", "); |
| 665 LogParam(p.output_long4, l); | 661 LogParam(p.output_long4, l); |
| 666 l->append(L", "); | 662 l->append(L", "); |
| 667 LogParam(p.output_string, l); | 663 LogParam(p.output_string, l); |
| (...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1886 } | 1882 } |
| 1887 }; | 1883 }; |
| 1888 | 1884 |
| 1889 } // namespace IPC | 1885 } // namespace IPC |
| 1890 | 1886 |
| 1891 | 1887 |
| 1892 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 1888 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
| 1893 #include "chrome/common/ipc_message_macros.h" | 1889 #include "chrome/common/ipc_message_macros.h" |
| 1894 | 1890 |
| 1895 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 1891 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
| OLD | NEW |