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

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

Issue 6343006: Route IPC through browser when creating a viewable command buffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some final cleanup before review. 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"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes 43 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes
44 // more sense with our current design. 44 // more sense with our current design.
45 45
46 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need 46 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need
47 // to typedef it to avoid that. 47 // to typedef it to avoid that.
48 // Substitution map for l10n messages. 48 // Substitution map for l10n messages.
49 typedef std::map<std::string, std::string> SubstitutionMap; 49 typedef std::map<std::string, std::string> SubstitutionMap;
50 50
51 class Value; 51 class Value;
52 struct GPUCreateCommandBufferConfig;
52 class GPUInfo; 53 class GPUInfo;
53 struct PP_Flash_NetAddress; 54 struct PP_Flash_NetAddress;
54 class SkBitmap; 55 class SkBitmap;
55 struct ThumbnailScore; 56 struct ThumbnailScore;
56 class WebCursor; 57 class WebCursor;
57 58
58 namespace gfx { 59 namespace gfx {
59 class Rect; 60 class Rect;
60 } 61 }
61 62
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after
1559 // create connect to the GPU. The browser will create the GPU process if 1560 // create connect to the GPU. The browser will create the GPU process if
1560 // necessary, and will return a handle to the channel via 1561 // necessary, and will return a handle to the channel via
1561 // a GpuChannelEstablished message. 1562 // a GpuChannelEstablished message.
1562 IPC_MESSAGE_CONTROL0(ViewHostMsg_EstablishGpuChannel) 1563 IPC_MESSAGE_CONTROL0(ViewHostMsg_EstablishGpuChannel)
1563 1564
1564 // A renderer sends this to the browser process to provide a synchronization 1565 // A renderer sends this to the browser process to provide a synchronization
1565 // point for GPU operations, in particular to make sure the GPU channel has 1566 // point for GPU operations, in particular to make sure the GPU channel has
1566 // been established. 1567 // been established.
1567 IPC_SYNC_MESSAGE_CONTROL0_0(ViewHostMsg_SynchronizeGpu) 1568 IPC_SYNC_MESSAGE_CONTROL0_0(ViewHostMsg_SynchronizeGpu)
1568 1569
1570 // A renderer sends this to the browser process when it wants to
1571 // create a GL context associated with the given view_id.
1572 IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_CreateViewCommandBuffer,
1573 int32, /* render_view_id */
1574 GPUCreateCommandBufferConfig, /* init_params */
1575 int32 /* route_id */)
1576
1569 // A renderer sends this to the browser process when it wants to start 1577 // A renderer sends this to the browser process when it wants to start
1570 // a new instance of the Native Client process. The browser will launch 1578 // a new instance of the Native Client process. The browser will launch
1571 // the process and return a handle to an IMC channel. 1579 // the process and return a handle to an IMC channel.
1572 IPC_SYNC_MESSAGE_CONTROL2_3(ViewHostMsg_LaunchNaCl, 1580 IPC_SYNC_MESSAGE_CONTROL2_3(ViewHostMsg_LaunchNaCl,
1573 std::wstring /* url for the NaCl module */, 1581 std::wstring /* url for the NaCl module */,
1574 int /* socket count */, 1582 int /* socket count */,
1575 std::vector<nacl::FileDescriptor> 1583 std::vector<nacl::FileDescriptor>
1576 /* imc channel handles */, 1584 /* imc channel handles */,
1577 base::ProcessHandle /* NaCl process handle */, 1585 base::ProcessHandle /* NaCl process handle */,
1578 base::ProcessId /* NaCl process id */) 1586 base::ProcessId /* NaCl process id */)
(...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after
2605 int /* request_id */, 2613 int /* request_id */,
2606 PP_Flash_NetAddress /* addr */) 2614 PP_Flash_NetAddress /* addr */)
2607 2615
2608 // JavaScript related messages ----------------------------------------------- 2616 // JavaScript related messages -----------------------------------------------
2609 2617
2610 // Notify the JavaScript engine in the render to change its parameters 2618 // Notify the JavaScript engine in the render to change its parameters
2611 // while performing stress testing. 2619 // while performing stress testing.
2612 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl, 2620 IPC_MESSAGE_ROUTED2(ViewMsg_JavaScriptStressTestControl,
2613 int /* cmd */, 2621 int /* cmd */,
2614 int /* param */) 2622 int /* param */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698