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

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

Issue 10544089: Implement the file chooser as a new resource "host" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
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 ResourceMessageReplyParams;
38
37 // Used to keep track of per-instance data. 39 // Used to keep track of per-instance data.
38 struct InstanceData { 40 struct InstanceData {
39 InstanceData(); 41 InstanceData();
40 ~InstanceData(); 42 ~InstanceData();
41 43
42 ViewData view; 44 ViewData view;
43 45
44 PP_Bool flash_fullscreen; // Used for PPB_FlashFullscreen. 46 PP_Bool flash_fullscreen; // Used for PPB_FlashFullscreen.
45 47
46 // When non-NULL, indicates the callback to execute when mouse lock is lost. 48 // When non-NULL, indicates the callback to execute when mouse lock is lost.
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 bool incognito() const { return incognito_; } 137 bool incognito() const { return incognito_; }
136 138
137 private: 139 private:
138 friend class PluginDispatcherTest; 140 friend class PluginDispatcherTest;
139 141
140 // Notifies all live instances that they're now closed. This is used when 142 // Notifies all live instances that they're now closed. This is used when
141 // a renderer crashes or some other error is received. 143 // a renderer crashes or some other error is received.
142 void ForceFreeAllInstances(); 144 void ForceFreeAllInstances();
143 145
144 // IPC message handlers. 146 // IPC message handlers.
147 void OnMsgResourceReply(
148 const ppapi::proxy::ResourceMessageReplyParams& reply_params,
149 const IPC::Message& nested_msg);
145 void OnMsgSupportsInterface(const std::string& interface_name, bool* result); 150 void OnMsgSupportsInterface(const std::string& interface_name, bool* result);
146 void OnMsgSetPreferences(const Preferences& prefs); 151 void OnMsgSetPreferences(const Preferences& prefs);
147 152
148 PluginDelegate* plugin_delegate_; 153 PluginDelegate* plugin_delegate_;
149 154
150 // Contains all the plugin interfaces we've queried. The mapped value will 155 // Contains all the plugin interfaces we've queried. The mapped value will
151 // be the pointer to the interface pointer supplied by the plugin if it's 156 // be the pointer to the interface pointer supplied by the plugin if it's
152 // supported, or NULL if it's not supported. This allows us to cache failures 157 // supported, or NULL if it's not supported. This allows us to cache failures
153 // and not req-query if a plugin doesn't support the interface. 158 // and not req-query if a plugin doesn't support the interface.
154 typedef base::hash_map<std::string, const void*> InterfaceMap; 159 typedef base::hash_map<std::string, const void*> InterfaceMap;
(...skipping 13 matching lines...) Expand all
168 // incognito mode. 173 // incognito mode.
169 bool incognito_; 174 bool incognito_;
170 175
171 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); 176 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher);
172 }; 177 };
173 178
174 } // namespace proxy 179 } // namespace proxy
175 } // namespace ppapi 180 } // namespace ppapi
176 181
177 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ 182 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698