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

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

Issue 559063002: Remove webkit/browser/, point everything to storage/browser/ instead (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clean up DEPS per feedback Created 6 years, 3 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 #include "content/public/test/mock_blob_url_request_context.h" 5 #include "content/public/test/mock_blob_url_request_context.h"
6 6
7 #include "storage/browser/blob/blob_storage_context.h"
8 #include "storage/browser/blob/blob_url_request_job.h"
9 #include "storage/browser/blob/blob_url_request_job_factory.h"
7 #include "storage/common/blob/blob_data.h" 10 #include "storage/common/blob/blob_data.h"
8 #include "webkit/browser/blob/blob_storage_context.h"
9 #include "webkit/browser/blob/blob_url_request_job.h"
10 #include "webkit/browser/blob/blob_url_request_job_factory.h"
11 11
12 12
13 namespace content { 13 namespace content {
14 14
15 MockBlobURLRequestContext::MockBlobURLRequestContext( 15 MockBlobURLRequestContext::MockBlobURLRequestContext(
16 storage::FileSystemContext* file_system_context) 16 storage::FileSystemContext* file_system_context)
17 : blob_storage_context_(new storage::BlobStorageContext) { 17 : blob_storage_context_(new storage::BlobStorageContext) {
18 // Job factory owns the protocol handler. 18 // Job factory owns the protocol handler.
19 job_factory_.SetProtocolHandler( 19 job_factory_.SetProtocolHandler(
20 "blob", 20 "blob",
(...skipping 21 matching lines...) Expand all
42 } 42 }
43 43
44 ScopedTextBlob::~ScopedTextBlob() { 44 ScopedTextBlob::~ScopedTextBlob() {
45 } 45 }
46 46
47 scoped_ptr<storage::BlobDataHandle> ScopedTextBlob::GetBlobDataHandle() { 47 scoped_ptr<storage::BlobDataHandle> ScopedTextBlob::GetBlobDataHandle() {
48 return context_->GetBlobDataFromUUID(blob_id_); 48 return context_->GetBlobDataFromUUID(blob_id_);
49 } 49 }
50 50
51 } // namespace content 51 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/async_file_test_helper.cc ('k') | content/public/test/mock_special_storage_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698