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

Side by Side Diff: chrome/common/render_messages_internal.h

Issue 6308009: If user had consented for metrics reporting, send speech input request origin to the server. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing files 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
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 <map> 5 #include <map>
6 #include <set> 6 #include <set>
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 11
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/file_util_proxy.h" 13 #include "base/file_util_proxy.h"
14 #include "base/nullable_string16.h" 14 #include "base/nullable_string16.h"
15 #include "base/platform_file.h" 15 #include "base/platform_file.h"
16 #include "base/sync_socket.h" 16 #include "base/sync_socket.h"
17 #include "chrome/common/content_settings.h" 17 #include "chrome/common/content_settings.h"
18 #include "chrome/common/geoposition.h" 18 #include "chrome/common/geoposition.h"
19 #include "chrome/common/nacl_types.h" 19 #include "chrome/common/nacl_types.h"
20 #include "chrome/common/notification_type.h" 20 #include "chrome/common/notification_type.h"
21 #include "chrome/common/page_zoom.h" 21 #include "chrome/common/page_zoom.h"
22 #include "chrome/common/speech_input_result.h"
23 #include "chrome/common/translate_errors.h" 22 #include "chrome/common/translate_errors.h"
24 #include "chrome/common/window_container_type.h" 23 #include "chrome/common/window_container_type.h"
25 #include "ipc/ipc_message_macros.h" 24 #include "ipc/ipc_message_macros.h"
26 #include "media/audio/audio_buffers_state.h" 25 #include "media/audio/audio_buffers_state.h"
27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h" 26 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFindOptions.h"
28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h" 27 #include "third_party/WebKit/Source/WebKit/chromium/public/WebMediaPlayerAction. h"
29 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h" 28 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScreenInfo.h"
30 #include "webkit/glue/context_menu.h" 29 #include "webkit/glue/context_menu.h"
31 #include "webkit/glue/form_data.h" 30 #include "webkit/glue/form_data.h"
32 #include "webkit/glue/password_form_dom_manager.h" 31 #include "webkit/glue/password_form_dom_manager.h"
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 1010
1012 // Relay a request from assistive technology to perform the default action 1011 // Relay a request from assistive technology to perform the default action
1013 // on a given node. 1012 // on a given node.
1014 IPC_MESSAGE_ROUTED1(ViewMsg_AccessibilityDoDefaultAction, 1013 IPC_MESSAGE_ROUTED1(ViewMsg_AccessibilityDoDefaultAction,
1015 int /* object id */) 1014 int /* object id */)
1016 1015
1017 // Tells the render view that a ViewHostMsg_AccessibilityNotifications 1016 // Tells the render view that a ViewHostMsg_AccessibilityNotifications
1018 // message was processed and it can send addition notifications. 1017 // message was processed and it can send addition notifications.
1019 IPC_MESSAGE_ROUTED0(ViewMsg_AccessibilityNotifications_ACK) 1018 IPC_MESSAGE_ROUTED0(ViewMsg_AccessibilityNotifications_ACK)
1020 1019
1021 // Relay a speech recognition result, either partial or final.
1022 IPC_MESSAGE_ROUTED2(ViewMsg_SpeechInput_SetRecognitionResult,
1023 int /* request id */,
1024 speech_input::SpeechInputResultArray /* result */)
1025
1026 // Indicate that speech recognizer has stopped recording and started
1027 // recognition.
1028 IPC_MESSAGE_ROUTED1(ViewMsg_SpeechInput_RecordingComplete,
1029 int /* request id */)
1030
1031 // Indicate that speech recognizer has completed recognition. This will be
1032 // the last message sent in response to a
1033 // ViewHostMsg_SpeechInput_StartRecognition.
1034 IPC_MESSAGE_ROUTED1(ViewMsg_SpeechInput_RecognitionComplete,
1035 int /* request id */)
1036
1037 // Notification that the device's orientation has changed. 1020 // Notification that the device's orientation has changed.
1038 IPC_MESSAGE_ROUTED1(ViewMsg_DeviceOrientationUpdated, 1021 IPC_MESSAGE_ROUTED1(ViewMsg_DeviceOrientationUpdated,
1039 ViewMsg_DeviceOrientationUpdated_Params) 1022 ViewMsg_DeviceOrientationUpdated_Params)
1040 1023
1041 // WebFrameClient::openFileSystem response messages. 1024 // WebFrameClient::openFileSystem response messages.
1042 IPC_MESSAGE_CONTROL4(ViewMsg_OpenFileSystemRequest_Complete, 1025 IPC_MESSAGE_CONTROL4(ViewMsg_OpenFileSystemRequest_Complete,
1043 int /* request_id */, 1026 int /* request_id */,
1044 bool /* accepted */, 1027 bool /* accepted */,
1045 std::string /* name */, 1028 std::string /* name */,
1046 FilePath /* root_path */) 1029 FilePath /* root_path */)
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after
2454 2437
2455 // Updates the minimum/maximum allowed zoom percent for this tab from the 2438 // Updates the minimum/maximum allowed zoom percent for this tab from the
2456 // default values. If |remember| is true, then the zoom setting is applied to 2439 // default values. If |remember| is true, then the zoom setting is applied to
2457 // other pages in the site and is saved, otherwise it only applies to this 2440 // other pages in the site and is saved, otherwise it only applies to this
2458 // tab. 2441 // tab.
2459 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, 2442 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits,
2460 int /* minimum_percent */, 2443 int /* minimum_percent */,
2461 int /* maximum_percent */, 2444 int /* maximum_percent */,
2462 bool /* remember */) 2445 bool /* remember */)
2463 2446
2464 // Requests the speech input service to start speech recognition on behalf of
2465 // the given |render_view_id|.
2466 IPC_MESSAGE_CONTROL5(ViewHostMsg_SpeechInput_StartRecognition,
2467 int /* render_view_id */,
2468 int /* request_id */,
2469 gfx::Rect /* element_rect */,
2470 std::string /* language */,
2471 std::string /* grammar */)
2472
2473 // Requests the speech input service to cancel speech recognition on behalf of
2474 // the given |render_view_id|. If speech recognition is not happening nor or
2475 // is happening on behalf of some other render view, this call does nothing.
2476 IPC_MESSAGE_CONTROL2(ViewHostMsg_SpeechInput_CancelRecognition,
2477 int /* render_view_id */,
2478 int /* request id */)
2479
2480 // Requests the speech input service to stop audio recording on behalf of
2481 // the given |render_view_id|. Any audio recorded so far will be fed to the
2482 // speech recognizer. If speech recognition is not happening nor or is
2483 // happening on behalf of some other render view, this call does nothing.
2484 IPC_MESSAGE_CONTROL2(ViewHostMsg_SpeechInput_StopRecording,
2485 int /* render_view_id */,
2486 int /* request id */)
2487
2488 //--------------------------------------------------------------------------- 2447 //---------------------------------------------------------------------------
2489 // Device orientation services messages: 2448 // Device orientation services messages:
2490 2449
2491 // A RenderView requests to start receiving device orientation updates. 2450 // A RenderView requests to start receiving device orientation updates.
2492 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating, 2451 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating,
2493 int /* render_view_id */) 2452 int /* render_view_id */)
2494 2453
2495 // A RenderView requests to stop receiving device orientation updates. 2454 // A RenderView requests to stop receiving device orientation updates.
2496 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating, 2455 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating,
2497 int /* render_view_id */) 2456 int /* render_view_id */)
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
2634 int /* request_id */, 2593 int /* request_id */,
2635 PP_Flash_NetAddress /* addr */) 2594 PP_Flash_NetAddress /* addr */)
2636 2595
2637 // JavaScript related messages ----------------------------------------------- 2596 // JavaScript related messages -----------------------------------------------
2638 2597
2639 // Notify the JavaScript engine in the render to change its parameters 2598 // Notify the JavaScript engine in the render to change its parameters
2640 // while performing stress testing. 2599 // while performing stress testing.
2641 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, 2600 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl,
2642 int /* cmd */, 2601 int /* cmd */,
2643 int /* param */) 2602 int /* param */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698