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

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

Issue 181014: Eliminate remaining WebCore dependencies from webplugin_impl.cc... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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) 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/transport_dib.h" 14 #include "chrome/common/transport_dib.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 #include "ipc/ipc_channel.h" 16 #include "ipc/ipc_channel.h"
17 #include "third_party/npapi/bindings/npapi.h" 17 #include "third_party/npapi/bindings/npapi.h"
18 18
19 class PluginChannel; 19 class PluginChannel;
20 class WebPluginProxy; 20 class WebPluginProxy;
21 class WebPluginDelegate;
22 struct PluginMsg_Init_Params; 21 struct PluginMsg_Init_Params;
23 struct PluginMsg_DidReceiveResponseParams; 22 struct PluginMsg_DidReceiveResponseParams;
24 struct PluginMsg_URLRequestReply_Params; 23 struct PluginMsg_URLRequestReply_Params;
25 class WebCursor; 24 class WebCursor;
26 25
27 namespace WebKit { 26 namespace WebKit {
28 class WebInputEvent; 27 class WebInputEvent;
29 } 28 }
30 29
30 namespace webkit_glue {
31 class WebPluginDelegate;
32 }
33
31 // Converts the IPC messages from WebPluginDelegateProxy into calls to the 34 // Converts the IPC messages from WebPluginDelegateProxy into calls to the
32 // actual WebPluginDelegate object. 35 // actual WebPluginDelegate object.
33 class WebPluginDelegateStub : public IPC::Channel::Listener, 36 class WebPluginDelegateStub : public IPC::Channel::Listener,
34 public IPC::Message::Sender, 37 public IPC::Message::Sender,
35 public base::RefCounted<WebPluginDelegateStub> { 38 public base::RefCounted<WebPluginDelegateStub> {
36 public: 39 public:
37 WebPluginDelegateStub(const std::string& mime_type, int instance_id, 40 WebPluginDelegateStub(const std::string& mime_type, int instance_id,
38 PluginChannel* channel); 41 PluginChannel* channel);
39 ~WebPluginDelegateStub(); 42 ~WebPluginDelegateStub();
40 43
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 95
93 void CreateSharedBuffer(size_t size, 96 void CreateSharedBuffer(size_t size,
94 base::SharedMemory* shared_buf, 97 base::SharedMemory* shared_buf,
95 base::SharedMemoryHandle* remote_handle); 98 base::SharedMemoryHandle* remote_handle);
96 99
97 std::string mime_type_; 100 std::string mime_type_;
98 int instance_id_; 101 int instance_id_;
99 102
100 scoped_refptr<PluginChannel> channel_; 103 scoped_refptr<PluginChannel> channel_;
101 104
102 WebPluginDelegate* delegate_; 105 webkit_glue::WebPluginDelegate* delegate_;
103 WebPluginProxy* webplugin_; 106 WebPluginProxy* webplugin_;
104 107
105 // The url of the main frame hosting the plugin. 108 // The url of the main frame hosting the plugin.
106 GURL page_url_; 109 GURL page_url_;
107 110
108 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); 111 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub);
109 }; 112 };
110 113
111 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ 114 #endif // CHROME_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698