OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/ipc_channel.h" | 14 #include "chrome/common/ipc_channel.h" |
15 #include "third_party/npapi/bindings/npapi.h" | 15 #include "third_party/npapi/bindings/npapi.h" |
16 | 16 |
17 class GURL; | 17 class GURL; |
18 class PluginChannel; | 18 class PluginChannel; |
19 class WebPluginProxy; | 19 class WebPluginProxy; |
20 class WebPluginDelegateImpl; | 20 class WebPluginDelegate; |
21 struct PluginMsg_Init_Params; | 21 struct PluginMsg_Init_Params; |
22 struct PluginMsg_DidReceiveResponseParams; | 22 struct PluginMsg_DidReceiveResponseParams; |
23 struct PluginMsg_PrintResponse_Params; | 23 struct PluginMsg_PrintResponse_Params; |
24 struct PluginMsg_URLRequestReply_Params; | 24 struct PluginMsg_URLRequestReply_Params; |
25 class WebCursor; | 25 class WebCursor; |
26 | 26 |
27 // Converts the IPC messages from WebPluginDelegateProxy into calls to the | 27 // Converts the IPC messages from WebPluginDelegateProxy into calls to the |
28 // actual WebPluginDelegate object. | 28 // actual WebPluginDelegate object. |
29 class WebPluginDelegateStub : public IPC::Channel::Listener, | 29 class WebPluginDelegateStub : public IPC::Channel::Listener, |
30 public IPC::Message::Sender, | 30 public IPC::Message::Sender, |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 void CreateSharedBuffer(size_t size, | 92 void CreateSharedBuffer(size_t size, |
93 base::SharedMemory* shared_buf, | 93 base::SharedMemory* shared_buf, |
94 base::SharedMemoryHandle* remote_handle); | 94 base::SharedMemoryHandle* remote_handle); |
95 | 95 |
96 int instance_id_; | 96 int instance_id_; |
97 std::string mime_type_; | 97 std::string mime_type_; |
98 | 98 |
99 scoped_refptr<PluginChannel> channel_; | 99 scoped_refptr<PluginChannel> channel_; |
100 | 100 |
101 WebPluginDelegateImpl* delegate_; | 101 WebPluginDelegate* delegate_; |
102 WebPluginProxy* webplugin_; | 102 WebPluginProxy* webplugin_; |
103 | 103 |
104 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateStub); | 104 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateStub); |
105 }; | 105 }; |
106 | 106 |
107 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 107 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
OLD | NEW |