| 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 #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 Loading... |
| 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_ |
| OLD | NEW |