Only sync parent directory once after a leveldb file rename.
[chromium-blink-merge.git] / webkit / fileapi / file_system_operation_context.cc
blob15daac777a6e7535f8d378c9f3564419d4226022
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 "webkit/fileapi/file_system_operation_context.h"
7 #include "base/sequenced_task_runner.h"
8 #include "webkit/fileapi/file_system_context.h"
9 #include "webkit/fileapi/file_system_task_runners.h"
11 namespace fileapi {
13 FileSystemOperationContext::FileSystemOperationContext(
14 FileSystemContext* context)
15 : file_system_context_(context),
16 task_runner_(file_system_context_->task_runners()->file_task_runner()),
17 allowed_bytes_growth_(0),
18 quota_limit_type_(quota::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_(quota::kQuotaLimitTypeUnknown) {}
28 FileSystemOperationContext::~FileSystemOperationContext() {
29 DetachUserDataThread();
30 setter_thread_checker_.DetachFromThread();
33 } // namespace fileapi