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

Side by Side Diff: webkit/fileapi/file_system_operation_context.h

Issue 10447055: Move fileapi into its own component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 8 years, 6 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
« no previous file with comments | « webkit/fileapi/file_system_operation.h ('k') | webkit/fileapi/file_system_options.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
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_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_operation.h ('k') | webkit/fileapi/file_system_options.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698