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

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: Created 8 years, 7 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
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 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698