OLD | NEW |
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 } // namespace | 49 } // namespace |
50 | 50 |
51 InstanceData::InstanceData() | 51 InstanceData::InstanceData() |
52 : flash_fullscreen(PP_FALSE), | 52 : flash_fullscreen(PP_FALSE), |
53 is_request_surrounding_text_pending(false), | 53 is_request_surrounding_text_pending(false), |
54 should_do_request_surrounding_text(false) { | 54 should_do_request_surrounding_text(false) { |
55 } | 55 } |
56 | 56 |
57 InstanceData::~InstanceData() { | 57 InstanceData::~InstanceData() { |
58 // Run any pending mouse lock callback to prevent leaks. | 58 // Run any pending mouse lock callback to prevent leaks. |
59 if (mouse_lock_callback) | 59 if (mouse_lock_callback.get()) |
60 mouse_lock_callback->Abort(); | 60 mouse_lock_callback->Abort(); |
61 } | 61 } |
62 | 62 |
63 PluginDispatcher::PluginDispatcher(PP_GetInterface_Func get_interface, | 63 PluginDispatcher::PluginDispatcher(PP_GetInterface_Func get_interface, |
64 const PpapiPermissions& permissions, | 64 const PpapiPermissions& permissions, |
65 bool incognito) | 65 bool incognito) |
66 : Dispatcher(get_interface, permissions), | 66 : Dispatcher(get_interface, permissions), |
67 plugin_delegate_(NULL), | 67 plugin_delegate_(NULL), |
68 received_preferences_(false), | 68 received_preferences_(false), |
69 plugin_dispatcher_id_(0), | 69 plugin_dispatcher_id_(0), |
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 // once they're set. The user will have to restart to get new font prefs | 327 // once they're set. The user will have to restart to get new font prefs |
328 // propogated to plugins. | 328 // propogated to plugins. |
329 if (!received_preferences_) { | 329 if (!received_preferences_) { |
330 received_preferences_ = true; | 330 received_preferences_ = true; |
331 preferences_ = prefs; | 331 preferences_ = prefs; |
332 } | 332 } |
333 } | 333 } |
334 | 334 |
335 } // namespace proxy | 335 } // namespace proxy |
336 } // namespace ppapi | 336 } // namespace ppapi |
OLD | NEW |