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

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

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 #include "webkit/browser/fileapi/file_system_operation_context.h" 5 #include "storage/browser/fileapi/file_system_operation_context.h"
6 6
7 #include "base/sequenced_task_runner.h" 7 #include "base/sequenced_task_runner.h"
8 #include "webkit/browser/fileapi/file_system_context.h" 8 #include "storage/browser/fileapi/file_system_context.h"
9 9
10 namespace storage { 10 namespace storage {
11 11
12 FileSystemOperationContext::FileSystemOperationContext( 12 FileSystemOperationContext::FileSystemOperationContext(
13 FileSystemContext* context) 13 FileSystemContext* context)
14 : file_system_context_(context), 14 : file_system_context_(context),
15 task_runner_(file_system_context_->default_file_task_runner()), 15 task_runner_(file_system_context_->default_file_task_runner()),
16 allowed_bytes_growth_(0), 16 allowed_bytes_growth_(0),
17 quota_limit_type_(storage::kQuotaLimitTypeUnknown) { 17 quota_limit_type_(storage::kQuotaLimitTypeUnknown) {
18 } 18 }
19 19
20 FileSystemOperationContext::FileSystemOperationContext( 20 FileSystemOperationContext::FileSystemOperationContext(
21 FileSystemContext* context, 21 FileSystemContext* context,
22 base::SequencedTaskRunner* task_runner) 22 base::SequencedTaskRunner* task_runner)
23 : file_system_context_(context), 23 : file_system_context_(context),
24 task_runner_(task_runner), 24 task_runner_(task_runner),
25 allowed_bytes_growth_(0), 25 allowed_bytes_growth_(0),
26 quota_limit_type_(storage::kQuotaLimitTypeUnknown) { 26 quota_limit_type_(storage::kQuotaLimitTypeUnknown) {
27 } 27 }
28 28
29 FileSystemOperationContext::~FileSystemOperationContext() { 29 FileSystemOperationContext::~FileSystemOperationContext() {
30 DetachUserDataThread(); 30 DetachUserDataThread();
31 setter_thread_checker_.DetachFromThread(); 31 setter_thread_checker_.DetachFromThread();
32 } 32 }
33 33
34 } // namespace storage 34 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698