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

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

Issue 14307011: ppapi: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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_broker_proxy.cc ('k') | ppapi/proxy/ppb_graphics_3d_proxy.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/ppb_file_ref_proxy.h" 5 #include "ppapi/proxy/ppb_file_ref_proxy.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "ppapi/c/pp_errors.h" 10 #include "ppapi/c/pp_errors.h"
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // In extreme cases the IDs may wrap around, so avoid duplicates. 198 // In extreme cases the IDs may wrap around, so avoid duplicates.
199 while (pending_callbacks_.count(next_callback_id_)) 199 while (pending_callbacks_.count(next_callback_id_))
200 ++next_callback_id_; 200 ++next_callback_id_;
201 201
202 pending_callbacks_[next_callback_id_] = callback; 202 pending_callbacks_[next_callback_id_] = callback;
203 return next_callback_id_++; 203 return next_callback_id_++;
204 } 204 }
205 205
206 PPB_FileRef_Proxy::PPB_FileRef_Proxy(Dispatcher* dispatcher) 206 PPB_FileRef_Proxy::PPB_FileRef_Proxy(Dispatcher* dispatcher)
207 : InterfaceProxy(dispatcher), 207 : InterfaceProxy(dispatcher),
208 callback_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) { 208 callback_factory_(this) {
209 } 209 }
210 210
211 PPB_FileRef_Proxy::~PPB_FileRef_Proxy() { 211 PPB_FileRef_Proxy::~PPB_FileRef_Proxy() {
212 } 212 }
213 213
214 // static 214 // static
215 PP_Resource PPB_FileRef_Proxy::CreateProxyResource(PP_Instance instance, 215 PP_Resource PPB_FileRef_Proxy::CreateProxyResource(PP_Instance instance,
216 PP_Resource file_system, 216 PP_Resource file_system,
217 const char* path) { 217 const char* path) {
218 PPB_FileRef_CreateInfo create_info; 218 PPB_FileRef_CreateInfo create_info;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 const HostResource& host_resource, 389 const HostResource& host_resource,
390 base::internal::OwnedWrapper<PP_FileInfo> info, 390 base::internal::OwnedWrapper<PP_FileInfo> info,
391 uint32_t callback_id) { 391 uint32_t callback_id) {
392 Send(new PpapiMsg_PPBFileRef_QueryCallbackComplete( 392 Send(new PpapiMsg_PPBFileRef_QueryCallbackComplete(
393 API_ID_PPB_FILE_REF, host_resource, *info.get(), callback_id, result)); 393 API_ID_PPB_FILE_REF, host_resource, *info.get(), callback_id, result));
394 } 394 }
395 #endif // !defined(OS_NACL) 395 #endif // !defined(OS_NACL)
396 396
397 } // namespace proxy 397 } // namespace proxy
398 } // namespace ppapi 398 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_broker_proxy.cc ('k') | ppapi/proxy/ppb_graphics_3d_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698