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

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

Issue 11225021: Move flash clipboard to the new proxy and add custom format support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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_clipboard_resource.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 FlashClipboardResource;
37 class FlashResource; 38 class FlashResource;
38 class GamepadResource; 39 class GamepadResource;
39 class ResourceMessageReplyParams; 40 class ResourceMessageReplyParams;
40 41
41 // Used to keep track of per-instance data. 42 // Used to keep track of per-instance data.
42 struct InstanceData { 43 struct InstanceData {
43 InstanceData(); 44 InstanceData();
44 ~InstanceData(); 45 ~InstanceData();
45 46
46 ViewData view; 47 ViewData view;
47 48
48 PP_Bool flash_fullscreen; // Used for PPB_FlashFullscreen. 49 PP_Bool flash_fullscreen; // Used for PPB_FlashFullscreen.
49 50
50 // When non-NULL, indicates the callback to execute when mouse lock is lost. 51 // When non-NULL, indicates the callback to execute when mouse lock is lost.
51 scoped_refptr<TrackedCallback> mouse_lock_callback; 52 scoped_refptr<TrackedCallback> mouse_lock_callback;
52 53
53 // The following are lazily created the first time the plugin requests them. 54 // The following are lazily created the first time the plugin requests them.
54 // (These are singleton-style resources). 55 // (These are singleton-style resources).
55 scoped_refptr<GamepadResource> gamepad_resource; 56 scoped_refptr<GamepadResource> gamepad_resource;
56 scoped_refptr<FlashResource> flash_resource; 57 scoped_refptr<FlashResource> flash_resource;
58 scoped_refptr<FlashClipboardResource> flash_clipboard_resource;
57 59
58 // Calls to |RequestSurroundingText()| are done by posted tasks. Track whether 60 // Calls to |RequestSurroundingText()| are done by posted tasks. Track whether
59 // a) a task is pending, to avoid redundant calls, and b) whether we should 61 // a) a task is pending, to avoid redundant calls, and b) whether we should
60 // actually call |RequestSurroundingText()|, to avoid stale calls (i.e., 62 // actually call |RequestSurroundingText()|, to avoid stale calls (i.e.,
61 // calling when we shouldn't). 63 // calling when we shouldn't).
62 bool is_request_surrounding_text_pending; 64 bool is_request_surrounding_text_pending;
63 bool should_do_request_surrounding_text; 65 bool should_do_request_surrounding_text;
64 }; 66 };
65 67
66 class PPAPI_PROXY_EXPORT PluginDispatcher 68 class PPAPI_PROXY_EXPORT PluginDispatcher
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // incognito mode. 206 // incognito mode.
205 bool incognito_; 207 bool incognito_;
206 208
207 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); 209 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher);
208 }; 210 };
209 211
210 } // namespace proxy 212 } // namespace proxy
211 } // namespace ppapi 213 } // namespace ppapi
212 214
213 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ 215 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_
OLDNEW
« no previous file with comments | « ppapi/proxy/flash_clipboard_resource.cc ('k') | ppapi/proxy/plugin_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698