OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 typedef std::map<SingletonResourceID, scoped_refptr<Resource> > | 55 typedef std::map<SingletonResourceID, scoped_refptr<Resource> > |
56 SingletonResourceMap; | 56 SingletonResourceMap; |
57 SingletonResourceMap singleton_resources; | 57 SingletonResourceMap singleton_resources; |
58 | 58 |
59 // Calls to |RequestSurroundingText()| are done by posted tasks. Track whether | 59 // Calls to |RequestSurroundingText()| are done by posted tasks. Track whether |
60 // a) a task is pending, to avoid redundant calls, and b) whether we should | 60 // a) a task is pending, to avoid redundant calls, and b) whether we should |
61 // actually call |RequestSurroundingText()|, to avoid stale calls (i.e., | 61 // actually call |RequestSurroundingText()|, to avoid stale calls (i.e., |
62 // calling when we shouldn't). | 62 // calling when we shouldn't). |
63 bool is_request_surrounding_text_pending; | 63 bool is_request_surrounding_text_pending; |
64 bool should_do_request_surrounding_text; | 64 bool should_do_request_surrounding_text; |
| 65 |
| 66 // The compositor bound to the instance. |
| 67 scoped_refptr<Resource> bound_compositor; |
65 }; | 68 }; |
66 | 69 |
67 class PPAPI_PROXY_EXPORT PluginDispatcher | 70 class PPAPI_PROXY_EXPORT PluginDispatcher |
68 : public Dispatcher, | 71 : public Dispatcher, |
69 public base::SupportsWeakPtr<PluginDispatcher> { | 72 public base::SupportsWeakPtr<PluginDispatcher> { |
70 public: | 73 public: |
71 class PPAPI_PROXY_EXPORT PluginDelegate : public ProxyChannel::Delegate { | 74 class PPAPI_PROXY_EXPORT PluginDelegate : public ProxyChannel::Delegate { |
72 public: | 75 public: |
73 // Returns the set used for globally uniquifying PP_Instances. This same | 76 // Returns the set used for globally uniquifying PP_Instances. This same |
74 // set must be returned for all channels. | 77 // set must be returned for all channels. |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 // A filter for sending messages from threads other than the main thread. | 204 // A filter for sending messages from threads other than the main thread. |
202 scoped_refptr<IPC::SyncMessageFilter> sync_filter_; | 205 scoped_refptr<IPC::SyncMessageFilter> sync_filter_; |
203 | 206 |
204 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); | 207 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); |
205 }; | 208 }; |
206 | 209 |
207 } // namespace proxy | 210 } // namespace proxy |
208 } // namespace ppapi | 211 } // namespace ppapi |
209 | 212 |
210 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ | 213 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
OLD | NEW |