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

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

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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
« no previous file with comments | « webkit/blob/mock_blob_url_request_context.h ('k') | webkit/glue/cpp_bound_class.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "webkit/blob/mock_blob_url_request_context.h" 5 #include "webkit/blob/mock_blob_url_request_context.h"
6 6
7 #include "webkit/blob/blob_data.h" 7 #include "webkit/blob/blob_data.h"
8 #include "webkit/blob/blob_storage_controller.h" 8 #include "webkit/blob/blob_storage_controller.h"
9 #include "webkit/blob/blob_url_request_job.h" 9 #include "webkit/blob/blob_url_request_job.h"
10 10
11 namespace webkit_blob { 11 namespace webkit_blob {
12 12
13 namespace { 13 namespace {
14 14
15 class MockBlobProtocolHandler 15 class MockBlobProtocolHandler
16 : public net::URLRequestJobFactory::ProtocolHandler { 16 : public net::URLRequestJobFactory::ProtocolHandler {
17 public: 17 public:
18 explicit MockBlobProtocolHandler( 18 MockBlobProtocolHandler(
19 BlobStorageController* blob_storage_controller, 19 BlobStorageController* blob_storage_controller,
20 fileapi::FileSystemContext* file_system_context) 20 fileapi::FileSystemContext* file_system_context)
21 : blob_storage_controller_(blob_storage_controller), 21 : blob_storage_controller_(blob_storage_controller),
22 file_system_context_(file_system_context) {} 22 file_system_context_(file_system_context) {}
23 23
24 virtual ~MockBlobProtocolHandler() {} 24 virtual ~MockBlobProtocolHandler() {}
25 25
26 virtual net::URLRequestJob* MaybeCreateJob( 26 virtual net::URLRequestJob* MaybeCreateJob(
27 net::URLRequest* request, 27 net::URLRequest* request,
28 net::NetworkDelegate* network_delegate) const OVERRIDE { 28 net::NetworkDelegate* network_delegate) const OVERRIDE {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 scoped_refptr<BlobData> blob_data(new BlobData()); 65 scoped_refptr<BlobData> blob_data(new BlobData());
66 blob_data->AppendData(data); 66 blob_data->AppendData(data);
67 blob_storage_controller_->AddFinishedBlob(blob_url_, blob_data); 67 blob_storage_controller_->AddFinishedBlob(blob_url_, blob_data);
68 } 68 }
69 69
70 ScopedTextBlob::~ScopedTextBlob() { 70 ScopedTextBlob::~ScopedTextBlob() {
71 blob_storage_controller_->RemoveBlob(blob_url_); 71 blob_storage_controller_->RemoveBlob(blob_url_);
72 } 72 }
73 73
74 } // namespace webkit_blob 74 } // namespace webkit_blob
OLDNEW
« no previous file with comments | « webkit/blob/mock_blob_url_request_context.h ('k') | webkit/glue/cpp_bound_class.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698