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

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

Issue 18580012: Cleanup: return value and null-callback fixups on AsyncFileUtil interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment fix Created 7 years, 5 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/browser/fileapi/async_file_util_adapter.cc ('k') | no next file » | 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_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/supports_user_data.h" 9 #include "base/supports_user_data.h"
10 #include "base/threading/thread_checker.h" 10 #include "base/threading/thread_checker.h"
(...skipping 14 matching lines...) Expand all
25 // multiple operations as far as those operations are supposed to share 25 // multiple operations as far as those operations are supposed to share
26 // the same context (e.g. use the same task runner, share the quota etc). 26 // the same context (e.g. use the same task runner, share the quota etc).
27 // Note that the remaining quota bytes (allowed_bytes_growth) may be 27 // Note that the remaining quota bytes (allowed_bytes_growth) may be
28 // updated during the execution of write operations. 28 // updated during the execution of write operations.
29 class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE FileSystemOperationContext 29 class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE FileSystemOperationContext
30 : public base::SupportsUserData { 30 : public base::SupportsUserData {
31 public: 31 public:
32 explicit FileSystemOperationContext(FileSystemContext* context); 32 explicit FileSystemOperationContext(FileSystemContext* context);
33 33
34 // Specifies |task_runner| which the operation is performed on. 34 // Specifies |task_runner| which the operation is performed on.
35 // The backend of |task_runner| must outlive the IO thread.
35 FileSystemOperationContext(FileSystemContext* context, 36 FileSystemOperationContext(FileSystemContext* context,
36 base::SequencedTaskRunner* task_runner); 37 base::SequencedTaskRunner* task_runner);
37 38
38 virtual ~FileSystemOperationContext(); 39 virtual ~FileSystemOperationContext();
39 40
40 FileSystemContext* file_system_context() const { 41 FileSystemContext* file_system_context() const {
41 return file_system_context_.get(); 42 return file_system_context_.get();
42 } 43 }
43 44
44 // Updates the current remaining quota. 45 // Updates the current remaining quota.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 119
119 // Used to check its setters are not called on arbitrary thread. 120 // Used to check its setters are not called on arbitrary thread.
120 base::ThreadChecker setter_thread_checker_; 121 base::ThreadChecker setter_thread_checker_;
121 122
122 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationContext); 123 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationContext);
123 }; 124 };
124 125
125 } // namespace fileapi 126 } // namespace fileapi
126 127
127 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ 128 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/async_file_util_adapter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698