| OLD | NEW | 
|---|
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 NET_BASE_UPLOAD_DATA_H__ | 5 #ifndef NET_BASE_UPLOAD_DATA_H_ | 
| 6 #define NET_BASE_UPLOAD_DATA_H__ | 6 #define NET_BASE_UPLOAD_DATA_H_ | 
| 7 | 7 | 
| 8 #include <string> | 8 #include <string> | 
| 9 #include <vector> | 9 #include <vector> | 
| 10 | 10 | 
| 11 #include "base/basictypes.h" |  | 
| 12 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" | 
| 13 | 12 | 
| 14 namespace net { | 13 namespace net { | 
| 15 | 14 | 
| 16 class UploadData : public base::RefCounted<UploadData> { | 15 class UploadData : public base::RefCounted<UploadData> { | 
| 17  public: | 16  public: | 
| 18   UploadData() {} | 17   UploadData() {} | 
| 19 | 18 | 
| 20   enum Type { | 19   enum Type { | 
| 21     TYPE_BYTES, | 20     TYPE_BYTES, | 
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 91   void set_elements(const std::vector<Element>& elements) { | 90   void set_elements(const std::vector<Element>& elements) { | 
| 92     elements_ = elements; | 91     elements_ = elements; | 
| 93   } | 92   } | 
| 94 | 93 | 
| 95  private: | 94  private: | 
| 96    std::vector<Element> elements_; | 95    std::vector<Element> elements_; | 
| 97 }; | 96 }; | 
| 98 | 97 | 
| 99 }  // namespace net | 98 }  // namespace net | 
| 100 | 99 | 
| 101 #endif  // NET_BASE_UPLOAD_DATA_H__ | 100 #endif  // NET_BASE_UPLOAD_DATA_H_ | 
| 102 |  | 
| OLD | NEW | 
|---|