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" |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes | 41 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes |
42 // more sense with our current design. | 42 // more sense with our current design. |
43 | 43 |
44 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need | 44 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need |
45 // to typedef it to avoid that. | 45 // to typedef it to avoid that. |
46 // Substitution map for l10n messages. | 46 // Substitution map for l10n messages. |
47 typedef std::map<std::string, std::string> SubstitutionMap; | 47 typedef std::map<std::string, std::string> SubstitutionMap; |
48 | 48 |
49 class Value; | 49 class Value; |
| 50 struct GPUCreateCommandBufferConfig; |
50 class GPUInfo; | 51 class GPUInfo; |
51 class SkBitmap; | 52 class SkBitmap; |
52 struct ThumbnailScore; | 53 struct ThumbnailScore; |
53 class WebCursor; | 54 class WebCursor; |
54 | 55 |
55 namespace gfx { | 56 namespace gfx { |
56 class Rect; | 57 class Rect; |
57 } | 58 } |
58 | 59 |
59 namespace IPC { | 60 namespace IPC { |
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1525 // create connect to the GPU. The browser will create the GPU process if | 1526 // create connect to the GPU. The browser will create the GPU process if |
1526 // necessary, and will return a handle to the channel via | 1527 // necessary, and will return a handle to the channel via |
1527 // a GpuChannelEstablished message. | 1528 // a GpuChannelEstablished message. |
1528 IPC_MESSAGE_CONTROL0(ViewHostMsg_EstablishGpuChannel) | 1529 IPC_MESSAGE_CONTROL0(ViewHostMsg_EstablishGpuChannel) |
1529 | 1530 |
1530 // A renderer sends this to the browser process to provide a synchronization | 1531 // A renderer sends this to the browser process to provide a synchronization |
1531 // point for GPU operations, in particular to make sure the GPU channel has | 1532 // point for GPU operations, in particular to make sure the GPU channel has |
1532 // been established. | 1533 // been established. |
1533 IPC_SYNC_MESSAGE_CONTROL0_0(ViewHostMsg_SynchronizeGpu) | 1534 IPC_SYNC_MESSAGE_CONTROL0_0(ViewHostMsg_SynchronizeGpu) |
1534 | 1535 |
| 1536 // A renderer sends this to the browser process when it wants to |
| 1537 // create a GL context associated with the given view_id. |
| 1538 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateViewCommandBuffer, |
| 1539 int32, /* render_view_id */ |
| 1540 GPUCreateCommandBufferConfig, /* init_params */ |
| 1541 int32 /* route_id */) |
| 1542 |
1535 // A renderer sends this to the browser process when it wants to start | 1543 // A renderer sends this to the browser process when it wants to start |
1536 // a new instance of the Native Client process. The browser will launch | 1544 // a new instance of the Native Client process. The browser will launch |
1537 // the process and return a handle to an IMC channel. | 1545 // the process and return a handle to an IMC channel. |
1538 IPC_SYNC_MESSAGE_CONTROL2_3(ViewHostMsg_LaunchNaCl, | 1546 IPC_SYNC_MESSAGE_CONTROL2_3(ViewHostMsg_LaunchNaCl, |
1539 std::wstring /* url for the NaCl module */, | 1547 std::wstring /* url for the NaCl module */, |
1540 int /* socket count */, | 1548 int /* socket count */, |
1541 std::vector<nacl::FileDescriptor> | 1549 std::vector<nacl::FileDescriptor> |
1542 /* imc channel handles */, | 1550 /* imc channel handles */, |
1543 base::ProcessHandle /* NaCl process handle */, | 1551 base::ProcessHandle /* NaCl process handle */, |
1544 base::ProcessId /* NaCl process id */) | 1552 base::ProcessId /* NaCl process id */) |
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2510 // The currently displayed PDF has an unsupported feature. | 2518 // The currently displayed PDF has an unsupported feature. |
2511 IPC_MESSAGE_ROUTED0(ViewHostMsg_PDFHasUnsupportedFeature) | 2519 IPC_MESSAGE_ROUTED0(ViewHostMsg_PDFHasUnsupportedFeature) |
2512 | 2520 |
2513 // JavaScript related messages ----------------------------------------------- | 2521 // JavaScript related messages ----------------------------------------------- |
2514 | 2522 |
2515 // Notify the JavaScript engine in the render to change its parameters | 2523 // Notify the JavaScript engine in the render to change its parameters |
2516 // while performing stress testing. | 2524 // while performing stress testing. |
2517 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, | 2525 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, |
2518 int /* cmd */, | 2526 int /* cmd */, |
2519 int /* param */) | 2527 int /* param */) |
OLD | NEW |