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/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "googleurl/src/gurl.h" | 10 #include "googleurl/src/gurl.h" |
11 #include "webkit/fileapi/fileapi_export.h" | |
12 #include "webkit/fileapi/file_system_context.h" | |
kinuko
2012/05/29 10:55:36
Why we need this to be included?
benwells
2012/05/29 11:40:22
On Windows this was needed to compile.
I assume a
kinuko
2012/05/29 11:47:54
Ok thanks for checking!
| |
11 #include "webkit/fileapi/file_system_file_util.h" | 13 #include "webkit/fileapi/file_system_file_util.h" |
12 #include "webkit/fileapi/file_system_types.h" | 14 #include "webkit/fileapi/file_system_types.h" |
13 | 15 |
14 namespace base { | 16 namespace base { |
15 class SequencedTaskRunner; | 17 class SequencedTaskRunner; |
16 } | 18 } |
17 | 19 |
18 namespace fileapi { | 20 namespace fileapi { |
19 | 21 |
20 class FileSystemContext; | 22 class FILEAPI_EXPORT_PRIVATE FileSystemOperationContext { |
21 | |
22 class FileSystemOperationContext { | |
23 public: | 23 public: |
24 explicit FileSystemOperationContext(FileSystemContext* context); | 24 explicit FileSystemOperationContext(FileSystemContext* context); |
25 ~FileSystemOperationContext(); | 25 ~FileSystemOperationContext(); |
26 | 26 |
27 FileSystemContext* file_system_context() const { | 27 FileSystemContext* file_system_context() const { |
28 return file_system_context_.get(); | 28 return file_system_context_.get(); |
29 } | 29 } |
30 | 30 |
31 void set_allowed_bytes_growth(const int64& allowed_bytes_growth) { | 31 void set_allowed_bytes_growth(const int64& allowed_bytes_growth) { |
32 allowed_bytes_growth_ = allowed_bytes_growth; | 32 allowed_bytes_growth_ = allowed_bytes_growth; |
33 } | 33 } |
34 int64 allowed_bytes_growth() const { return allowed_bytes_growth_; } | 34 int64 allowed_bytes_growth() const { return allowed_bytes_growth_; } |
35 | 35 |
36 base::SequencedTaskRunner* file_task_runner() const; | 36 base::SequencedTaskRunner* file_task_runner() const; |
37 | 37 |
38 private: | 38 private: |
39 scoped_refptr<FileSystemContext> file_system_context_; | 39 scoped_refptr<FileSystemContext> file_system_context_; |
40 | 40 |
41 int64 allowed_bytes_growth_; | 41 int64 allowed_bytes_growth_; |
42 }; | 42 }; |
43 | 43 |
44 } // namespace fileapi | 44 } // namespace fileapi |
45 | 45 |
46 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ | 46 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ |
OLD | NEW |