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/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 | 52 |
53 } // namespace | 53 } // namespace |
54 | 54 |
55 InstanceData::InstanceData() | 55 InstanceData::InstanceData() |
56 : is_request_surrounding_text_pending(false), | 56 : is_request_surrounding_text_pending(false), |
57 should_do_request_surrounding_text(false) { | 57 should_do_request_surrounding_text(false) { |
58 } | 58 } |
59 | 59 |
60 InstanceData::~InstanceData() { | 60 InstanceData::~InstanceData() { |
61 // Run any pending mouse lock callback to prevent leaks. | 61 // Run any pending mouse lock callback to prevent leaks. |
62 if (mouse_lock_callback) | 62 if (mouse_lock_callback.get()) |
63 mouse_lock_callback->Abort(); | 63 mouse_lock_callback->Abort(); |
64 } | 64 } |
65 | 65 |
66 PluginDispatcher::PluginDispatcher(PP_GetInterface_Func get_interface, | 66 PluginDispatcher::PluginDispatcher(PP_GetInterface_Func get_interface, |
67 const PpapiPermissions& permissions, | 67 const PpapiPermissions& permissions, |
68 bool incognito) | 68 bool incognito) |
69 : Dispatcher(get_interface, permissions), | 69 : Dispatcher(get_interface, permissions), |
70 plugin_delegate_(NULL), | 70 plugin_delegate_(NULL), |
71 received_preferences_(false), | 71 received_preferences_(false), |
72 plugin_dispatcher_id_(0), | 72 plugin_dispatcher_id_(0), |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 DLOG_IF(INFO, reply_params.sequence() != 0) | 360 DLOG_IF(INFO, reply_params.sequence() != 0) |
361 << "Pepper resource reply message received but the resource doesn't " | 361 << "Pepper resource reply message received but the resource doesn't " |
362 "exist (probably has been destroyed)."; | 362 "exist (probably has been destroyed)."; |
363 return; | 363 return; |
364 } | 364 } |
365 resource->OnReplyReceived(reply_params, nested_msg); | 365 resource->OnReplyReceived(reply_params, nested_msg); |
366 } | 366 } |
367 | 367 |
368 } // namespace proxy | 368 } // namespace proxy |
369 } // namespace ppapi | 369 } // namespace ppapi |
OLD | NEW |