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 PPAPI_PROXY_PLUGIN_DISPATCHER_H_ | 5 #ifndef PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
6 #define PPAPI_PROXY_PLUGIN_DISPATCHER_H_ | 6 #define PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 namespace proxy { | 32 namespace proxy { |
33 | 33 |
34 // Used to keep track of per-instance data. | 34 // Used to keep track of per-instance data. |
35 struct InstanceData { | 35 struct InstanceData { |
36 InstanceData() : fullscreen(PP_FALSE) {} | 36 InstanceData() : fullscreen(PP_FALSE) {} |
37 PP_Rect position; | 37 PP_Rect position; |
38 PP_Bool fullscreen; | 38 PP_Bool fullscreen; |
39 }; | 39 }; |
40 | 40 |
41 class PluginDispatcher : public Dispatcher { | 41 class PPAPI_PROXY_EXPORT PluginDispatcher : public Dispatcher { |
42 public: | 42 public: |
43 class PluginDelegate : public ProxyChannel::Delegate { | 43 class PPAPI_PROXY_EXPORT PluginDelegate : public ProxyChannel::Delegate { |
44 public: | 44 public: |
45 // Returns the set used for globally uniquifying PP_Instances. This same | 45 // Returns the set used for globally uniquifying PP_Instances. This same |
46 // set must be returned for all channels. | 46 // set must be returned for all channels. |
47 // | 47 // |
48 // DEREFERENCE ONLY ON THE I/O THREAD. | 48 // DEREFERENCE ONLY ON THE I/O THREAD. |
49 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet() = 0; | 49 virtual std::set<PP_Instance>* GetGloballySeenInstanceIDSet() = 0; |
50 | 50 |
51 // Returns the WebKit forwarding object used to make calls into WebKit. | 51 // Returns the WebKit forwarding object used to make calls into WebKit. |
52 // Necessary only on the plugin side. | 52 // Necessary only on the plugin side. |
53 virtual WebKitForwarding* GetWebKitForwarding() = 0; | 53 virtual WebKitForwarding* GetWebKitForwarding() = 0; |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 | 167 |
168 uint32 plugin_dispatcher_id_; | 168 uint32 plugin_dispatcher_id_; |
169 | 169 |
170 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); | 170 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); |
171 }; | 171 }; |
172 | 172 |
173 } // namespace proxy | 173 } // namespace proxy |
174 } // namespace ppapi | 174 } // namespace ppapi |
175 | 175 |
176 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ | 176 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
OLD | NEW |