blob: 3866bf0d4ef98b96cf9d1f04bc0e9633b3feeb86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "webkit/browser/fileapi/file_system_operation_context.h"
#include "base/sequenced_task_runner.h"
#include "webkit/browser/fileapi/file_system_context.h"
#include "webkit/browser/fileapi/file_system_task_runners.h"
namespace fileapi {
FileSystemOperationContext::FileSystemOperationContext(
FileSystemContext* context)
: file_system_context_(context),
task_runner_(file_system_context_->task_runners()->file_task_runner()),
allowed_bytes_growth_(0),
quota_limit_type_(quota::kQuotaLimitTypeUnknown) {}
FileSystemOperationContext::FileSystemOperationContext(
FileSystemContext* context,
base::SequencedTaskRunner* task_runner)
: file_system_context_(context),
task_runner_(task_runner),
allowed_bytes_growth_(0),
quota_limit_type_(quota::kQuotaLimitTypeUnknown) {}
FileSystemOperationContext::~FileSystemOperationContext() {
DetachUserDataThread();
setter_thread_checker_.DetachFromThread();
}
} // namespace fileapi
|