OLD | NEW |
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 "storage/browser/blob/blob_url_request_job.h" | 5 #include "storage/browser/blob/blob_url_request_job.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 13 matching lines...) Expand all Loading... |
24 #include "net/base/io_buffer.h" | 24 #include "net/base/io_buffer.h" |
25 #include "net/base/net_errors.h" | 25 #include "net/base/net_errors.h" |
26 #include "net/http/http_request_headers.h" | 26 #include "net/http/http_request_headers.h" |
27 #include "net/http/http_response_headers.h" | 27 #include "net/http/http_response_headers.h" |
28 #include "net/http/http_response_info.h" | 28 #include "net/http/http_response_info.h" |
29 #include "net/http/http_util.h" | 29 #include "net/http/http_util.h" |
30 #include "net/url_request/url_request.h" | 30 #include "net/url_request/url_request.h" |
31 #include "net/url_request/url_request_context.h" | 31 #include "net/url_request/url_request_context.h" |
32 #include "net/url_request/url_request_error_job.h" | 32 #include "net/url_request/url_request_error_job.h" |
33 #include "net/url_request/url_request_status.h" | 33 #include "net/url_request/url_request_status.h" |
34 #include "storage/browser/blob/file_stream_reader.h" | 34 #include "storage/browser/fileapi/file_stream_reader.h" |
35 #include "storage/browser/fileapi/file_system_context.h" | 35 #include "storage/browser/fileapi/file_system_context.h" |
36 #include "storage/browser/fileapi/file_system_url.h" | 36 #include "storage/browser/fileapi/file_system_url.h" |
37 #include "storage/common/data_element.h" | 37 #include "storage/common/data_element.h" |
38 | 38 |
39 namespace storage { | 39 namespace storage { |
40 | 40 |
41 namespace { | 41 namespace { |
42 | 42 |
43 bool IsFileType(DataElement::Type type) { | 43 bool IsFileType(DataElement::Type type) { |
44 switch (type) { | 44 switch (type) { |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
601 .release(); | 601 .release(); |
602 break; | 602 break; |
603 default: | 603 default: |
604 NOTREACHED(); | 604 NOTREACHED(); |
605 } | 605 } |
606 DCHECK(reader); | 606 DCHECK(reader); |
607 index_to_reader_[index] = reader; | 607 index_to_reader_[index] = reader; |
608 } | 608 } |
609 | 609 |
610 } // namespace storage | 610 } // namespace storage |
OLD | NEW |