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

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

Issue 7800015: prune down content_dll change to just the CONTENT_EXPORTS (Closed)
Patch Set: fix exports for switches, content_main Created 9 years, 3 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
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_COMMON_RESOURCE_RESPONSE_H_ 7 #ifndef CONTENT_COMMON_RESOURCE_RESPONSE_H_
8 #define CONTENT_COMMON_RESOURCE_RESPONSE_H_ 8 #define CONTENT_COMMON_RESOURCE_RESPONSE_H_
9 #pragma once 9 #pragma once
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "content/common/content_export.h"
14 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
15 #include "net/url_request/url_request_status.h" 16 #include "net/url_request/url_request_status.h"
16 #include "webkit/glue/resource_loader_bridge.h" 17 #include "webkit/glue/resource_loader_bridge.h"
17 18
18 // Parameters for a resource response header. 19 // Parameters for a resource response header.
19 struct ResourceResponseHead : webkit_glue::ResourceResponseInfo { 20 struct ResourceResponseHead : webkit_glue::ResourceResponseInfo {
20 // The response status. 21 // The response status.
21 net::URLRequestStatus status; 22 net::URLRequestStatus status;
22 }; 23 };
23 24
24 // Parameters for a synchronous resource response. 25 // Parameters for a synchronous resource response.
25 struct SyncLoadResult : ResourceResponseHead { 26 struct SyncLoadResult : ResourceResponseHead {
26 // The final URL after any redirects. 27 // The final URL after any redirects.
27 GURL final_url; 28 GURL final_url;
28 29
29 // The response data. 30 // The response data.
30 std::string data; 31 std::string data;
31 }; 32 };
32 33
33 // Simple wrapper that refcounts ResourceResponseHead. 34 // Simple wrapper that refcounts ResourceResponseHead.
34 struct ResourceResponse : public base::RefCounted<ResourceResponse> { 35 struct CONTENT_EXPORT ResourceResponse
36 : public base::RefCounted<ResourceResponse> {
35 ResourceResponse(); 37 ResourceResponse();
36 38
37 ResourceResponseHead response_head; 39 ResourceResponseHead response_head;
38 40
39 private: 41 private:
40 friend class base::RefCounted<ResourceResponse>; 42 friend class base::RefCounted<ResourceResponse>;
41 43
42 ~ResourceResponse(); 44 ~ResourceResponse();
43 }; 45 };
44 46
45 #endif // CONTENT_COMMON_RESOURCE_RESPONSE_H_ 47 #endif // CONTENT_COMMON_RESOURCE_RESPONSE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698