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

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

Issue 10069035: Add a way to implement GetInterface in the broker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 #include "ppapi/proxy/plugin_dispatcher.h" 5 #include "ppapi/proxy/plugin_dispatcher.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 InstanceData::~InstanceData() { 52 InstanceData::~InstanceData() {
53 // Run any pending mouse lock callback to prevent leaks. 53 // Run any pending mouse lock callback to prevent leaks.
54 if (mouse_lock_callback.func) { 54 if (mouse_lock_callback.func) {
55 CallWhileUnlocked(PP_RunAndClearCompletionCallback, 55 CallWhileUnlocked(PP_RunAndClearCompletionCallback,
56 &mouse_lock_callback, 56 &mouse_lock_callback,
57 static_cast<int32_t>(PP_ERROR_ABORTED)); 57 static_cast<int32_t>(PP_ERROR_ABORTED));
58 } 58 }
59 } 59 }
60 60
61 PluginDispatcher::PluginDispatcher(base::ProcessHandle remote_process_handle, 61 PluginDispatcher::PluginDispatcher(base::ProcessHandle remote_process_handle,
62 GetInterfaceFunc get_interface) 62 PP_GetInterface_Func get_interface)
63 : Dispatcher(remote_process_handle, get_interface), 63 : Dispatcher(remote_process_handle, get_interface),
64 plugin_delegate_(NULL), 64 plugin_delegate_(NULL),
65 received_preferences_(false), 65 received_preferences_(false),
66 plugin_dispatcher_id_(0) { 66 plugin_dispatcher_id_(0) {
67 SetSerializationRules(new PluginVarSerializationRules(AsWeakPtr())); 67 SetSerializationRules(new PluginVarSerializationRules(AsWeakPtr()));
68 68
69 if (!g_live_dispatchers) 69 if (!g_live_dispatchers)
70 g_live_dispatchers = new DispatcherSet; 70 g_live_dispatchers = new DispatcherSet;
71 g_live_dispatchers->insert(this); 71 g_live_dispatchers->insert(this);
72 } 72 }
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 // once they're set. The user will have to restart to get new font prefs 291 // once they're set. The user will have to restart to get new font prefs
292 // propogated to plugins. 292 // propogated to plugins.
293 if (!received_preferences_) { 293 if (!received_preferences_) {
294 received_preferences_ = true; 294 received_preferences_ = true;
295 preferences_ = prefs; 295 preferences_ = prefs;
296 } 296 }
297 } 297 }
298 298
299 } // namespace proxy 299 } // namespace proxy
300 } // namespace ppapi 300 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698