| OLD | NEW |
| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 const IPC::Message& msg, | 58 const IPC::Message& msg, |
| 59 base::File::Error 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::File::Error error, | 64 base::File::Error error, |
| 65 const base::File::Info& 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 fileapi::FileSystemOperation::FileEntryList* accumulated_file_list, |
| 68 base::File::Error error, | 69 base::File::Error error, |
| 69 const fileapi::FileSystemOperation::FileEntryList& file_list, | 70 const fileapi::FileSystemOperation::FileEntryList& file_list, |
| 70 bool has_more); | 71 bool has_more); |
| 71 | 72 |
| 72 scoped_refptr<fileapi::FileSystemContext> GetFileSystemContext() const; | 73 scoped_refptr<fileapi::FileSystemContext> GetFileSystemContext() const; |
| 73 | 74 |
| 74 ppapi::host::PpapiHost* host_; | 75 ppapi::host::PpapiHost* host_; |
| 75 int render_process_id_; | 76 int render_process_id_; |
| 76 base::WeakPtr<PepperFileSystemBrowserHost> fs_host_; | 77 base::WeakPtr<PepperFileSystemBrowserHost> fs_host_; |
| 77 PP_FileSystemType fs_type_; | 78 PP_FileSystemType fs_type_; |
| 78 std::string path_; | 79 std::string path_; |
| 79 | 80 |
| 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_ |
| OLD | NEW |