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

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

Issue 10829147: Make MediaFileUtil run on thread pool. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix for windows 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 #include "webkit/fileapi/file_system_operation_context.h" 5 #include "webkit/fileapi/file_system_operation_context.h"
6 6
7 #include "base/single_thread_task_runner.h"
7 #include "webkit/fileapi/file_system_context.h" 8 #include "webkit/fileapi/file_system_context.h"
9 #include "webkit/fileapi/file_system_task_runners.h"
8 10
9 namespace fileapi { 11 namespace fileapi {
10 12
11 FileSystemOperationContext::FileSystemOperationContext( 13 FileSystemOperationContext::FileSystemOperationContext(
12 FileSystemContext* context) 14 FileSystemContext* context)
13 : file_system_context_(context), 15 : file_system_context_(context),
16 task_runner_(file_system_context_->task_runners()->file_task_runner()),
14 allowed_bytes_growth_(0) {} 17 allowed_bytes_growth_(0) {}
15 18
16 FileSystemOperationContext::~FileSystemOperationContext() {} 19 FileSystemOperationContext::~FileSystemOperationContext() {}
17 20
18 base::SequencedTaskRunner* 21 void FileSystemOperationContext::set_task_runner(
19 FileSystemOperationContext::file_task_runner() const { 22 base::SequencedTaskRunner* task_runner) {
20 return file_system_context_->file_task_runner(); 23 task_runner_ = task_runner;
21 } 24 }
22 25
23 } // namespace fileapi 26 } // namespace fileapi
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_operation_context.h ('k') | webkit/fileapi/file_system_quota_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698