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" | |
13 #include "base/task.h" | 12 #include "base/task.h" |
14 #include "chrome/common/ipc_channel.h" | 13 #include "chrome/common/ipc_channel.h" |
| 14 #include "chrome/common/plugin_messages.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 WebPluginDelegateImpl; |
21 struct PluginMsg_Init_Params; | 21 struct PluginMsg_Init_Params; |
22 struct PluginMsg_DidReceiveResponseParams; | 22 struct PluginMsg_DidReceiveResponseParams; |
23 struct PluginMsg_PrintResponse_Params; | |
24 struct PluginMsg_URLRequestReply_Params; | |
25 class WebCursor; | 23 class WebCursor; |
26 | 24 |
27 // Converts the IPC messages from WebPluginDelegateProxy into calls to the | 25 // Converts the IPC messages from WebPluginDelegateProxy into calls to the |
28 // actual WebPluginDelegate object. | 26 // actual WebPluginDelegate object. |
29 class WebPluginDelegateStub : public IPC::Channel::Listener, | 27 class WebPluginDelegateStub : public IPC::Channel::Listener, |
30 public IPC::Message::Sender, | 28 public IPC::Message::Sender, |
31 public base::RefCounted<WebPluginDelegateStub> { | 29 public base::RefCounted<WebPluginDelegateStub> { |
32 public: | 30 public: |
33 WebPluginDelegateStub(const std::string& mime_type, int instance_id, | 31 WebPluginDelegateStub(const std::string& mime_type, int instance_id, |
34 PluginChannel* channel); | 32 PluginChannel* channel); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 | 96 |
99 scoped_refptr<PluginChannel> channel_; | 97 scoped_refptr<PluginChannel> channel_; |
100 | 98 |
101 WebPluginDelegateImpl* delegate_; | 99 WebPluginDelegateImpl* delegate_; |
102 WebPluginProxy* webplugin_; | 100 WebPluginProxy* webplugin_; |
103 | 101 |
104 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateStub); | 102 DISALLOW_EVIL_CONSTRUCTORS(WebPluginDelegateStub); |
105 }; | 103 }; |
106 | 104 |
107 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 105 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
OLD | NEW |