| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 typedef std::map<PP_Instance, PluginDispatcher*> InstanceToDispatcherMap; | 44 typedef std::map<PP_Instance, PluginDispatcher*> InstanceToDispatcherMap; |
| 45 InstanceToDispatcherMap* g_instance_to_dispatcher = NULL; | 45 InstanceToDispatcherMap* g_instance_to_dispatcher = NULL; |
| 46 | 46 |
| 47 typedef std::set<PluginDispatcher*> DispatcherSet; | 47 typedef std::set<PluginDispatcher*> DispatcherSet; |
| 48 DispatcherSet* g_live_dispatchers = NULL; | 48 DispatcherSet* g_live_dispatchers = NULL; |
| 49 | 49 |
| 50 } // namespace | 50 } // namespace |
| 51 | 51 |
| 52 InstanceData::InstanceData() | 52 InstanceData::InstanceData() |
| 53 : flash_fullscreen(PP_FALSE), | 53 : is_request_surrounding_text_pending(false), |
| 54 is_request_surrounding_text_pending(false), | |
| 55 should_do_request_surrounding_text(false) { | 54 should_do_request_surrounding_text(false) { |
| 56 } | 55 } |
| 57 | 56 |
| 58 InstanceData::~InstanceData() { | 57 InstanceData::~InstanceData() { |
| 59 // Run any pending mouse lock callback to prevent leaks. | 58 // Run any pending mouse lock callback to prevent leaks. |
| 60 if (mouse_lock_callback) | 59 if (mouse_lock_callback) |
| 61 mouse_lock_callback->Abort(); | 60 mouse_lock_callback->Abort(); |
| 62 } | 61 } |
| 63 | 62 |
| 64 PluginDispatcher::PluginDispatcher(PP_GetInterface_Func get_interface, | 63 PluginDispatcher::PluginDispatcher(PP_GetInterface_Func get_interface, |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 if (!resource) { | 344 if (!resource) { |
| 346 if (reply_params.sequence()) | 345 if (reply_params.sequence()) |
| 347 NOTREACHED(); | 346 NOTREACHED(); |
| 348 return; | 347 return; |
| 349 } | 348 } |
| 350 resource->OnReplyReceived(reply_params, nested_msg); | 349 resource->OnReplyReceived(reply_params, nested_msg); |
| 351 } | 350 } |
| 352 | 351 |
| 353 } // namespace proxy | 352 } // namespace proxy |
| 354 } // namespace ppapi | 353 } // namespace ppapi |
| OLD | NEW |