OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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" |
(...skipping 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2395 bool /* correct */) | 2395 bool /* correct */) |
2396 | 2396 |
2397 IPC_SYNC_MESSAGE_CONTROL1_1( | 2397 IPC_SYNC_MESSAGE_CONTROL1_1( |
2398 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, | 2398 ViewHostMsg_SpellChecker_PlatformFillSuggestionList, |
2399 string16 /* word */, | 2399 string16 /* word */, |
2400 std::vector<string16> /* suggestions */) | 2400 std::vector<string16> /* suggestions */) |
2401 | 2401 |
2402 //--------------------------------------------------------------------------- | 2402 //--------------------------------------------------------------------------- |
2403 // Geolocation services messages | 2403 // Geolocation services messages |
2404 | 2404 |
2405 // A GeolocationServiceBridgeImpl in the renderer process has been created. | |
2406 // This is used to lazily initialize the host dispatchers and related | |
2407 // Geolocation infrastructure in the browser process. | |
2408 IPC_MESSAGE_CONTROL1(ViewHostMsg_Geolocation_RegisterDispatcher, | |
2409 int /* render_view_id */) | |
2410 | |
2411 // A GeolocationServiceBridgeImpl has been destroyed. | |
2412 // This is used to let the Geolocation infrastructure do its cleanup. | |
2413 IPC_MESSAGE_CONTROL1(ViewHostMsg_Geolocation_UnregisterDispatcher, | |
2414 int /* render_view_id */) | |
2415 | |
2416 // The |render_view_id| and |bridge_id| representing |host| is requesting | 2405 // The |render_view_id| and |bridge_id| representing |host| is requesting |
2417 // permission to access geolocation position. | 2406 // permission to access geolocation position. |
2418 // This will be replied by ViewMsg_Geolocation_PermissionSet. | 2407 // This will be replied by ViewMsg_Geolocation_PermissionSet. |
2419 IPC_MESSAGE_CONTROL3(ViewHostMsg_Geolocation_RequestPermission, | 2408 IPC_MESSAGE_CONTROL3(ViewHostMsg_Geolocation_RequestPermission, |
2420 int /* render_view_id */, | 2409 int /* render_view_id */, |
2421 int /* bridge_id */, | 2410 int /* bridge_id */, |
2422 GURL /* GURL of the frame requesting geolocation */) | 2411 GURL /* GURL of the frame requesting geolocation */) |
2423 | 2412 |
2424 // The |render_view_id| and |bridge_id| representing |GURL| is cancelling its | 2413 // The |render_view_id| and |bridge_id| representing |GURL| is cancelling its |
2425 // previous permission request to access geolocation position. | 2414 // previous permission request to access geolocation position. |
2426 IPC_MESSAGE_CONTROL3(ViewHostMsg_Geolocation_CancelPermissionRequest, | 2415 IPC_MESSAGE_CONTROL3(ViewHostMsg_Geolocation_CancelPermissionRequest, |
2427 int /* render_view_id */, | 2416 int /* render_view_id */, |
2428 int /* bridge_id */, | 2417 int /* bridge_id */, |
2429 GURL /* GURL of the frame */) | 2418 GURL /* GURL of the frame */) |
2430 | 2419 |
2431 // The |render_view_id| and |bridge_id| requests Geolocation service to start | 2420 // The |render_view_id| requests Geolocation service to start updating. |
2432 // updating. | |
2433 // This is an asynchronous call, and the browser process may eventually reply | 2421 // This is an asynchronous call, and the browser process may eventually reply |
2434 // with the updated geoposition, or an error (access denied, location | 2422 // with the updated geoposition, or an error (access denied, location |
2435 // unavailable, etc.) | 2423 // unavailable, etc.) |
2436 IPC_MESSAGE_CONTROL4(ViewHostMsg_Geolocation_StartUpdating, | 2424 IPC_MESSAGE_CONTROL3(ViewHostMsg_Geolocation_StartUpdating, |
2437 int /* render_view_id */, | 2425 int /* render_view_id */, |
2438 int /* bridge_id */, | |
2439 GURL /* GURL of the frame requesting geolocation */, | 2426 GURL /* GURL of the frame requesting geolocation */, |
2440 bool /* enable_high_accuracy */) | 2427 bool /* enable_high_accuracy */) |
2441 | 2428 |
2442 // The |render_view_id| and |bridge_id| requests Geolocation service to stop | 2429 // The |render_view_id| requests Geolocation service to stop updating. |
2443 // updating. | |
2444 // Note that the geolocation service may continue to fetch geolocation data | 2430 // Note that the geolocation service may continue to fetch geolocation data |
2445 // for other origins. | 2431 // for other origins. |
2446 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_StopUpdating, | 2432 IPC_MESSAGE_CONTROL1(ViewHostMsg_Geolocation_StopUpdating, |
2447 int /* render_view_id */, | 2433 int /* render_view_id */) |
2448 int /* bridge_id */) | |
2449 | |
2450 // The |render_view_id| and |bridge_id| requests Geolocation service to | |
2451 // suspend. | |
2452 // Note that the geolocation service may continue to fetch geolocation data | |
2453 // for other origins. | |
2454 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Suspend, | |
2455 int /* render_view_id */, | |
2456 int /* bridge_id */) | |
2457 | |
2458 // The |render_view_id| and |bridge_id| requests Geolocation service to | |
2459 // resume. | |
2460 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Resume, | |
2461 int /* render_view_id */, | |
2462 int /* bridge_id */) | |
2463 | 2434 |
2464 // Updates the minimum/maximum allowed zoom percent for this tab from the | 2435 // Updates the minimum/maximum allowed zoom percent for this tab from the |
2465 // default values. If |remember| is true, then the zoom setting is applied to | 2436 // default values. If |remember| is true, then the zoom setting is applied to |
2466 // other pages in the site and is saved, otherwise it only applies to this | 2437 // other pages in the site and is saved, otherwise it only applies to this |
2467 // tab. | 2438 // tab. |
2468 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, | 2439 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, |
2469 int /* minimum_percent */, | 2440 int /* minimum_percent */, |
2470 int /* maximum_percent */, | 2441 int /* maximum_percent */, |
2471 bool /* remember */) | 2442 bool /* remember */) |
2472 | 2443 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2623 // to ViewMsg_ScriptEvalRequest. The result has the value returned by the | 2594 // to ViewMsg_ScriptEvalRequest. The result has the value returned by the |
2624 // script as it's only element, one of Null, Boolean, Integer, Real, Date, or | 2595 // script as it's only element, one of Null, Boolean, Integer, Real, Date, or |
2625 // String. | 2596 // String. |
2626 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, | 2597 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, |
2627 int /* id */, | 2598 int /* id */, |
2628 ListValue /* result */) | 2599 ListValue /* result */) |
2629 | 2600 |
2630 // Updates the content restrictions, i.e. to disable print/copy. | 2601 // Updates the content restrictions, i.e. to disable print/copy. |
2631 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateContentRestrictions, | 2602 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateContentRestrictions, |
2632 int /* restrictions */) | 2603 int /* restrictions */) |
OLD | NEW |