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

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

Issue 15806016: Update ppapi/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
« no previous file with comments | « ppapi/proxy/pdf_resource.cc ('k') | ppapi/proxy/plugin_globals.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « ppapi/proxy/pdf_resource.cc ('k') | ppapi/proxy/plugin_globals.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698