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

Side by Side Diff: content/public/test/mock_blob_url_request_context.h

Issue 671663002: Standardize usage of virtual/override/final in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_PUBLIC_TEST_MOCK_BLOB_URL_REQUEST_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_BLOB_URL_REQUEST_CONTEXT_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_BLOB_URL_REQUEST_CONTEXT_H_ 6 #define CONTENT_PUBLIC_TEST_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 storage { 12 namespace storage {
13 class FileSystemContext; 13 class FileSystemContext;
14 } 14 }
15 15
16 namespace storage { 16 namespace storage {
17 class BlobDataHandle; 17 class BlobDataHandle;
18 class BlobStorageContext; 18 class BlobStorageContext;
19 } 19 }
20 20
21 namespace content { 21 namespace content {
22 22
23 class MockBlobURLRequestContext : public net::URLRequestContext { 23 class MockBlobURLRequestContext : public net::URLRequestContext {
24 public: 24 public:
25 MockBlobURLRequestContext(storage::FileSystemContext* file_system_context); 25 MockBlobURLRequestContext(storage::FileSystemContext* file_system_context);
26 virtual ~MockBlobURLRequestContext(); 26 ~MockBlobURLRequestContext() override;
27 27
28 storage::BlobStorageContext* blob_storage_context() const { 28 storage::BlobStorageContext* blob_storage_context() const {
29 return blob_storage_context_.get(); 29 return blob_storage_context_.get();
30 } 30 }
31 31
32 private: 32 private:
33 net::URLRequestJobFactoryImpl job_factory_; 33 net::URLRequestJobFactoryImpl job_factory_;
34 scoped_ptr<storage::BlobStorageContext> blob_storage_context_; 34 scoped_ptr<storage::BlobStorageContext> blob_storage_context_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(MockBlobURLRequestContext); 36 DISALLOW_COPY_AND_ASSIGN(MockBlobURLRequestContext);
(...skipping 14 matching lines...) Expand all
51 const std::string blob_id_; 51 const std::string blob_id_;
52 storage::BlobStorageContext* context_; 52 storage::BlobStorageContext* context_;
53 scoped_ptr<storage::BlobDataHandle> handle_; 53 scoped_ptr<storage::BlobDataHandle> handle_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(ScopedTextBlob); 55 DISALLOW_COPY_AND_ASSIGN(ScopedTextBlob);
56 }; 56 };
57 57
58 } // namespace content 58 } // namespace content
59 59
60 #endif // CONTENT_PUBLIC_TEST_MOCK_BLOB_URL_REQUEST_CONTEXT_H_ 60 #endif // CONTENT_PUBLIC_TEST_MOCK_BLOB_URL_REQUEST_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/public/test/javascript_test_observer.h ('k') | content/public/test/mock_render_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698