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

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

Issue 704913002: PPAPI: Make GetProxiedInterface not re-enter the plugin (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make SimulateInputEvent test message asynchronous. Created 6 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
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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 bool incognito() const { return incognito_; } 168 bool incognito() const { return incognito_; }
169 169
170 private: 170 private:
171 friend class PluginDispatcherTest; 171 friend class PluginDispatcherTest;
172 172
173 // Notifies all live instances that they're now closed. This is used when 173 // Notifies all live instances that they're now closed. This is used when
174 // a renderer crashes or some other error is received. 174 // a renderer crashes or some other error is received.
175 void ForceFreeAllInstances(); 175 void ForceFreeAllInstances();
176 176
177 // IPC message handlers. 177 // IPC message handlers.
178 void OnMsgSupportsInterface(const std::string& interface_name, bool* result); 178 void OnMsgIsInterfaceSupported(
179 const std::string& interface_name, bool* result);
179 void OnMsgSetPreferences(const Preferences& prefs); 180 void OnMsgSetPreferences(const Preferences& prefs);
180 181
181 virtual bool SendMessage(IPC::Message* msg); 182 virtual bool SendMessage(IPC::Message* msg);
182 183
183 PluginDelegate* plugin_delegate_; 184 PluginDelegate* plugin_delegate_;
184 185
185 // Contains all the plugin interfaces we've queried. The mapped value will 186 // Contains all the plugin interfaces we've queried. The mapped value will
186 // be the pointer to the interface pointer supplied by the plugin if it's 187 // be the pointer to the interface pointer supplied by the plugin if it's
187 // supported, or NULL if it's not supported. This allows us to cache failures 188 // supported, or NULL if it's not supported. This allows us to cache failures
188 // and not req-query if a plugin doesn't support the interface. 189 // and not req-query if a plugin doesn't support the interface.
(...skipping 17 matching lines...) Expand all
206 // A filter for sending messages from threads other than the main thread. 207 // A filter for sending messages from threads other than the main thread.
207 scoped_refptr<IPC::SyncMessageFilter> sync_filter_; 208 scoped_refptr<IPC::SyncMessageFilter> sync_filter_;
208 209
209 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher); 210 DISALLOW_COPY_AND_ASSIGN(PluginDispatcher);
210 }; 211 };
211 212
212 } // namespace proxy 213 } // namespace proxy
213 } // namespace ppapi 214 } // namespace ppapi
214 215
215 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_ 216 #endif // PPAPI_PROXY_PLUGIN_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698