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

Unified Diff: webkit/tools/test_shell/simple_file_writer.h

Issue 15946006: Move C++ code from webkit/tools/test_shell to webkit/support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix npapi_test_plugin 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 | « webkit/tools/test_shell/simple_file_system.cc ('k') | webkit/tools/test_shell/simple_file_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/simple_file_writer.h
diff --git a/webkit/tools/test_shell/simple_file_writer.h b/webkit/tools/test_shell/simple_file_writer.h
deleted file mode 100644
index 41f11fac7dc7ab6fd2515a4739068b2acd067648..0000000000000000000000000000000000000000
--- a/webkit/tools/test_shell/simple_file_writer.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2011 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.
-
-#ifndef WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_WRITER_H_
-#define WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_WRITER_H_
-
-#include "base/memory/ref_counted.h"
-#include "base/memory/weak_ptr.h"
-#include "webkit/renderer/fileapi/webfilewriter_base.h"
-
-namespace net {
-class URLRequestContext;
-} // namespace net
-
-namespace fileapi {
-class FileSystemContext;
-}
-
-// An implementation of WebFileWriter for use in test_shell and DRT.
-class SimpleFileWriter : public fileapi::WebFileWriterBase,
- public base::SupportsWeakPtr<SimpleFileWriter> {
- public:
- SimpleFileWriter(
- const GURL& path,
- WebKit::WebFileWriterClient* client,
- fileapi::FileSystemContext* file_system_context);
- virtual ~SimpleFileWriter();
-
- // Called by SimpleResourceLoaderBridge when the context is
- // created and destroyed.
- static void InitializeOnIOThread(net::URLRequestContext* request_context) {
- request_context_ = request_context;
- }
- static void CleanupOnIOThread() {
- request_context_ = NULL;
- }
-
- protected:
- // WebFileWriterBase overrides
- virtual void DoTruncate(const GURL& path, int64 offset) OVERRIDE;
- virtual void DoWrite(const GURL& path, const GURL& blob_url,
- int64 offset) OVERRIDE;
- virtual void DoCancel() OVERRIDE;
-
- private:
- class IOThreadProxy;
- scoped_refptr<fileapi::FileSystemContext> file_system_context_;
- scoped_refptr<IOThreadProxy> io_thread_proxy_;
- static net::URLRequestContext* request_context_;
-};
-
-#endif // WEBKIT_TOOLS_TEST_SHELL_SIMPLE_FILE_WRITER_H_
« no previous file with comments | « webkit/tools/test_shell/simple_file_system.cc ('k') | webkit/tools/test_shell/simple_file_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698