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

Unified Diff: webkit/blob/mock_blob_url_request_context.h

Issue 15746017: Move webkit/blob to new locations. (Closed) Base URL: svn://chrome-svn/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 | « webkit/blob/local_file_stream_reader_unittest.cc ('k') | webkit/blob/mock_blob_url_request_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/blob/mock_blob_url_request_context.h
===================================================================
--- webkit/blob/mock_blob_url_request_context.h (revision 202679)
+++ webkit/blob/mock_blob_url_request_context.h (working copy)
@@ -1,52 +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.
-
-#ifndef WEBKIT_BLOB_MOCK_BLOB_URL_REQUEST_CONTEXT_H_
-#define WEBKIT_BLOB_MOCK_BLOB_URL_REQUEST_CONTEXT_H_
-
-#include "net/url_request/url_request_context.h"
-#include "net/url_request/url_request_job.h"
-#include "net/url_request/url_request_job_factory_impl.h"
-
-namespace fileapi {
-class FileSystemContext;
-}
-
-namespace webkit_blob {
-
-class BlobStorageController;
-
-class MockBlobURLRequestContext : public net::URLRequestContext {
- public:
- MockBlobURLRequestContext(fileapi::FileSystemContext* file_system_context);
- virtual ~MockBlobURLRequestContext();
-
- BlobStorageController* blob_storage_controller() const {
- return blob_storage_controller_.get();
- }
-
- private:
- net::URLRequestJobFactoryImpl job_factory_;
- scoped_ptr<BlobStorageController> blob_storage_controller_;
-
- DISALLOW_COPY_AND_ASSIGN(MockBlobURLRequestContext);
-};
-
-class ScopedTextBlob {
- public:
- ScopedTextBlob(const MockBlobURLRequestContext& request_context,
- const GURL& blob_url,
- const std::string& data);
- ~ScopedTextBlob();
-
- private:
- const GURL blob_url_;
- BlobStorageController* blob_storage_controller_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedTextBlob);
-};
-
-} // namespace webkit_blob
-
-#endif // WEBKIT_BLOB_MOCK_BLOB_URL_REQUEST_CONTEXT_H_
« no previous file with comments | « webkit/blob/local_file_stream_reader_unittest.cc ('k') | webkit/blob/mock_blob_url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698