| 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 16 matching lines...) Expand all Loading... |
| 27 struct Preferences; | 27 struct Preferences; |
| 28 class Resource; | 28 class Resource; |
| 29 | 29 |
| 30 namespace thunk { | 30 namespace thunk { |
| 31 class PPB_Instance_API; | 31 class PPB_Instance_API; |
| 32 class ResourceCreationAPI; | 32 class ResourceCreationAPI; |
| 33 } | 33 } |
| 34 | 34 |
| 35 namespace proxy { | 35 namespace proxy { |
| 36 | 36 |
| 37 class GamepadResource; |
| 37 class ResourceMessageReplyParams; | 38 class ResourceMessageReplyParams; |
| 38 | 39 |
| 39 // Used to keep track of per-instance data. | 40 // Used to keep track of per-instance data. |
| 40 struct InstanceData { | 41 struct InstanceData { |
| 41 InstanceData(); | 42 InstanceData(); |
| 42 ~InstanceData(); | 43 ~InstanceData(); |
| 43 | 44 |
| 44 ViewData view; | 45 ViewData view; |
| 45 | 46 |
| 46 PP_Bool flash_fullscreen; // Used for PPB_FlashFullscreen. | 47 PP_Bool flash_fullscreen; // Used for PPB_FlashFullscreen. |
| 47 | 48 |
| 48 // 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. |
| 49 scoped_refptr<TrackedCallback> mouse_lock_callback; | 50 scoped_refptr<TrackedCallback> mouse_lock_callback; |
| 50 | 51 |
| 52 // Lazily created the first time the plugin requests gamepad data. |
| 53 scoped_refptr<GamepadResource> gamepad_resource; |
| 54 |
| 51 // Calls to |RequestSurroundingText()| are done by posted tasks. Track whether | 55 // Calls to |RequestSurroundingText()| are done by posted tasks. Track whether |
| 52 // a) a task is pending, to avoid redundant calls, and b) whether we should | 56 // a) a task is pending, to avoid redundant calls, and b) whether we should |
| 53 // actually call |RequestSurroundingText()|, to avoid stale calls (i.e., | 57 // actually call |RequestSurroundingText()|, to avoid stale calls (i.e., |
| 54 // calling when we shouldn't). | 58 // calling when we shouldn't). |
| 55 bool is_request_surrounding_text_pending; | 59 bool is_request_surrounding_text_pending; |
| 56 bool should_do_request_surrounding_text; | 60 bool should_do_request_surrounding_text; |
| 57 }; | 61 }; |
| 58 | 62 |
| 59 class PPAPI_PROXY_EXPORT PluginDispatcher | 63 class PPAPI_PROXY_EXPORT PluginDispatcher |
| 60 : public Dispatcher, | 64 : public Dispatcher, |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 // incognito mode. | 184 // incognito mode. |
| 181 bool incognito_; | 185 bool incognito_; |
| 182 | 186 |
| 183 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); | 187 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); |
| 184 }; | 188 }; |
| 185 | 189 |
| 186 } // namespace proxy | 190 } // namespace proxy |
| 187 } // namespace ppapi | 191 } // namespace ppapi |
| 188 | 192 |
| 189 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ | 193 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ |
| OLD | NEW |