Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(499)

Side by Side Diff: ppapi/proxy/plugin_dispatcher.h

Issue 11039012: Implement plugin side of sync EnumerateVideoCaptureDevices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/flash_resource_unittest.cc ('k') | ppapi/proxy/plugin_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 FlashResource;
37 class GamepadResource; 38 class GamepadResource;
38 class ResourceMessageReplyParams; 39 class ResourceMessageReplyParams;
39 40
40 // Used to keep track of per-instance data. 41 // Used to keep track of per-instance data.
41 struct InstanceData { 42 struct InstanceData {
42 InstanceData(); 43 InstanceData();
43 ~InstanceData(); 44 ~InstanceData();
44 45
45 ViewData view; 46 ViewData view;
46 47
47 PP_Bool flash_fullscreen; // Used for PPB_FlashFullscreen. 48 PP_Bool flash_fullscreen; // Used for PPB_FlashFullscreen.
48 49
49 // 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.
50 scoped_refptr<TrackedCallback> mouse_lock_callback; 51 scoped_refptr<TrackedCallback> mouse_lock_callback;
51 52
52 // Lazily created the first time the plugin requests gamepad data. 53 // The following are lazily created the first time the plugin requests them.
54 // (These are singleton-style resources).
53 scoped_refptr<GamepadResource> gamepad_resource; 55 scoped_refptr<GamepadResource> gamepad_resource;
56 scoped_refptr<FlashResource> flash_resource;
54 57
55 // Calls to |RequestSurroundingText()| are done by posted tasks. Track whether 58 // Calls to |RequestSurroundingText()| are done by posted tasks. Track whether
56 // 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
57 // actually call |RequestSurroundingText()|, to avoid stale calls (i.e., 60 // actually call |RequestSurroundingText()|, to avoid stale calls (i.e.,
58 // calling when we shouldn't). 61 // calling when we shouldn't).
59 bool is_request_surrounding_text_pending; 62 bool is_request_surrounding_text_pending;
60 bool should_do_request_surrounding_text; 63 bool should_do_request_surrounding_text;
61 }; 64 };
62 65
63 class PPAPI_PROXY_EXPORT PluginDispatcher 66 class PPAPI_PROXY_EXPORT PluginDispatcher
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // incognito mode. 204 // incognito mode.
202 bool incognito_; 205 bool incognito_;
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_
OLDNEW
« no previous file with comments | « ppapi/proxy/flash_resource_unittest.cc ('k') | ppapi/proxy/plugin_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698