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

Side by Side Diff: chrome/plugin/webplugin_delegate_stub.h

Issue 465040: Added CommandBufferClient, CommandBufferStub and some IPC messages.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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
« no previous file with comments | « chrome/plugin/command_buffer_stub.cc ('k') | chrome/plugin/webplugin_delegate_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 5 #ifndef CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
6 #define CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 6 #define CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
7 7
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/gfx/rect.h" 10 #include "base/gfx/rect.h"
11 #include "base/ref_counted.h" 11 #include "base/ref_counted.h"
12 #include "base/shared_memory.h" 12 #include "base/shared_memory.h"
13 #include "base/task.h" 13 #include "base/task.h"
14 #include "chrome/common/transport_dib.h" 14 #include "chrome/common/transport_dib.h"
15 #include "chrome/plugin/command_buffer_stub.h"
15 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
16 #include "ipc/ipc_channel.h" 17 #include "ipc/ipc_channel.h"
17 #include "third_party/npapi/bindings/npapi.h" 18 #include "third_party/npapi/bindings/npapi.h"
18 19
19 class PluginChannel; 20 class PluginChannel;
20 class WebPluginProxy; 21 class WebPluginProxy;
21 struct PluginMsg_Init_Params; 22 struct PluginMsg_Init_Params;
22 struct PluginMsg_DidReceiveResponseParams; 23 struct PluginMsg_DidReceiveResponseParams;
23 struct PluginMsg_UpdateGeometry_Param; 24 struct PluginMsg_UpdateGeometry_Param;
24 struct PluginMsg_URLRequestReply_Params; 25 struct PluginMsg_URLRequestReply_Params;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 const GURL& url, 87 const GURL& url,
87 const PluginMsg_DidReceiveResponseParams& params); 88 const PluginMsg_DidReceiveResponseParams& params);
88 void OnDidReceiveManualData(const std::vector<char>& buffer); 89 void OnDidReceiveManualData(const std::vector<char>& buffer);
89 void OnDidFinishManualLoading(); 90 void OnDidFinishManualLoading();
90 void OnDidManualLoadFail(); 91 void OnDidManualLoadFail();
91 void OnInstallMissingPlugin(); 92 void OnInstallMissingPlugin();
92 93
93 void OnHandleURLRequestReply( 94 void OnHandleURLRequestReply(
94 const PluginMsg_URLRequestReply_Params& params); 95 const PluginMsg_URLRequestReply_Params& params);
95 96
97 void OnCreateCommandBuffer(int* route_id);
98
96 void CreateSharedBuffer(size_t size, 99 void CreateSharedBuffer(size_t size,
97 base::SharedMemory* shared_buf, 100 base::SharedMemory* shared_buf,
98 base::SharedMemoryHandle* remote_handle); 101 base::SharedMemoryHandle* remote_handle);
99 102
100 std::string mime_type_; 103 std::string mime_type_;
101 int instance_id_; 104 int instance_id_;
102 105
103 scoped_refptr<PluginChannel> channel_; 106 scoped_refptr<PluginChannel> channel_;
104 107
105 WebPluginDelegateImpl* delegate_; 108 WebPluginDelegateImpl* delegate_;
106 WebPluginProxy* webplugin_; 109 WebPluginProxy* webplugin_;
107 bool in_destructor_; 110 bool in_destructor_;
108 111
109 // The url of the main frame hosting the plugin. 112 // The url of the main frame hosting the plugin.
110 GURL page_url_; 113 GURL page_url_;
111 114
115 #if defined(ENABLE_GPU)
116 // If this is the GPU plugin, the stub object that forwards to the
117 // command buffer service.
118 scoped_ptr<CommandBufferStub> command_buffer_stub_;
119 #endif
120
112 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); 121 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub);
113 }; 122 };
114 123
115 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 124 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
OLDNEW
« no previous file with comments | « chrome/plugin/command_buffer_stub.cc ('k') | chrome/plugin/webplugin_delegate_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698