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

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

Issue 14188019: CRX FileSystem Pepper private API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
« no previous file with comments | « ppapi/proxy/file_system_resource.h ('k') | ppapi/proxy/interface_list.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "ppapi/proxy/file_system_resource.h" 5 #include "ppapi/proxy/file_system_resource.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "ipc/ipc_message.h" 8 #include "ipc/ipc_message.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/proxy/ppapi_messages.h" 10 #include "ppapi/proxy/ppapi_messages.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 base::Bind(&FileSystemResource::OpenComplete, 43 base::Bind(&FileSystemResource::OpenComplete,
44 this, 44 this,
45 callback)); 45 callback));
46 return PP_OK_COMPLETIONPENDING; 46 return PP_OK_COMPLETIONPENDING;
47 } 47 }
48 48
49 PP_FileSystemType FileSystemResource::GetType() { 49 PP_FileSystemType FileSystemResource::GetType() {
50 return type_; 50 return type_;
51 } 51 }
52 52
53 void FileSystemResource::InitIsolatedFileSystem(const char* fsid) {
54 Post(RENDERER,
55 PpapiHostMsg_FileSystem_InitIsolatedFileSystem(std::string(fsid)));
56 }
57
53 void FileSystemResource::OpenComplete( 58 void FileSystemResource::OpenComplete(
54 scoped_refptr<TrackedCallback> callback, 59 scoped_refptr<TrackedCallback> callback,
55 const ResourceMessageReplyParams& params) { 60 const ResourceMessageReplyParams& params) {
56 callback->Run(params.result()); 61 callback->Run(params.result());
57 } 62 }
58 63
59 } // namespace proxy 64 } // namespace proxy
60 } // namespace ppapi 65 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/file_system_resource.h ('k') | ppapi/proxy/interface_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698