| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/browser/blob_storage/blob_url_loader_factory.h" | 5 #include "content/browser/blob_storage/blob_url_loader_factory.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 379 | 379 |
| 380 loader_factory_bindings_.AddBinding(this, std::move(request)); | 380 loader_factory_bindings_.AddBinding(this, std::move(request)); |
| 381 } | 381 } |
| 382 | 382 |
| 383 void BlobURLLoaderFactory::CreateLoaderAndStart( | 383 void BlobURLLoaderFactory::CreateLoaderAndStart( |
| 384 mojom::URLLoaderAssociatedRequest loader, | 384 mojom::URLLoaderAssociatedRequest loader, |
| 385 int32_t routing_id, | 385 int32_t routing_id, |
| 386 int32_t request_id, | 386 int32_t request_id, |
| 387 uint32_t options, | 387 uint32_t options, |
| 388 const ResourceRequest& request, | 388 const ResourceRequest& request, |
| 389 mojom::URLLoaderClientPtr client) { | 389 mojom::URLLoaderClientPtr client, |
| 390 const net::MutableNetworkTrafficAnnotationTag& traffic_annotation) { |
| 390 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 391 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 391 new BlobURLLoader(std::move(loader), request, std::move(client), | 392 new BlobURLLoader(std::move(loader), request, std::move(client), |
| 392 blob_storage_context_.get(), file_system_context_); | 393 blob_storage_context_.get(), file_system_context_); |
| 393 } | 394 } |
| 394 | 395 |
| 395 void BlobURLLoaderFactory::SyncLoad(int32_t routing_id, | 396 void BlobURLLoaderFactory::SyncLoad(int32_t routing_id, |
| 396 int32_t request_id, | 397 int32_t request_id, |
| 397 const ResourceRequest& request, | 398 const ResourceRequest& request, |
| 398 SyncLoadCallback callback) { | 399 SyncLoadCallback callback) { |
| 399 NOTREACHED(); | 400 NOTREACHED(); |
| 400 } | 401 } |
| 401 | 402 |
| 402 } // namespace content | 403 } // namespace content |
| OLD | NEW |