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

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

Issue 669603008: Standardize usage of virtual/override/final in storage/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_
6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ 6 #define STORAGE_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 18 matching lines...) Expand all
29 class STORAGE_EXPORT_PRIVATE FileSystemOperationContext 29 class STORAGE_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 // The backend of |task_runner| must outlive the IO thread.
36 FileSystemOperationContext(FileSystemContext* context, 36 FileSystemOperationContext(FileSystemContext* context,
37 base::SequencedTaskRunner* task_runner); 37 base::SequencedTaskRunner* task_runner);
38 38
39 virtual ~FileSystemOperationContext(); 39 ~FileSystemOperationContext() override;
40 40
41 FileSystemContext* file_system_context() const { 41 FileSystemContext* file_system_context() const {
42 return file_system_context_.get(); 42 return file_system_context_.get();
43 } 43 }
44 44
45 // Updates the current remaining quota. 45 // Updates the current remaining quota.
46 // This can be called to update the remaining quota during the operation. 46 // This can be called to update the remaining quota during the operation.
47 void set_allowed_bytes_growth(const int64& allowed_bytes_growth) { 47 void set_allowed_bytes_growth(const int64& allowed_bytes_growth) {
48 allowed_bytes_growth_ = allowed_bytes_growth; 48 allowed_bytes_growth_ = allowed_bytes_growth;
49 } 49 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 // Used to check its setters are not called on arbitrary thread. 89 // Used to check its setters are not called on arbitrary thread.
90 base::ThreadChecker setter_thread_checker_; 90 base::ThreadChecker setter_thread_checker_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationContext); 92 DISALLOW_COPY_AND_ASSIGN(FileSystemOperationContext);
93 }; 93 };
94 94
95 } // namespace storage 95 } // namespace storage
96 96
97 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ 97 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_
OLDNEW
« no previous file with comments | « storage/browser/fileapi/file_system_file_util.h ('k') | storage/browser/fileapi/file_system_operation_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698