| 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 #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" | |
| 14 #include "base/nullable_string16.h" | 13 #include "base/nullable_string16.h" |
| 15 #include "base/platform_file.h" | 14 #include "base/platform_file.h" |
| 16 #include "base/sync_socket.h" | 15 #include "base/sync_socket.h" |
| 17 #include "chrome/common/content_settings.h" | 16 #include "chrome/common/content_settings.h" |
| 18 #include "chrome/common/extensions/extension.h" | 17 #include "chrome/common/extensions/extension.h" |
| 19 #include "chrome/common/geoposition.h" | 18 #include "chrome/common/geoposition.h" |
| 20 #include "chrome/common/nacl_types.h" | 19 #include "chrome/common/nacl_types.h" |
| 21 #include "chrome/common/notification_type.h" | 20 #include "chrome/common/notification_type.h" |
| 22 #include "chrome/common/page_zoom.h" | 21 #include "chrome/common/page_zoom.h" |
| 23 #include "chrome/common/translate_errors.h" | 22 #include "chrome/common/translate_errors.h" |
| (...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 941 int /* object id */) | 940 int /* object id */) |
| 942 | 941 |
| 943 // Tells the render view that a ViewHostMsg_AccessibilityNotifications | 942 // Tells the render view that a ViewHostMsg_AccessibilityNotifications |
| 944 // message was processed and it can send addition notifications. | 943 // message was processed and it can send addition notifications. |
| 945 IPC_MESSAGE_ROUTED0(ViewMsg_AccessibilityNotifications_ACK) | 944 IPC_MESSAGE_ROUTED0(ViewMsg_AccessibilityNotifications_ACK) |
| 946 | 945 |
| 947 // Notification that the device's orientation has changed. | 946 // Notification that the device's orientation has changed. |
| 948 IPC_MESSAGE_ROUTED1(ViewMsg_DeviceOrientationUpdated, | 947 IPC_MESSAGE_ROUTED1(ViewMsg_DeviceOrientationUpdated, |
| 949 ViewMsg_DeviceOrientationUpdated_Params) | 948 ViewMsg_DeviceOrientationUpdated_Params) |
| 950 | 949 |
| 951 // WebFrameClient::openFileSystem response messages. | |
| 952 IPC_MESSAGE_CONTROL4(ViewMsg_OpenFileSystemRequest_Complete, | |
| 953 int /* request_id */, | |
| 954 bool /* accepted */, | |
| 955 std::string /* name */, | |
| 956 FilePath /* root_path */) | |
| 957 | |
| 958 // WebFileSystem response messages. | |
| 959 IPC_MESSAGE_CONTROL1(ViewMsg_FileSystem_DidSucceed, | |
| 960 int /* request_id */) | |
| 961 IPC_MESSAGE_CONTROL2(ViewMsg_FileSystem_DidReadMetadata, | |
| 962 int /* request_id */, | |
| 963 base::PlatformFileInfo) | |
| 964 IPC_MESSAGE_CONTROL3(ViewMsg_FileSystem_DidReadDirectory, | |
| 965 int /* request_id */, | |
| 966 std::vector<base::FileUtilProxy::Entry> /* entries */, | |
| 967 bool /* has_more */) | |
| 968 | |
| 969 IPC_MESSAGE_CONTROL3(ViewMsg_FileSystem_DidWrite, | |
| 970 int /* request_id */, | |
| 971 int64 /* byte count */, | |
| 972 bool /* complete */) | |
| 973 IPC_MESSAGE_CONTROL2(ViewMsg_FileSystem_DidFail, | |
| 974 int /* request_id */, | |
| 975 base::PlatformFileError /* error_code */) | |
| 976 | |
| 977 // The response to ViewHostMsg_AsyncOpenFile. | 950 // The response to ViewHostMsg_AsyncOpenFile. |
| 978 IPC_MESSAGE_ROUTED3(ViewMsg_AsyncOpenFile_ACK, | 951 IPC_MESSAGE_ROUTED3(ViewMsg_AsyncOpenFile_ACK, |
| 979 base::PlatformFileError /* error_code */, | 952 base::PlatformFileError /* error_code */, |
| 980 IPC::PlatformFileForTransit /* file descriptor */, | 953 IPC::PlatformFileForTransit /* file descriptor */, |
| 981 int /* message_id */) | 954 int /* message_id */) |
| 982 | 955 |
| 983 // A classification model for client-side phishing detection. | 956 // A classification model for client-side phishing detection. |
| 984 // The given file contains an encoded safe_browsing::ClientSideModel | 957 // The given file contains an encoded safe_browsing::ClientSideModel |
| 985 // protocol buffer. | 958 // protocol buffer. |
| 986 IPC_MESSAGE_CONTROL1(ViewMsg_SetPhishingModel, | 959 IPC_MESSAGE_CONTROL1(ViewMsg_SetPhishingModel, |
| (...skipping 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2276 | 2249 |
| 2277 // A RenderView requests to start receiving device orientation updates. | 2250 // A RenderView requests to start receiving device orientation updates. |
| 2278 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating, | 2251 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StartUpdating, |
| 2279 int /* render_view_id */) | 2252 int /* render_view_id */) |
| 2280 | 2253 |
| 2281 // A RenderView requests to stop receiving device orientation updates. | 2254 // A RenderView requests to stop receiving device orientation updates. |
| 2282 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating, | 2255 IPC_MESSAGE_CONTROL1(ViewHostMsg_DeviceOrientation_StopUpdating, |
| 2283 int /* render_view_id */) | 2256 int /* render_view_id */) |
| 2284 | 2257 |
| 2285 //--------------------------------------------------------------------------- | 2258 //--------------------------------------------------------------------------- |
| 2286 // FileSystem API messages | |
| 2287 // These are messages sent from the renderer to the browser process. | |
| 2288 | |
| 2289 // WebFrameClient::openFileSystem() message. | |
| 2290 IPC_MESSAGE_CONTROL5(ViewHostMsg_OpenFileSystemRequest, | |
| 2291 int /* request_id */, | |
| 2292 GURL /* origin_url */, | |
| 2293 fileapi::FileSystemType /* type */, | |
| 2294 int64 /* requested_size */, | |
| 2295 bool /* create */) | |
| 2296 | |
| 2297 // WebFileSystem::move() message. | |
| 2298 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Move, | |
| 2299 int /* request_id */, | |
| 2300 FilePath /* src path */, | |
| 2301 FilePath /* dest path */) | |
| 2302 | |
| 2303 // WebFileSystem::copy() message. | |
| 2304 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Copy, | |
| 2305 int /* request_id */, | |
| 2306 FilePath /* src path */, | |
| 2307 FilePath /* dest path */) | |
| 2308 | |
| 2309 // WebFileSystem::remove() message. | |
| 2310 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Remove, | |
| 2311 int /* request_id */, | |
| 2312 FilePath /* path */, | |
| 2313 bool /* recursive */) | |
| 2314 | |
| 2315 // WebFileSystem::readMetadata() message. | |
| 2316 IPC_MESSAGE_CONTROL2(ViewHostMsg_FileSystem_ReadMetadata, | |
| 2317 int /* request_id */, | |
| 2318 FilePath /* path */) | |
| 2319 | |
| 2320 // WebFileSystem::create() message. | |
| 2321 IPC_MESSAGE_CONTROL5(ViewHostMsg_FileSystem_Create, | |
| 2322 int /* request_id */, | |
| 2323 FilePath /* path */, | |
| 2324 bool /* exclusive */, | |
| 2325 bool /* is_directory */, | |
| 2326 bool /* recursive */) | |
| 2327 | |
| 2328 // WebFileSystem::exists() messages. | |
| 2329 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Exists, | |
| 2330 int /* request_id */, | |
| 2331 FilePath /* path */, | |
| 2332 bool /* is_directory */) | |
| 2333 | |
| 2334 // WebFileSystem::readDirectory() message. | |
| 2335 IPC_MESSAGE_CONTROL2(ViewHostMsg_FileSystem_ReadDirectory, | |
| 2336 int /* request_id */, | |
| 2337 FilePath /* path */) | |
| 2338 | |
| 2339 // WebFileWriter::write() message. | |
| 2340 IPC_MESSAGE_CONTROL4(ViewHostMsg_FileSystem_Write, | |
| 2341 int /* request id */, | |
| 2342 FilePath /* file path */, | |
| 2343 GURL /* blob URL */, | |
| 2344 int64 /* position */) | |
| 2345 | |
| 2346 // WebFileWriter::truncate() message. | |
| 2347 IPC_MESSAGE_CONTROL3(ViewHostMsg_FileSystem_Truncate, | |
| 2348 int /* request id */, | |
| 2349 FilePath /* file path */, | |
| 2350 int64 /* length */) | |
| 2351 | |
| 2352 // Pepper's Touch() message. | |
| 2353 IPC_MESSAGE_CONTROL4(ViewHostMsg_FileSystem_TouchFile, | |
| 2354 int /* request_id */, | |
| 2355 FilePath /* path */, | |
| 2356 base::Time /* last_access_time */, | |
| 2357 base::Time /* last_modified_time */) | |
| 2358 | |
| 2359 // WebFileWriter::cancel() message. | |
| 2360 IPC_MESSAGE_CONTROL2(ViewHostMsg_FileSystem_CancelWrite, | |
| 2361 int /* request id */, | |
| 2362 int /* id of request to cancel */) | |
| 2363 | |
| 2364 //--------------------------------------------------------------------------- | |
| 2365 // Blob messages: | 2259 // Blob messages: |
| 2366 | 2260 |
| 2367 // Registers a blob URL referring to the specified blob data. | 2261 // Registers a blob URL referring to the specified blob data. |
| 2368 IPC_MESSAGE_CONTROL2(ViewHostMsg_RegisterBlobUrl, | 2262 IPC_MESSAGE_CONTROL2(ViewHostMsg_RegisterBlobUrl, |
| 2369 GURL /* url */, | 2263 GURL /* url */, |
| 2370 scoped_refptr<webkit_blob::BlobData> /* blob_data */) | 2264 scoped_refptr<webkit_blob::BlobData> /* blob_data */) |
| 2371 | 2265 |
| 2372 // Registers a blob URL referring to the blob data identified by the specified | 2266 // Registers a blob URL referring to the blob data identified by the specified |
| 2373 // source URL. | 2267 // source URL. |
| 2374 IPC_MESSAGE_CONTROL2(ViewHostMsg_RegisterBlobUrlFrom, | 2268 IPC_MESSAGE_CONTROL2(ViewHostMsg_RegisterBlobUrlFrom, |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2409 // while performing stress testing. | 2303 // while performing stress testing. |
| 2410 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, | 2304 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, |
| 2411 int /* cmd */, | 2305 int /* cmd */, |
| 2412 int /* param */) | 2306 int /* param */) |
| 2413 | 2307 |
| 2414 // Register a new handler for URL requests with the given scheme. | 2308 // Register a new handler for URL requests with the given scheme. |
| 2415 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, | 2309 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler, |
| 2416 std::string /* scheme */, | 2310 std::string /* scheme */, |
| 2417 GURL /* url */, | 2311 GURL /* url */, |
| 2418 string16 /* title */) | 2312 string16 /* title */) |
| OLD | NEW |