OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "storage/browser/blob/blob_url_request_job_factory.h" | 5 #include "storage/browser/blob/blob_url_request_job_factory.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/compiler_specific.h" | |
9 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
10 #include "net/base/request_priority.h" | 9 #include "net/base/request_priority.h" |
11 #include "net/url_request/url_request_context.h" | 10 #include "net/url_request/url_request_context.h" |
12 #include "net/url_request/url_request_job_factory.h" | |
13 #include "storage/browser/blob/blob_data_handle.h" | 11 #include "storage/browser/blob/blob_data_handle.h" |
14 #include "storage/browser/blob/blob_storage_context.h" | 12 #include "storage/browser/blob/blob_storage_context.h" |
15 #include "storage/browser/blob/blob_url_request_job.h" | 13 #include "storage/browser/blob/blob_url_request_job.h" |
16 #include "storage/browser/fileapi/file_system_context.h" | 14 #include "storage/browser/fileapi/file_system_context.h" |
17 | 15 |
18 namespace storage { | 16 namespace storage { |
19 | 17 |
20 namespace { | 18 namespace { |
21 | 19 |
22 int kUserDataKey; // The value is not important, the addr is a key. | 20 int kUserDataKey; // The value is not important, the addr is a key. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 scoped_ptr<BlobDataHandle> handle = context_->GetBlobDataFromUUID(uuid); | 84 scoped_ptr<BlobDataHandle> handle = context_->GetBlobDataFromUUID(uuid); |
87 scoped_ptr<BlobDataSnapshot> snapshot; | 85 scoped_ptr<BlobDataSnapshot> snapshot; |
88 if (handle) { | 86 if (handle) { |
89 snapshot = handle->CreateSnapshot().Pass(); | 87 snapshot = handle->CreateSnapshot().Pass(); |
90 SetRequestedBlobDataHandle(request, handle.Pass()); | 88 SetRequestedBlobDataHandle(request, handle.Pass()); |
91 } | 89 } |
92 return snapshot.Pass(); | 90 return snapshot.Pass(); |
93 } | 91 } |
94 | 92 |
95 } // namespace storage | 93 } // namespace storage |
OLD | NEW |