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

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

Issue 10917127: webkit: Resolve blob elements early in ResourceRequestBody::ResolveElementsAndCreateUploadData() to… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: _ Created 8 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
« no previous file with comments | « no previous file | webkit/glue/resource_request_body.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 #ifndef WEBKIT_GLUE_RESOURCE_REQUEST_BODY_H_ 5 #ifndef WEBKIT_GLUE_RESOURCE_REQUEST_BODY_H_
6 #define WEBKIT_GLUE_RESOURCE_REQUEST_BODY_H_ 6 #define WEBKIT_GLUE_RESOURCE_REQUEST_BODY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // formulate a cache key. This value should be unique across browser 58 // formulate a cache key. This value should be unique across browser
59 // sessions. A value of 0 is used to indicate an unspecified identifier. 59 // sessions. A value of 0 is used to indicate an unspecified identifier.
60 void set_identifier(int64 id) { identifier_ = id; } 60 void set_identifier(int64 id) { identifier_ = id; }
61 int64 identifier() const { return identifier_; } 61 int64 identifier() const { return identifier_; }
62 62
63 private: 63 private:
64 friend class base::RefCounted<ResourceRequestBody>; 64 friend class base::RefCounted<ResourceRequestBody>;
65 virtual ~ResourceRequestBody(); 65 virtual ~ResourceRequestBody();
66 66
67 // Resolves the |blob_url| using |blob_controller| and appends resolved 67 // Resolves the |blob_url| using |blob_controller| and appends resolved
68 // items to |elements|. 68 // items to |resolved_elements|.
69 void ResolveBlobReference(webkit_blob::BlobStorageController* blob_controller, 69 void ResolveBlobReference(webkit_blob::BlobStorageController* blob_controller,
70 const GURL& blob_url, 70 const GURL& blob_url,
71 std::vector<net::UploadElement>* elements); 71 std::vector<const Element*>* resolved_elements);
72 72
73 std::vector<Element> elements_; 73 std::vector<Element> elements_;
74 int64 identifier_; 74 int64 identifier_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(ResourceRequestBody); 76 DISALLOW_COPY_AND_ASSIGN(ResourceRequestBody);
77 }; 77 };
78 78
79 } // namespace webkit_glue 79 } // namespace webkit_glue
80 80
81 #endif // WEBKIT_GLUE_RESOURCE_REQUEST_BODY_H_ 81 #endif // WEBKIT_GLUE_RESOURCE_REQUEST_BODY_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/resource_request_body.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698