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

Side by Side Diff: webkit/blob/mock_blob_url_request_context.h

Issue 11103027: Support filesystem files from BlobURLRequestJob (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 1 month 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_BLOB_MOCK_BLOB_URL_REQUEST_CONTEXT_H_ 5 #ifndef WEBKIT_BLOB_MOCK_BLOB_URL_REQUEST_CONTEXT_H_
6 #define WEBKIT_BLOB_MOCK_BLOB_URL_REQUEST_CONTEXT_H_ 6 #define WEBKIT_BLOB_MOCK_BLOB_URL_REQUEST_CONTEXT_H_
7 7
8 #include "net/url_request/url_request_context.h" 8 #include "net/url_request/url_request_context.h"
9 #include "net/url_request/url_request_job.h" 9 #include "net/url_request/url_request_job.h"
10 #include "net/url_request/url_request_job_factory_impl.h" 10 #include "net/url_request/url_request_job_factory_impl.h"
11 11
12 namespace fileapi {
13 class FileSystemContext;
14 }
15
12 namespace webkit_blob { 16 namespace webkit_blob {
13 17
14 class BlobStorageController; 18 class BlobStorageController;
15 19
16 class MockBlobURLRequestContext : public net::URLRequestContext { 20 class MockBlobURLRequestContext : public net::URLRequestContext {
17 public: 21 public:
18 MockBlobURLRequestContext(); 22 MockBlobURLRequestContext(fileapi::FileSystemContext* file_system_context);
19 virtual ~MockBlobURLRequestContext(); 23 virtual ~MockBlobURLRequestContext();
20 24
21 BlobStorageController* blob_storage_controller() const { 25 BlobStorageController* blob_storage_controller() const {
22 return blob_storage_controller_.get(); 26 return blob_storage_controller_.get();
23 } 27 }
24 28
25 private: 29 private:
26 net::URLRequestJobFactoryImpl job_factory_; 30 net::URLRequestJobFactoryImpl job_factory_;
27 scoped_ptr<BlobStorageController> blob_storage_controller_; 31 scoped_ptr<BlobStorageController> blob_storage_controller_;
28 32
(...skipping 10 matching lines...) Expand all
39 private: 43 private:
40 const GURL blob_url_; 44 const GURL blob_url_;
41 BlobStorageController* blob_storage_controller_; 45 BlobStorageController* blob_storage_controller_;
42 46
43 DISALLOW_COPY_AND_ASSIGN(ScopedTextBlob); 47 DISALLOW_COPY_AND_ASSIGN(ScopedTextBlob);
44 }; 48 };
45 49
46 } // namespace webkit_blob 50 } // namespace webkit_blob
47 51
48 #endif // WEBKIT_BLOB_MOCK_BLOB_URL_REQUEST_CONTEXT_H_ 52 #endif // WEBKIT_BLOB_MOCK_BLOB_URL_REQUEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « webkit/blob/blob_url_request_job_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