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

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

Issue 113363004: PPAPI: Add new PPB_FileRef.MakeDirectory to support exclusive operation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 6 years, 11 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_INTERNAL_FILE_REF_BACKEND_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_INTERNAL_FILE_REF_BACKEND_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_INTERNAL_FILE_REF_BACKEND_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_INTERNAL_FILE_REF_BACKEND_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/browser/renderer_host/pepper/pepper_file_ref_host.h" 10 #include "content/browser/renderer_host/pepper/pepper_file_ref_host.h"
(...skipping 14 matching lines...) Expand all
25 public: 25 public:
26 PepperInternalFileRefBackend( 26 PepperInternalFileRefBackend(
27 ppapi::host::PpapiHost* host, 27 ppapi::host::PpapiHost* host,
28 int render_process_id, 28 int render_process_id,
29 base::WeakPtr<PepperFileSystemBrowserHost> fs_host, 29 base::WeakPtr<PepperFileSystemBrowserHost> fs_host,
30 const std::string& path); 30 const std::string& path);
31 virtual ~PepperInternalFileRefBackend(); 31 virtual ~PepperInternalFileRefBackend();
32 32
33 // PepperFileRefBackend overrides. 33 // PepperFileRefBackend overrides.
34 virtual int32_t MakeDirectory(ppapi::host::ReplyMessageContext context, 34 virtual int32_t MakeDirectory(ppapi::host::ReplyMessageContext context,
35 bool exclusive,
35 bool make_ancestors) OVERRIDE; 36 bool make_ancestors) OVERRIDE;
36 virtual int32_t Touch(ppapi::host::ReplyMessageContext context, 37 virtual int32_t Touch(ppapi::host::ReplyMessageContext context,
37 PP_Time last_accessed_time, 38 PP_Time last_accessed_time,
38 PP_Time last_modified_time) OVERRIDE; 39 PP_Time last_modified_time) OVERRIDE;
39 virtual int32_t Delete(ppapi::host::ReplyMessageContext context) OVERRIDE; 40 virtual int32_t Delete(ppapi::host::ReplyMessageContext context) OVERRIDE;
40 virtual int32_t Rename(ppapi::host::ReplyMessageContext context, 41 virtual int32_t Rename(ppapi::host::ReplyMessageContext context,
41 PepperFileRefHost* new_file_ref) OVERRIDE; 42 PepperFileRefHost* new_file_ref) OVERRIDE;
42 virtual int32_t Query(ppapi::host::ReplyMessageContext context) OVERRIDE; 43 virtual int32_t Query(ppapi::host::ReplyMessageContext context) OVERRIDE;
43 virtual int32_t ReadDirectoryEntries( 44 virtual int32_t ReadDirectoryEntries(
44 ppapi::host::ReplyMessageContext context) OVERRIDE; 45 ppapi::host::ReplyMessageContext context) OVERRIDE;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 mutable fileapi::FileSystemURL fs_url_; 81 mutable fileapi::FileSystemURL fs_url_;
81 82
82 base::WeakPtrFactory<PepperInternalFileRefBackend> weak_factory_; 83 base::WeakPtrFactory<PepperInternalFileRefBackend> weak_factory_;
83 84
84 DISALLOW_COPY_AND_ASSIGN(PepperInternalFileRefBackend); 85 DISALLOW_COPY_AND_ASSIGN(PepperInternalFileRefBackend);
85 }; 86 };
86 87
87 } // namespace content 88 } // namespace content
88 89
89 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_INTERNAL_FILE_REF_BACKEND _H_ 90 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_INTERNAL_FILE_REF_BACKEND _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698