Chromium Code Reviews| 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 struct CONTENT_EXPORT ResourceResponse | 42 // Inherited, rather than typedef'd, to allow forward declarations. |
| 43 : public NON_EXPORTED_BASE(ResourceResponseHead), | 43 class CONTENT_EXPORT ResourceResponse |
|
jam
2012/05/21 15:18:43
please keep this as a struct. for the content api,
darin (slow to review)
2012/05/22 18:01:31
+1
This should be a struct. What problem was the
| |
| 44 public base::RefCounted<ResourceResponse> { | 44 : public base::RefCountedData<ResourceResponseHead> { |
| 45 | 45 protected: |
| 46 private: | |
| 47 friend class base::RefCounted<ResourceResponse>; | |
| 48 | |
| 49 ~ResourceResponse() {} | 46 ~ResourceResponse() {} |
| 50 }; | 47 }; |
| 51 | 48 |
| 52 } // namespace content | 49 } // namespace content |
| 53 | 50 |
| 54 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_H_ | 51 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_H_ |
| OLD | NEW |