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