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

Side by Side 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, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #ifndef WEBKIT_BLOB_MOCK_BLOB_URL_REQUEST_CONTEXT_H_
6 #define WEBKIT_BLOB_MOCK_BLOB_URL_REQUEST_CONTEXT_H_
7
8 #include "net/url_request/url_request_context.h"
9 #include "net/url_request/url_request_job.h"
10 #include "net/url_request/url_request_job_factory_impl.h"
11
12 namespace fileapi {
13 class FileSystemContext;
14 }
15
16 namespace webkit_blob {
17
18 class BlobStorageController;
19
20 class MockBlobURLRequestContext : public net::URLRequestContext {
21 public:
22 MockBlobURLRequestContext(fileapi::FileSystemContext* file_system_context);
23 virtual ~MockBlobURLRequestContext();
24
25 BlobStorageController* blob_storage_controller() const {
26 return blob_storage_controller_.get();
27 }
28
29 private:
30 net::URLRequestJobFactoryImpl job_factory_;
31 scoped_ptr<BlobStorageController> blob_storage_controller_;
32
33 DISALLOW_COPY_AND_ASSIGN(MockBlobURLRequestContext);
34 };
35
36 class ScopedTextBlob {
37 public:
38 ScopedTextBlob(const MockBlobURLRequestContext& request_context,
39 const GURL& blob_url,
40 const std::string& data);
41 ~ScopedTextBlob();
42
43 private:
44 const GURL blob_url_;
45 BlobStorageController* blob_storage_controller_;
46
47 DISALLOW_COPY_AND_ASSIGN(ScopedTextBlob);
48 };
49
50 } // namespace webkit_blob
51
52 #endif // WEBKIT_BLOB_MOCK_BLOB_URL_REQUEST_CONTEXT_H_
OLDNEW
« 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