| 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 | 9 |
| 10 #include "net/http/http_response_headers.h" | 10 #include "net/http/http_response_headers.h" |
| 11 | 11 |
| 12 namespace webkit_glue { | 12 namespace webkit_glue { |
| 13 | 13 |
| 14 ResourceLoaderBridge::ResponseInfo::ResponseInfo() { | 14 ResourceLoaderBridge::ResponseInfo::ResponseInfo() { |
| 15 content_length = -1; |
| 15 #if defined(OS_WIN) | 16 #if defined(OS_WIN) |
| 16 response_data_file = base::kInvalidPlatformFileValue; | 17 response_data_file = base::kInvalidPlatformFileValue; |
| 17 #elif defined(OS_POSIX) | 18 #elif defined(OS_POSIX) |
| 18 response_data_file.fd = base::kInvalidPlatformFileValue; | 19 response_data_file.fd = base::kInvalidPlatformFileValue; |
| 19 response_data_file.auto_close = false; | 20 response_data_file.auto_close = false; |
| 20 #endif | 21 #endif |
| 21 } | 22 } |
| 22 | 23 |
| 23 ResourceLoaderBridge::ResponseInfo::~ResponseInfo() { | 24 ResourceLoaderBridge::ResponseInfo::~ResponseInfo() { |
| 24 } | 25 } |
| 25 | 26 |
| 26 ResourceLoaderBridge::SyncLoadResponse::SyncLoadResponse() { | 27 ResourceLoaderBridge::SyncLoadResponse::SyncLoadResponse() { |
| 27 } | 28 } |
| 28 | 29 |
| 29 ResourceLoaderBridge::SyncLoadResponse::~SyncLoadResponse() { | 30 ResourceLoaderBridge::SyncLoadResponse::~SyncLoadResponse() { |
| 30 } | 31 } |
| 31 | 32 |
| 32 ResourceLoaderBridge::ResourceLoaderBridge() { | 33 ResourceLoaderBridge::ResourceLoaderBridge() { |
| 33 } | 34 } |
| 34 | 35 |
| 35 ResourceLoaderBridge::~ResourceLoaderBridge() { | 36 ResourceLoaderBridge::~ResourceLoaderBridge() { |
| 36 } | 37 } |
| 37 | 38 |
| 38 } // namespace webkit_glue | 39 } // namespace webkit_glue |
| OLD | NEW |