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

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

Issue 145303002: Convert Media Galleries to use base::File (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 10 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 virtual int32_t CanRead() const OVERRIDE; 50 virtual int32_t CanRead() const OVERRIDE;
51 virtual int32_t CanWrite() const OVERRIDE; 51 virtual int32_t CanWrite() const OVERRIDE;
52 virtual int32_t CanCreate() const OVERRIDE; 52 virtual int32_t CanCreate() const OVERRIDE;
53 virtual int32_t CanReadWrite() const OVERRIDE; 53 virtual int32_t CanReadWrite() const OVERRIDE;
54 54
55 private: 55 private:
56 // Generic reply callback. 56 // Generic reply callback.
57 void DidFinish(ppapi::host::ReplyMessageContext reply_context, 57 void DidFinish(ppapi::host::ReplyMessageContext reply_context,
58 const IPC::Message& msg, 58 const IPC::Message& msg,
59 base::PlatformFileError error); 59 base::File::Error error);
60 60
61 // Operation specific callbacks. 61 // Operation specific callbacks.
62 void GetMetadataComplete( 62 void GetMetadataComplete(
63 ppapi::host::ReplyMessageContext reply_context, 63 ppapi::host::ReplyMessageContext reply_context,
64 base::PlatformFileError error, 64 base::File::Error error,
65 const base::PlatformFileInfo& file_info); 65 const base::File::Info& file_info);
66 void ReadDirectoryComplete( 66 void ReadDirectoryComplete(
67 ppapi::host::ReplyMessageContext context, 67 ppapi::host::ReplyMessageContext context,
68 base::PlatformFileError error, 68 base::File::Error error,
69 const fileapi::FileSystemOperation::FileEntryList& file_list, 69 const fileapi::FileSystemOperation::FileEntryList& file_list,
70 bool has_more); 70 bool has_more);
71 71
72 scoped_refptr<fileapi::FileSystemContext> GetFileSystemContext() const; 72 scoped_refptr<fileapi::FileSystemContext> GetFileSystemContext() const;
73 73
74 ppapi::host::PpapiHost* host_; 74 ppapi::host::PpapiHost* host_;
75 int render_process_id_; 75 int render_process_id_;
76 base::WeakPtr<PepperFileSystemBrowserHost> fs_host_; 76 base::WeakPtr<PepperFileSystemBrowserHost> fs_host_;
77 PP_FileSystemType fs_type_; 77 PP_FileSystemType fs_type_;
78 std::string path_; 78 std::string path_;
79 79
80 mutable fileapi::FileSystemURL fs_url_; 80 mutable fileapi::FileSystemURL fs_url_;
81 81
82 base::WeakPtrFactory<PepperInternalFileRefBackend> weak_factory_; 82 base::WeakPtrFactory<PepperInternalFileRefBackend> weak_factory_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(PepperInternalFileRefBackend); 84 DISALLOW_COPY_AND_ASSIGN(PepperInternalFileRefBackend);
85 }; 85 };
86 86
87 } // namespace content 87 } // namespace content
88 88
89 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_INTERNAL_FILE_REF_BACKEND _H_ 89 #endif // CONTENT_BROWSER_RENDERER_HOST_PEPPER_PEPPER_INTERNAL_FILE_REF_BACKEND _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698