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

Unified Diff: content/common_child/fileapi/webfilewriter_impl.cc

Issue 16325022: move content/common_child to content/child (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common_child/fileapi/webfilewriter_impl.h ('k') | content/common_child/indexed_db/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common_child/fileapi/webfilewriter_impl.cc
diff --git a/content/common_child/fileapi/webfilewriter_impl.cc b/content/common_child/fileapi/webfilewriter_impl.cc
deleted file mode 100644
index 16de6e13b6c44dbe2e80b413bc53655eb20608d9..0000000000000000000000000000000000000000
--- a/content/common_child/fileapi/webfilewriter_impl.cc
+++ /dev/null
@@ -1,51 +0,0 @@
-// 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 "content/common_child/fileapi/webfilewriter_impl.h"
-
-#include "base/bind.h"
-#include "content/common/child_thread.h"
-#include "content/common/fileapi/file_system_dispatcher.h"
-
-namespace content {
-
-namespace {
-
-inline FileSystemDispatcher* GetFileSystemDispatcher() {
- return ChildThread::current()->file_system_dispatcher();
-}
-
-} // namespace
-
-WebFileWriterImpl::WebFileWriterImpl(
- const GURL& path, WebKit::WebFileWriterClient* client)
- : WebFileWriterBase(path, client),
- request_id_(0) {
-}
-
-WebFileWriterImpl::~WebFileWriterImpl() {
-}
-
-void WebFileWriterImpl::DoTruncate(const GURL& path, int64 offset) {
- // The FileSystemDispatcher takes ownership of the CallbackDispatcher.
- GetFileSystemDispatcher()->Truncate(
- path, offset, &request_id_,
- base::Bind(&WebFileWriterImpl::DidFinish, AsWeakPtr()));
-}
-
-void WebFileWriterImpl::DoWrite(
- const GURL& path, const GURL& blob_url, int64 offset) {
- GetFileSystemDispatcher()->Write(
- path, blob_url, offset, &request_id_,
- base::Bind(&WebFileWriterImpl::DidWrite, AsWeakPtr()),
- base::Bind(&WebFileWriterImpl::DidFinish, AsWeakPtr()));
-}
-
-void WebFileWriterImpl::DoCancel() {
- GetFileSystemDispatcher()->Cancel(
- request_id_,
- base::Bind(&WebFileWriterImpl::DidFinish, AsWeakPtr()));
-}
-
-} // namespace content
« no previous file with comments | « content/common_child/fileapi/webfilewriter_impl.h ('k') | content/common_child/indexed_db/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698