OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 5 |
6 #include "config.h" | 6 #include "config.h" |
7 | 7 |
8 #include "webkit/glue/resource_loader_bridge.h" | 8 #include "webkit/glue/resource_loader_bridge.h" |
9 #include "webkit/glue/webappcachecontext.h" | 9 #include "webkit/glue/webappcachecontext.h" |
10 | 10 |
11 #include "net/http/http_response_headers.h" | 11 #include "net/http/http_response_headers.h" |
12 | 12 |
13 namespace webkit_glue { | 13 namespace webkit_glue { |
14 | 14 |
15 ResourceLoaderBridge::ResponseInfo::ResponseInfo() { | 15 ResourceLoaderBridge::ResponseInfo::ResponseInfo() { |
16 content_length = -1; | 16 content_length = -1; |
17 app_cache_id = WebAppCacheContext::kNoAppCacheId; | 17 app_cache_id = WebAppCacheContext::kNoAppCacheId; |
18 #if defined(OS_WIN) | |
19 response_data_file = base::kInvalidPlatformFileValue; | |
20 #elif defined(OS_POSIX) | |
21 response_data_file.fd = base::kInvalidPlatformFileValue; | |
22 response_data_file.auto_close = false; | |
23 #endif | |
24 } | 18 } |
25 | 19 |
26 ResourceLoaderBridge::ResponseInfo::~ResponseInfo() { | 20 ResourceLoaderBridge::ResponseInfo::~ResponseInfo() { |
27 } | 21 } |
28 | 22 |
29 ResourceLoaderBridge::SyncLoadResponse::SyncLoadResponse() { | 23 ResourceLoaderBridge::SyncLoadResponse::SyncLoadResponse() { |
30 } | 24 } |
31 | 25 |
32 ResourceLoaderBridge::SyncLoadResponse::~SyncLoadResponse() { | 26 ResourceLoaderBridge::SyncLoadResponse::~SyncLoadResponse() { |
33 } | 27 } |
34 | 28 |
35 ResourceLoaderBridge::ResourceLoaderBridge() { | 29 ResourceLoaderBridge::ResourceLoaderBridge() { |
36 } | 30 } |
37 | 31 |
38 ResourceLoaderBridge::~ResourceLoaderBridge() { | 32 ResourceLoaderBridge::~ResourceLoaderBridge() { |
39 } | 33 } |
40 | 34 |
41 } // namespace webkit_glue | 35 } // namespace webkit_glue |
OLD | NEW |