| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ |
| 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "webkit/fileapi/file_system_context.h" | 9 #include "webkit/fileapi/file_system_context.h" |
| 10 #include "webkit/fileapi/fileapi_export.h" | |
| 11 #include "webkit/fileapi/media/mtp_device_file_system_config.h" | 10 #include "webkit/fileapi/media/mtp_device_file_system_config.h" |
| 12 #include "webkit/fileapi/task_runner_bound_observer_list.h" | 11 #include "webkit/fileapi/task_runner_bound_observer_list.h" |
| 12 #include "webkit/storage/webkit_storage_export.h" |
| 13 | 13 |
| 14 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) | 14 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) |
| 15 #include "webkit/fileapi/media/mtp_device_delegate.h" | 15 #include "webkit/fileapi/media/mtp_device_delegate.h" |
| 16 #endif | 16 #endif |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class SequencedTaskRunner; | 19 class SequencedTaskRunner; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace fileapi { | 22 namespace fileapi { |
| 23 | 23 |
| 24 class MediaPathFilter; | 24 class MediaPathFilter; |
| 25 | 25 |
| 26 class FILEAPI_EXPORT_PRIVATE FileSystemOperationContext { | 26 class WEBKIT_STORAGE_EXPORT_PRIVATE FileSystemOperationContext { |
| 27 public: | 27 public: |
| 28 explicit FileSystemOperationContext(FileSystemContext* context); | 28 explicit FileSystemOperationContext(FileSystemContext* context); |
| 29 ~FileSystemOperationContext(); | 29 ~FileSystemOperationContext(); |
| 30 | 30 |
| 31 FileSystemContext* file_system_context() const { | 31 FileSystemContext* file_system_context() const { |
| 32 return file_system_context_.get(); | 32 return file_system_context_.get(); |
| 33 } | 33 } |
| 34 | 34 |
| 35 void set_allowed_bytes_growth(const int64& allowed_bytes_growth) { | 35 void set_allowed_bytes_growth(const int64& allowed_bytes_growth) { |
| 36 allowed_bytes_growth_ = allowed_bytes_growth; | 36 allowed_bytes_growth_ = allowed_bytes_growth; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) | 93 #if defined(SUPPORT_MTP_DEVICE_FILESYSTEM) |
| 94 // Store the current mtp device delegate. | 94 // Store the current mtp device delegate. |
| 95 scoped_refptr<MtpDeviceDelegate> mtp_device_delegate_; | 95 scoped_refptr<MtpDeviceDelegate> mtp_device_delegate_; |
| 96 #endif | 96 #endif |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 } // namespace fileapi | 99 } // namespace fileapi |
| 100 | 100 |
| 101 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ | 101 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ |
| OLD | NEW |