OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 5 #ifndef CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
6 #define CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 6 #define CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 26 matching lines...) Expand all Loading... |
37 // Converts the IPC messages from WebPluginDelegateProxy into calls to the | 37 // Converts the IPC messages from WebPluginDelegateProxy into calls to the |
38 // actual WebPluginDelegateImpl object. | 38 // actual WebPluginDelegateImpl object. |
39 class WebPluginDelegateStub : public IPC::Channel::Listener, | 39 class WebPluginDelegateStub : public IPC::Channel::Listener, |
40 public IPC::Message::Sender, | 40 public IPC::Message::Sender, |
41 public base::RefCounted<WebPluginDelegateStub> { | 41 public base::RefCounted<WebPluginDelegateStub> { |
42 public: | 42 public: |
43 WebPluginDelegateStub(const std::string& mime_type, int instance_id, | 43 WebPluginDelegateStub(const std::string& mime_type, int instance_id, |
44 PluginChannel* channel); | 44 PluginChannel* channel); |
45 | 45 |
46 // IPC::Channel::Listener implementation: | 46 // IPC::Channel::Listener implementation: |
47 virtual bool OnMessageReceived(const IPC::Message& msg); | 47 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
48 | 48 |
49 // IPC::Message::Sender implementation: | 49 // IPC::Message::Sender implementation: |
50 virtual bool Send(IPC::Message* msg); | 50 virtual bool Send(IPC::Message* msg) OVERRIDE; |
51 | 51 |
52 int instance_id() { return instance_id_; } | 52 int instance_id() { return instance_id_; } |
53 WebPluginProxy* webplugin() { return webplugin_; } | 53 WebPluginProxy* webplugin() { return webplugin_; } |
54 | 54 |
55 private: | 55 private: |
56 friend class base::RefCounted<WebPluginDelegateStub>; | 56 friend class base::RefCounted<WebPluginDelegateStub>; |
57 | 57 |
58 virtual ~WebPluginDelegateStub(); | 58 virtual ~WebPluginDelegateStub(); |
59 | 59 |
60 // Message handlers for the WebPluginDelegate calls that are proxied from the | 60 // Message handlers for the WebPluginDelegate calls that are proxied from the |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // window handle which is used for subsequent communication back to the | 127 // window handle which is used for subsequent communication back to the |
128 // browser. | 128 // browser. |
129 void OnSetFakeAcceleratedSurfaceWindowHandle(gfx::PluginWindowHandle window); | 129 void OnSetFakeAcceleratedSurfaceWindowHandle(gfx::PluginWindowHandle window); |
130 #endif | 130 #endif |
131 #endif | 131 #endif |
132 | 132 |
133 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); | 133 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); |
134 }; | 134 }; |
135 | 135 |
136 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 136 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
OLD | NEW |