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

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

Issue 26308002: Fix some WeakPtrFactory members that aren't last (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix weak ptr initialization Created 7 years, 2 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/ppb_var_deprecated_proxy.h ('k') | ppapi/shared_impl/resource_tracker.h » ('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/ppb_var_deprecated_proxy.h" 5 #include "ppapi/proxy/ppb_var_deprecated_proxy.h"
6 6
7 #include <stdlib.h> // For malloc 7 #include <stdlib.h> // For malloc
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 278
279 InterfaceProxy* CreateVarDeprecatedProxy(Dispatcher* dispatcher) { 279 InterfaceProxy* CreateVarDeprecatedProxy(Dispatcher* dispatcher) {
280 return new PPB_Var_Deprecated_Proxy(dispatcher ); 280 return new PPB_Var_Deprecated_Proxy(dispatcher );
281 } 281 }
282 282
283 } // namespace 283 } // namespace
284 284
285 PPB_Var_Deprecated_Proxy::PPB_Var_Deprecated_Proxy( 285 PPB_Var_Deprecated_Proxy::PPB_Var_Deprecated_Proxy(
286 Dispatcher* dispatcher) 286 Dispatcher* dispatcher)
287 : InterfaceProxy(dispatcher), 287 : InterfaceProxy(dispatcher),
288 task_factory_(this), 288 ppb_var_impl_(NULL),
289 ppb_var_impl_(NULL) { 289 task_factory_(this) {
290 if (!dispatcher->IsPlugin()) { 290 if (!dispatcher->IsPlugin()) {
291 ppb_var_impl_ = static_cast<const PPB_Var_Deprecated*>( 291 ppb_var_impl_ = static_cast<const PPB_Var_Deprecated*>(
292 dispatcher->local_get_interface()(PPB_VAR_DEPRECATED_INTERFACE)); 292 dispatcher->local_get_interface()(PPB_VAR_DEPRECATED_INTERFACE));
293 } 293 }
294 } 294 }
295 295
296 PPB_Var_Deprecated_Proxy::~PPB_Var_Deprecated_Proxy() { 296 PPB_Var_Deprecated_Proxy::~PPB_Var_Deprecated_Proxy() {
297 } 297 }
298 298
299 // static 299 // static
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 } 529 }
530 530
531 void PPB_Var_Deprecated_Proxy::DoReleaseObject(int64 object_id) { 531 void PPB_Var_Deprecated_Proxy::DoReleaseObject(int64 object_id) {
532 PP_Var var = { PP_VARTYPE_OBJECT }; 532 PP_Var var = { PP_VARTYPE_OBJECT };
533 var.value.as_id = object_id; 533 var.value.as_id = object_id;
534 ppb_var_impl_->Release(var); 534 ppb_var_impl_->Release(var);
535 } 535 }
536 536
537 } // namespace proxy 537 } // namespace proxy
538 } // namespace ppapi 538 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_var_deprecated_proxy.h ('k') | ppapi/shared_impl/resource_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698