Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 // IPC messages for interacting with frames. | 5 // IPC messages for interacting with frames. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
| 9 #include "content/common/content_param_traits.h" | 9 #include "content/common/content_param_traits.h" |
| 10 #include "content/common/frame_message_enums.h" | 10 #include "content/common/frame_message_enums.h" |
| 11 #include "content/common/frame_param.h" | 11 #include "content/common/frame_param.h" |
| 12 #include "content/common/navigation_gesture.h" | 12 #include "content/common/navigation_gesture.h" |
| 13 #include "content/public/common/color_suggestion.h" | 13 #include "content/public/common/color_suggestion.h" |
| 14 #include "content/public/common/common_param_traits.h" | 14 #include "content/public/common/common_param_traits.h" |
| 15 #include "content/public/common/context_menu_params.h" | 15 #include "content/public/common/context_menu_params.h" |
| 16 #include "content/public/common/frame_navigate_params.h" | 16 #include "content/public/common/frame_navigate_params.h" |
| 17 #include "content/public/common/javascript_message_type.h" | 17 #include "content/public/common/javascript_message_type.h" |
| 18 #include "content/public/common/page_state.h" | 18 #include "content/public/common/page_state.h" |
| 19 #include "ipc/ipc_message_macros.h" | 19 #include "ipc/ipc_message_macros.h" |
| 20 #include "url/gurl.h" | 20 #include "url/gurl.h" |
| 21 | 21 |
| 22 #undef IPC_MESSAGE_EXPORT | 22 #undef IPC_MESSAGE_EXPORT |
| 23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 23 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 24 | 24 |
| 25 #define IPC_MESSAGE_START FrameMsgStart | 25 #define IPC_MESSAGE_START FrameMsgStart |
| 26 | 26 |
| 27 IPC_ENUM_TRAITS_MIN_MAX_VALUE(AccessibilityMode, | |
| 28 AccessibilityModeOff, | |
| 29 AccessibilityModeComplete) | |
|
nasko
2014/05/12 17:28:01
Nice! Thanks for making the IPC more secure!
dmazzoni
2014/05/13 06:36:52
:)
| |
| 27 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, | 30 IPC_ENUM_TRAITS_MIN_MAX_VALUE(content::JavaScriptMessageType, |
| 28 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, | 31 content::JAVASCRIPT_MESSAGE_TYPE_ALERT, |
| 29 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) | 32 content::JAVASCRIPT_MESSAGE_TYPE_PROMPT) |
| 30 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, | 33 IPC_ENUM_TRAITS_MAX_VALUE(FrameMsg_Navigate_Type::Value, |
| 31 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) | 34 FrameMsg_Navigate_Type::NAVIGATE_TYPE_LAST) |
| 32 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, | 35 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContextMenuData::MediaType, |
| 33 blink::WebContextMenuData::MediaTypeLast) | 36 blink::WebContextMenuData::MediaTypeLast) |
| 34 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) | 37 IPC_ENUM_TRAITS_MAX_VALUE(ui::MenuSourceType, ui::MENU_SOURCE_TYPE_LAST) |
| 35 | 38 |
| 36 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) | 39 IPC_STRUCT_TRAITS_BEGIN(content::ColorSuggestion) |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 346 // doing so. | 349 // doing so. |
| 347 IPC_MESSAGE_ROUTED1(FrameMsg_Reload, | 350 IPC_MESSAGE_ROUTED1(FrameMsg_Reload, |
| 348 bool /* ignore_cache */) | 351 bool /* ignore_cache */) |
| 349 | 352 |
| 350 // Notifies the color chooser client that the user selected a color. | 353 // Notifies the color chooser client that the user selected a color. |
| 351 IPC_MESSAGE_ROUTED2(FrameMsg_DidChooseColorResponse, unsigned, SkColor) | 354 IPC_MESSAGE_ROUTED2(FrameMsg_DidChooseColorResponse, unsigned, SkColor) |
| 352 | 355 |
| 353 // Notifies the color chooser client that the color chooser has ended. | 356 // Notifies the color chooser client that the color chooser has ended. |
| 354 IPC_MESSAGE_ROUTED1(FrameMsg_DidEndColorChooser, unsigned) | 357 IPC_MESSAGE_ROUTED1(FrameMsg_DidEndColorChooser, unsigned) |
| 355 | 358 |
| 359 // Change the accessibility mode in the renderer process. | |
| 360 IPC_MESSAGE_ROUTED1(FrameMsg_SetAccessibilityMode, | |
| 361 AccessibilityMode) | |
| 362 | |
| 356 // ----------------------------------------------------------------------------- | 363 // ----------------------------------------------------------------------------- |
| 357 // Messages sent from the renderer to the browser. | 364 // Messages sent from the renderer to the browser. |
| 358 | 365 |
| 359 // Blink and JavaScript error messages to log to the console | 366 // Blink and JavaScript error messages to log to the console |
| 360 // or debugger UI. | 367 // or debugger UI. |
| 361 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, | 368 IPC_MESSAGE_ROUTED4(FrameHostMsg_AddMessageToConsole, |
| 362 int32, /* log level */ | 369 int32, /* log level */ |
| 363 base::string16, /* msg */ | 370 base::string16, /* msg */ |
| 364 int32, /* line number */ | 371 int32, /* line number */ |
| 365 base::string16 /* source id */ ) | 372 base::string16 /* source id */ ) |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 582 SkColor /* color */) | 589 SkColor /* color */) |
| 583 | 590 |
| 584 // Notifies the browser that media has started/stopped playing. | 591 // Notifies the browser that media has started/stopped playing. |
| 585 IPC_MESSAGE_ROUTED3(FrameHostMsg_MediaPlayingNotification, | 592 IPC_MESSAGE_ROUTED3(FrameHostMsg_MediaPlayingNotification, |
| 586 int64 /* player_cookie, distinguishes instances */, | 593 int64 /* player_cookie, distinguishes instances */, |
| 587 bool /* has_video */, | 594 bool /* has_video */, |
| 588 bool /* has_audio */) | 595 bool /* has_audio */) |
| 589 | 596 |
| 590 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification, | 597 IPC_MESSAGE_ROUTED1(FrameHostMsg_MediaPausedNotification, |
| 591 int64 /* player_cookie, distinguishes instances */) | 598 int64 /* player_cookie, distinguishes instances */) |
| OLD | NEW |