Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(424)

Side by Side Diff: content/public/common/resource_response.h

Issue 10416003: RefCounted types should not have public destructors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more fix Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/x509_user_cert_resource_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/x509_user_cert_resource_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698