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

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

Issue 10829147: Make MediaFileUtil run on thread pool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update comment Created 8 years, 4 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
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"
(...skipping 17 matching lines...) Expand all
28 28
29 FileSystemContext* file_system_context() const { 29 FileSystemContext* file_system_context() const {
30 return file_system_context_.get(); 30 return file_system_context_.get();
31 } 31 }
32 32
33 void set_allowed_bytes_growth(const int64& allowed_bytes_growth) { 33 void set_allowed_bytes_growth(const int64& allowed_bytes_growth) {
34 allowed_bytes_growth_ = allowed_bytes_growth; 34 allowed_bytes_growth_ = allowed_bytes_growth;
35 } 35 }
36 int64 allowed_bytes_growth() const { return allowed_bytes_growth_; } 36 int64 allowed_bytes_growth() const { return allowed_bytes_growth_; }
37 37
38 base::SequencedTaskRunner* file_task_runner() const; 38 base::SequencedTaskRunner* task_runner() const {
39 return task_runner_.get();
40 }
41
42 void SetTaskRunner(base::SequencedTaskRunner* task_runner);
kinuko 2012/08/02 21:12:46 Please add comment which task runner we use if it'
tzik 2012/08/03 22:29:19 Done.
39 43
40 void set_media_path_filter(MediaPathFilter* media_path_filter) { 44 void set_media_path_filter(MediaPathFilter* media_path_filter) {
41 media_path_filter_ = media_path_filter; 45 media_path_filter_ = media_path_filter;
42 } 46 }
43 47
44 MediaPathFilter* media_path_filter() { 48 MediaPathFilter* media_path_filter() {
45 return media_path_filter_; 49 return media_path_filter_;
46 } 50 }
47 51
48 private: 52 private:
49 scoped_refptr<FileSystemContext> file_system_context_; 53 scoped_refptr<FileSystemContext> file_system_context_;
54 scoped_refptr<base::SequencedTaskRunner> task_runner_;
50 55
51 int64 allowed_bytes_growth_; 56 int64 allowed_bytes_growth_;
52 MediaPathFilter* media_path_filter_; 57 MediaPathFilter* media_path_filter_;
53 }; 58 };
54 59
55 } // namespace fileapi 60 } // namespace fileapi
56 61
57 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_ 62 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698