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

Side by Side Diff: webkit/glue/resource_request_body.cc

Issue 15746017: Move webkit/blob to new locations. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « webkit/common/webkit_common.gypi ('k') | webkit/glue/resource_request_body_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/glue/resource_request_body.h" 5 #include "webkit/glue/resource_request_body.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/base/upload_bytes_element_reader.h" 8 #include "net/base/upload_bytes_element_reader.h"
9 #include "net/base/upload_data_stream.h" 9 #include "net/base/upload_data_stream.h"
10 #include "net/base/upload_file_element_reader.h" 10 #include "net/base/upload_file_element_reader.h"
11 #include "webkit/blob/blob_storage_controller.h" 11 #include "webkit/browser/blob/blob_storage_controller.h"
12 #include "webkit/browser/fileapi/upload_file_system_file_element_reader.h" 12 #include "webkit/browser/fileapi/upload_file_system_file_element_reader.h"
13 13
14 using webkit_blob::BlobData; 14 using webkit_blob::BlobData;
15 using webkit_blob::BlobStorageController; 15 using webkit_blob::BlobStorageController;
16 16
17 namespace webkit_glue { 17 namespace webkit_glue {
18 18
19 namespace { 19 namespace {
20 20
21 // A subclass of net::UploadBytesElementReader which owns ResourceRequestBody. 21 // A subclass of net::UploadBytesElementReader which owns ResourceRequestBody.
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 // Append the elements in the referred blob data. 166 // Append the elements in the referred blob data.
167 for (size_t i = 0; i < blob_data->items().size(); ++i) { 167 for (size_t i = 0; i < blob_data->items().size(); ++i) {
168 const BlobData::Item& item = blob_data->items().at(i); 168 const BlobData::Item& item = blob_data->items().at(i);
169 DCHECK_NE(BlobData::Item::TYPE_BLOB, item.type()); 169 DCHECK_NE(BlobData::Item::TYPE_BLOB, item.type());
170 resolved_elements->push_back(&item); 170 resolved_elements->push_back(&item);
171 } 171 }
172 } 172 }
173 173
174 } // namespace webkit_glue 174 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/common/webkit_common.gypi ('k') | webkit/glue/resource_request_body_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698