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 28 matching lines...) Expand all Loading... |
39 class GamepadResource; | 39 class GamepadResource; |
40 class ResourceMessageReplyParams; | 40 class ResourceMessageReplyParams; |
41 | 41 |
42 // Used to keep track of per-instance data. | 42 // Used to keep track of per-instance data. |
43 struct InstanceData { | 43 struct InstanceData { |
44 InstanceData(); | 44 InstanceData(); |
45 ~InstanceData(); | 45 ~InstanceData(); |
46 | 46 |
47 ViewData view; | 47 ViewData view; |
48 | 48 |
49 PP_Bool flash_fullscreen; // Used for PPB_FlashFullscreen. | |
50 | |
51 // When non-NULL, indicates the callback to execute when mouse lock is lost. | 49 // When non-NULL, indicates the callback to execute when mouse lock is lost. |
52 scoped_refptr<TrackedCallback> mouse_lock_callback; | 50 scoped_refptr<TrackedCallback> mouse_lock_callback; |
53 | 51 |
54 // A map of singleton resources which are lazily created. | 52 // A map of singleton resources which are lazily created. |
55 typedef std::map<SingletonResourceID, scoped_refptr<Resource> > | 53 typedef std::map<SingletonResourceID, scoped_refptr<Resource> > |
56 SingletonResourceMap; | 54 SingletonResourceMap; |
57 SingletonResourceMap singleton_resources; | 55 SingletonResourceMap singleton_resources; |
58 | 56 |
59 // Calls to |RequestSurroundingText()| are done by posted tasks. Track whether | 57 // 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 | 58 // a) a task is pending, to avoid redundant calls, and b) whether we should |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 // incognito mode. | 208 // incognito mode. |
211 bool incognito_; | 209 bool incognito_; |
212 | 210 |
213 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); | 211 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); |
214 }; | 212 }; |
215 | 213 |
216 } // namespace proxy | 214 } // namespace proxy |
217 } // namespace ppapi | 215 } // namespace ppapi |
218 | 216 |
219 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ | 217 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
OLD | NEW |