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 // This header is meant to be included in multiple passes, hence no traditional | 5 // This header is meant to be included in multiple passes, hence no traditional |
6 // header guard. | 6 // header guard. |
7 // See ipc_message_macros.h for explanation of the macros and passes. | 7 // See ipc_message_macros.h for explanation of the macros and passes. |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 27 matching lines...) Loading... |
38 #endif | 38 #endif |
39 | 39 |
40 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes | 40 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes |
41 // more sense with our current design. | 41 // more sense with our current design. |
42 | 42 |
43 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need | 43 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need |
44 // to typedef it to avoid that. | 44 // to typedef it to avoid that. |
45 // Substitution map for l10n messages. | 45 // Substitution map for l10n messages. |
46 typedef std::map<std::string, std::string> SubstitutionMap; | 46 typedef std::map<std::string, std::string> SubstitutionMap; |
47 | 47 |
| 48 class Value; |
48 class GPUInfo; | 49 class GPUInfo; |
49 class SerializedScriptValue; | 50 class SerializedScriptValue; |
50 class SkBitmap; | 51 class SkBitmap; |
51 struct ThumbnailScore; | 52 struct ThumbnailScore; |
52 class WebCursor; | 53 class WebCursor; |
53 | 54 |
54 namespace gfx { | 55 namespace gfx { |
55 class Rect; | 56 class Rect; |
56 } | 57 } |
57 | 58 |
(...skipping 2964 matching lines...) Loading... |
3022 | 3023 |
3023 // Client-Side Phishing Detector --------------------------------------------- | 3024 // Client-Side Phishing Detector --------------------------------------------- |
3024 // Inform the browser that the current URL is phishing according to the | 3025 // Inform the browser that the current URL is phishing according to the |
3025 // client-side phishing detector. | 3026 // client-side phishing detector. |
3026 IPC_MESSAGE_ROUTED3(ViewHostMsg_DetectedPhishingSite, | 3027 IPC_MESSAGE_ROUTED3(ViewHostMsg_DetectedPhishingSite, |
3027 GURL /* phishing_url */, | 3028 GURL /* phishing_url */, |
3028 double /* phishing_score */, | 3029 double /* phishing_score */, |
3029 SkBitmap /* thumbnail */) | 3030 SkBitmap /* thumbnail */) |
3030 | 3031 |
3031 // Response from ViewMsg_ScriptEvalRequest. The ID is the parameter supplied | 3032 // Response from ViewMsg_ScriptEvalRequest. The ID is the parameter supplied |
3032 // to ViewMsg_ScriptEvalRequest. The result is true if the script evaluated | 3033 // to ViewMsg_ScriptEvalRequest. The result has the value returned by the |
3033 // to the boolean result true, false otherwise. | 3034 // script as it's only element, one of Null, Boolean, Integer, Real, Date, or |
| 3035 // String. |
3034 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, | 3036 IPC_MESSAGE_ROUTED2(ViewHostMsg_ScriptEvalResponse, |
3035 int /* id */, | 3037 int /* id */, |
3036 bool /* result */) | 3038 ListValue /* result */) |
3037 | 3039 |
3038 // Updates the content restrictions, i.e. to disable print/copy. | 3040 // Updates the content restrictions, i.e. to disable print/copy. |
3039 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateContentRestrictions, | 3041 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateContentRestrictions, |
3040 int /* restrictions */) | 3042 int /* restrictions */) |
3041 | 3043 |
3042 // Trusted Pepper Filesystem messages ---------------------------------------- | 3044 // Trusted Pepper Filesystem messages ---------------------------------------- |
3043 | 3045 |
3044 // Open the file. | 3046 // Open the file. |
3045 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_PepperOpenFile, | 3047 IPC_SYNC_MESSAGE_CONTROL2_2(ViewHostMsg_PepperOpenFile, |
3046 FilePath /* path */, | 3048 FilePath /* path */, |
(...skipping 24 matching lines...) Loading... |
3071 base::PlatformFileInfo, /* info */ | 3073 base::PlatformFileInfo, /* info */ |
3072 base::PlatformFileError /* error_code */) | 3074 base::PlatformFileError /* error_code */) |
3073 | 3075 |
3074 // Get the directory's contents. | 3076 // Get the directory's contents. |
3075 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperGetDirContents, | 3077 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_PepperGetDirContents, |
3076 FilePath /* path */, | 3078 FilePath /* path */, |
3077 PepperDirContents, /* contents */ | 3079 PepperDirContents, /* contents */ |
3078 base::PlatformFileError /* error_code */) | 3080 base::PlatformFileError /* error_code */) |
3079 | 3081 |
3080 IPC_END_MESSAGES(ViewHost) | 3082 IPC_END_MESSAGES(ViewHost) |
OLD | NEW |