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

Side by Side Diff: storage/browser/blob/blob_url_request_job.cc

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build 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 (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 "webkit/browser/blob/blob_url_request_job.h" 5 #include "storage/browser/blob/blob_url_request_job.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/files/file_util_proxy.h" 12 #include "base/files/file_util_proxy.h"
13 #include "base/format_macros.h" 13 #include "base/format_macros.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/message_loop/message_loop_proxy.h" 15 #include "base/message_loop/message_loop_proxy.h"
16 #include "base/stl_util.h" 16 #include "base/stl_util.h"
17 #include "base/strings/string_number_conversions.h" 17 #include "base/strings/string_number_conversions.h"
18 #include "base/strings/stringprintf.h" 18 #include "base/strings/stringprintf.h"
19 #include "net/base/io_buffer.h" 19 #include "net/base/io_buffer.h"
20 #include "net/base/net_errors.h" 20 #include "net/base/net_errors.h"
21 #include "net/http/http_request_headers.h" 21 #include "net/http/http_request_headers.h"
22 #include "net/http/http_response_headers.h" 22 #include "net/http/http_response_headers.h"
23 #include "net/http/http_response_info.h" 23 #include "net/http/http_response_info.h"
24 #include "net/http/http_util.h" 24 #include "net/http/http_util.h"
25 #include "net/url_request/url_request.h" 25 #include "net/url_request/url_request.h"
26 #include "net/url_request/url_request_context.h" 26 #include "net/url_request/url_request_context.h"
27 #include "net/url_request/url_request_error_job.h" 27 #include "net/url_request/url_request_error_job.h"
28 #include "net/url_request/url_request_status.h" 28 #include "net/url_request/url_request_status.h"
29 #include "webkit/browser/blob/file_stream_reader.h" 29 #include "storage/browser/blob/file_stream_reader.h"
30 #include "webkit/browser/fileapi/file_system_context.h" 30 #include "storage/browser/fileapi/file_system_context.h"
31 #include "webkit/browser/fileapi/file_system_url.h" 31 #include "storage/browser/fileapi/file_system_url.h"
32 32
33 namespace storage { 33 namespace storage {
34 34
35 namespace { 35 namespace {
36 36
37 bool IsFileType(BlobData::Item::Type type) { 37 bool IsFileType(BlobData::Item::Type type) {
38 switch (type) { 38 switch (type) {
39 case BlobData::Item::TYPE_FILE: 39 case BlobData::Item::TYPE_FILE:
40 case BlobData::Item::TYPE_FILE_FILESYSTEM: 40 case BlobData::Item::TYPE_FILE_FILESYSTEM:
41 return true; 41 return true;
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 .release(); 581 .release();
582 break; 582 break;
583 default: 583 default:
584 NOTREACHED(); 584 NOTREACHED();
585 } 585 }
586 DCHECK(reader); 586 DCHECK(reader);
587 index_to_reader_[index] = reader; 587 index_to_reader_[index] = reader;
588 } 588 }
589 589
590 } // namespace storage 590 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/blob/blob_url_request_job.h ('k') | storage/browser/blob/blob_url_request_job_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698