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