OLD | NEW |
1 // Copyright (c) 2010 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 CHROME_COMMON_RESOURCE_RESPONSE_H_ | 7 #ifndef CHROME_COMMON_RESOURCE_RESPONSE_H_ |
8 #define CHROME_COMMON_RESOURCE_RESPONSE_H_ | 8 #define CHROME_COMMON_RESOURCE_RESPONSE_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
15 #include "net/url_request/url_request_status.h" | 15 #include "net/url_request/url_request_status.h" |
16 #include "webkit/glue/resource_loader_bridge.h" | 16 #include "webkit/glue/resource_loader_bridge.h" |
17 | 17 |
18 // Parameters for a resource response header. | 18 // Parameters for a resource response header. |
19 struct ResourceResponseHead : webkit_glue::ResourceResponseInfo { | 19 struct ResourceResponseHead : webkit_glue::ResourceResponseInfo { |
20 ResourceResponseHead(); | 20 ResourceResponseHead(); |
21 ~ResourceResponseHead(); | 21 ~ResourceResponseHead(); |
22 | 22 |
23 // The response status. | 23 // The response status. |
24 URLRequestStatus status; | 24 net::URLRequestStatus status; |
25 | 25 |
26 // Whether we should apply a filter to this resource that replaces | 26 // Whether we should apply a filter to this resource that replaces |
27 // localization templates with the appropriate localized strings. This is set | 27 // localization templates with the appropriate localized strings. This is set |
28 // for CSS resources used by extensions. | 28 // for CSS resources used by extensions. |
29 bool replace_extension_localization_templates; | 29 bool replace_extension_localization_templates; |
30 }; | 30 }; |
31 | 31 |
32 // Parameters for a synchronous resource response. | 32 // Parameters for a synchronous resource response. |
33 struct SyncLoadResult : ResourceResponseHead { | 33 struct SyncLoadResult : ResourceResponseHead { |
34 SyncLoadResult(); | 34 SyncLoadResult(); |
(...skipping 11 matching lines...) Expand all Loading... |
46 ResourceResponseHead response_head; | 46 ResourceResponseHead response_head; |
47 | 47 |
48 ResourceResponse(); | 48 ResourceResponse(); |
49 private: | 49 private: |
50 friend class base::RefCounted<ResourceResponse>; | 50 friend class base::RefCounted<ResourceResponse>; |
51 | 51 |
52 virtual ~ResourceResponse(); | 52 virtual ~ResourceResponse(); |
53 }; | 53 }; |
54 | 54 |
55 #endif // CHROME_COMMON_RESOURCE_RESPONSE_H_ | 55 #endif // CHROME_COMMON_RESOURCE_RESPONSE_H_ |
OLD | NEW |