| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading | 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc
e-loading |
| 6 | 6 |
| 7 #ifndef CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_H_ | 7 #ifndef CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_H_ |
| 8 #define CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_H_ | 8 #define CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // Parameters for a synchronous resource response. | 32 // Parameters for a synchronous resource response. |
| 33 struct SyncLoadResult : ResourceResponseHead { | 33 struct SyncLoadResult : ResourceResponseHead { |
| 34 // The final URL after any redirects. | 34 // The final URL after any redirects. |
| 35 GURL final_url; | 35 GURL final_url; |
| 36 | 36 |
| 37 // The response data. | 37 // The response data. |
| 38 std::string data; | 38 std::string data; |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 // Simple wrapper that refcounts ResourceResponseHead. | 41 // Simple wrapper that refcounts ResourceResponseHead. |
| 42 // Inherited, rather than typedef'd, to allow forward declarations. |
| 42 struct CONTENT_EXPORT ResourceResponse | 43 struct CONTENT_EXPORT ResourceResponse |
| 43 : public NON_EXPORTED_BASE(ResourceResponseHead), | 44 : public base::RefCounted<ResourceResponse> { |
| 44 public base::RefCounted<ResourceResponse> { | 45 public: |
| 46 ResourceResponseHead head; |
| 45 | 47 |
| 46 private: | 48 private: |
| 47 friend class base::RefCounted<ResourceResponse>; | 49 friend class base::RefCounted<ResourceResponse>; |
| 48 | |
| 49 ~ResourceResponse() {} | 50 ~ResourceResponse() {} |
| 50 }; | 51 }; |
| 51 | 52 |
| 52 } // namespace content | 53 } // namespace content |
| 53 | 54 |
| 54 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_H_ | 55 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_H_ |
| OLD | NEW |