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

Side by Side Diff: content/browser/renderer_host/pepper/pepper_internal_file_ref_backend.cc

Issue 17948002: Update Linux to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/browser/renderer_host/pepper/pepper_internal_file_ref_backend. h" 5 #include "content/browser/renderer_host/pepper/pepper_internal_file_ref_backend. h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 238
239 int32_t PepperInternalFileRefBackend::GetAbsolutePath( 239 int32_t PepperInternalFileRefBackend::GetAbsolutePath(
240 ppapi::host::ReplyMessageContext reply_context) { 240 ppapi::host::ReplyMessageContext reply_context) {
241 host_->SendReply(reply_context, 241 host_->SendReply(reply_context,
242 PpapiPluginMsg_FileRef_GetAbsolutePathReply(path_)); 242 PpapiPluginMsg_FileRef_GetAbsolutePathReply(path_));
243 return PP_OK_COMPLETIONPENDING; 243 return PP_OK_COMPLETIONPENDING;
244 } 244 }
245 245
246 int32_t PepperInternalFileRefBackend::HasPermissions(int permissions) const { 246 int32_t PepperInternalFileRefBackend::HasPermissions(int permissions) const {
247 base::PlatformFileError error; 247 base::PlatformFileError error;
248 CheckFileSystemPermissionsForProcess(GetFileSystemContext(), 248 CheckFileSystemPermissionsForProcess(GetFileSystemContext().get(),
249 render_process_id_, 249 render_process_id_,
250 GetFileSystemURL(), 250 GetFileSystemURL(),
251 permissions, 251 permissions,
252 &error); 252 &error);
253 return ppapi::PlatformFileErrorToPepperError(error); 253 return ppapi::PlatformFileErrorToPepperError(error);
254 } 254 }
255 255
256 } // namespace content 256 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698