| 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_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/files/file.h" | 12 #include "base/files/file.h" |
| 13 #include "base/files/file_proxy.h" | 13 #include "base/files/file_proxy.h" |
| 14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h" | 15 #include "content/browser/renderer_host/pepper/browser_ppapi_host_impl.h" |
| 16 #include "ipc/ipc_listener.h" | 16 #include "ipc/ipc_listener.h" |
| 17 #include "ipc/ipc_platform_file.h" | 17 #include "ipc/ipc_platform_file.h" |
| 18 #include "ppapi/c/pp_file_info.h" | 18 #include "ppapi/c/pp_file_info.h" |
| 19 #include "ppapi/c/pp_time.h" | 19 #include "ppapi/c/pp_time.h" |
| 20 #include "ppapi/host/host_message_context.h" | 20 #include "ppapi/host/host_message_context.h" |
| 21 #include "ppapi/host/resource_host.h" | 21 #include "ppapi/host/resource_host.h" |
| 22 #include "ppapi/shared_impl/file_io_state_manager.h" | 22 #include "ppapi/shared_impl/file_io_state_manager.h" |
| 23 #include "storage/browser/fileapi/file_system_context.h" |
| 23 #include "url/gurl.h" | 24 #include "url/gurl.h" |
| 24 #include "webkit/browser/fileapi/file_system_context.h" | |
| 25 | 25 |
| 26 namespace ppapi { | 26 namespace ppapi { |
| 27 struct FileGrowth; | 27 struct FileGrowth; |
| 28 } | 28 } |
| 29 | 29 |
| 30 namespace content { | 30 namespace content { |
| 31 class PepperFileSystemBrowserHost; | 31 class PepperFileSystemBrowserHost; |
| 32 | 32 |
| 33 class PepperFileIOHost : public ppapi::host::ResourceHost, | 33 class PepperFileIOHost : public ppapi::host::ResourceHost, |
| 34 public base::SupportsWeakPtr<PepperFileIOHost> { | 34 public base::SupportsWeakPtr<PepperFileIOHost> { |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 bool check_quota_; | 133 bool check_quota_; |
| 134 | 134 |
| 135 ppapi::FileIOStateManager state_manager_; | 135 ppapi::FileIOStateManager state_manager_; |
| 136 | 136 |
| 137 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost); | 137 DISALLOW_COPY_AND_ASSIGN(PepperFileIOHost); |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 } // namespace content | 140 } // namespace content |
| 141 | 141 |
| 142 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ | 142 #endif // CONTENT_RENDERER_PEPPER_PEPPER_FILE_IO_HOST_H_ |
| OLD | NEW |