| 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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 | 382 |
| 383 loader_factory_bindings_.AddBinding(this, std::move(request)); | 383 loader_factory_bindings_.AddBinding(this, std::move(request)); |
| 384 } | 384 } |
| 385 | 385 |
| 386 void BlobURLLoaderFactory::CreateLoaderAndStart( | 386 void BlobURLLoaderFactory::CreateLoaderAndStart( |
| 387 mojom::URLLoaderAssociatedRequest loader, | 387 mojom::URLLoaderAssociatedRequest loader, |
| 388 int32_t routing_id, | 388 int32_t routing_id, |
| 389 int32_t request_id, | 389 int32_t request_id, |
| 390 uint32_t options, | 390 uint32_t options, |
| 391 const ResourceRequest& request, | 391 const ResourceRequest& request, |
| 392 mojom::URLLoaderClientPtr client) { | 392 mojom::URLLoaderClientPtr client, |
| 393 const net::MutableNetworkTrafficAnnotationTag& traffic_annotation) { |
| 393 DCHECK_CURRENTLY_ON(BrowserThread::IO); | 394 DCHECK_CURRENTLY_ON(BrowserThread::IO); |
| 394 new BlobURLLoader(std::move(loader), request, std::move(client), | 395 new BlobURLLoader(std::move(loader), request, std::move(client), |
| 395 blob_storage_context_.get(), file_system_context_); | 396 blob_storage_context_.get(), file_system_context_); |
| 396 } | 397 } |
| 397 | 398 |
| 398 void BlobURLLoaderFactory::SyncLoad(int32_t routing_id, | 399 void BlobURLLoaderFactory::SyncLoad(int32_t routing_id, |
| 399 int32_t request_id, | 400 int32_t request_id, |
| 400 const ResourceRequest& request, | 401 const ResourceRequest& request, |
| 401 SyncLoadCallback callback) { | 402 SyncLoadCallback callback) { |
| 402 NOTREACHED(); | 403 NOTREACHED(); |
| 403 } | 404 } |
| 404 | 405 |
| 405 } // namespace content | 406 } // namespace content |
| OLD | NEW |