We started redesigning GpuMemoryBuffer interface to handle multiple buffers [0].
[chromium-blink-merge.git] / storage / browser / fileapi / file_system_operation_context.cc
blobb392d7be5f94dca20054447cbf507677c9c87bd5
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
3 // found in the LICENSE file.
5 #include "storage/browser/fileapi/file_system_operation_context.h"
7 #include "base/sequenced_task_runner.h"
8 #include "storage/browser/fileapi/file_system_context.h"
10 namespace storage {
12 FileSystemOperationContext::FileSystemOperationContext(
13 FileSystemContext* context)
14 : file_system_context_(context),
15 task_runner_(file_system_context_->default_file_task_runner()),
16 allowed_bytes_growth_(0),
17 quota_limit_type_(storage::kQuotaLimitTypeUnknown) {
20 FileSystemOperationContext::FileSystemOperationContext(
21 FileSystemContext* context,
22 base::SequencedTaskRunner* task_runner)
23 : file_system_context_(context),
24 task_runner_(task_runner),
25 allowed_bytes_growth_(0),
26 quota_limit_type_(storage::kQuotaLimitTypeUnknown) {
29 FileSystemOperationContext::~FileSystemOperationContext() {
30 DetachUserDataThread();
31 setter_thread_checker_.DetachFromThread();
34 } // namespace storage