| 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 WEBKIT_GLUE_WEBURLREQUEST_H__ | 5 #ifndef WEBKIT_GLUE_WEBURLREQUEST_H_ |
| 6 #define WEBKIT_GLUE_WEBURLREQUEST_H__ | 6 #define WEBKIT_GLUE_WEBURLREQUEST_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | |
| 12 #include "base/ref_counted.h" | 11 #include "base/ref_counted.h" |
| 13 | 12 |
| 14 enum WebRequestCachePolicy { | 13 enum WebRequestCachePolicy { |
| 15 WebRequestUseProtocolCachePolicy, | 14 WebRequestUseProtocolCachePolicy, |
| 16 WebRequestReloadIgnoringCacheData, | 15 WebRequestReloadIgnoringCacheData, |
| 17 WebRequestReturnCacheDataElseLoad, | 16 WebRequestReturnCacheDataElseLoad, |
| 18 WebRequestReturnCacheDataDontLoad | 17 WebRequestReturnCacheDataDontLoad |
| 19 }; | 18 }; |
| 20 | 19 |
| 21 namespace net { | 20 namespace net { |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // Returns the request upload data. This object is temporary and should be | 119 // Returns the request upload data. This object is temporary and should be |
| 121 // deleted after use. | 120 // deleted after use. |
| 122 virtual void GetUploadData(net::UploadData* data) const = 0; | 121 virtual void GetUploadData(net::UploadData* data) const = 0; |
| 123 | 122 |
| 124 // Set the request upload data. | 123 // Set the request upload data. |
| 125 virtual void SetUploadData(const net::UploadData& data) = 0; | 124 virtual void SetUploadData(const net::UploadData& data) = 0; |
| 126 | 125 |
| 127 virtual ~WebRequest() { } | 126 virtual ~WebRequest() { } |
| 128 }; | 127 }; |
| 129 | 128 |
| 130 #endif // #ifndef WEBKIT_GLUE_WEBURLREQUEST_H__ | 129 #endif // #ifndef WEBKIT_GLUE_WEBURLREQUEST_H_ |
| 131 | |
| OLD | NEW |