| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 #include "webkit/glue/resource_loader_bridge.h" | 5 #include "webkit/glue/resource_loader_bridge.h" |
| 6 | 6 |
| 7 #include "webkit/appcache/appcache_interfaces.h" | 7 #include "webkit/appcache/appcache_interfaces.h" |
| 8 #include "net/http/http_response_headers.h" | 8 #include "net/http/http_response_headers.h" |
| 9 | 9 |
| 10 namespace webkit_glue { | 10 namespace webkit_glue { |
| 11 | 11 |
| 12 ResourceLoaderBridge::RequestInfo::RequestInfo() | 12 ResourceLoaderBridge::RequestInfo::RequestInfo() |
| 13 : load_flags(0), | 13 : load_flags(0), |
| 14 requestor_pid(0), | 14 requestor_pid(0), |
| 15 request_type(ResourceType::MAIN_FRAME), | 15 request_type(ResourceType::MAIN_FRAME), |
| 16 request_context(0), | 16 request_context(0), |
| 17 appcache_host_id(0), | 17 appcache_host_id(0), |
| 18 routing_id(0) { | 18 routing_id(0) { |
| 19 } | 19 } |
| 20 | 20 |
| 21 ResourceLoaderBridge::RequestInfo::~RequestInfo() { | 21 ResourceLoaderBridge::RequestInfo::~RequestInfo() { |
| 22 } | 22 } |
| 23 | 23 |
| 24 ResourceLoaderBridge::ResponseInfo::ResponseInfo() { | 24 ResourceLoaderBridge::ResponseInfo::ResponseInfo() { |
| 25 content_length = -1; | 25 content_length = -1; |
| 26 appcache_id = appcache::kNoCacheId; | 26 appcache_id = appcache::kNoCacheId; |
| 27 was_fetched_via_spdy = false; | 27 was_fetched_via_spdy = false; |
| 28 was_npn_negotiated = false; | 28 was_npn_negotiated = false; |
| 29 was_alternate_protocol_available = false; |
| 29 was_fetched_via_proxy = false; | 30 was_fetched_via_proxy = false; |
| 30 } | 31 } |
| 31 | 32 |
| 32 ResourceLoaderBridge::ResponseInfo::~ResponseInfo() { | 33 ResourceLoaderBridge::ResponseInfo::~ResponseInfo() { |
| 33 } | 34 } |
| 34 | 35 |
| 35 ResourceLoaderBridge::SyncLoadResponse::SyncLoadResponse() { | 36 ResourceLoaderBridge::SyncLoadResponse::SyncLoadResponse() { |
| 36 } | 37 } |
| 37 | 38 |
| 38 ResourceLoaderBridge::SyncLoadResponse::~SyncLoadResponse() { | 39 ResourceLoaderBridge::SyncLoadResponse::~SyncLoadResponse() { |
| 39 } | 40 } |
| 40 | 41 |
| 41 ResourceLoaderBridge::ResourceLoaderBridge() { | 42 ResourceLoaderBridge::ResourceLoaderBridge() { |
| 42 } | 43 } |
| 43 | 44 |
| 44 ResourceLoaderBridge::~ResourceLoaderBridge() { | 45 ResourceLoaderBridge::~ResourceLoaderBridge() { |
| 45 } | 46 } |
| 46 | 47 |
| 47 } // namespace webkit_glue | 48 } // namespace webkit_glue |
| OLD | NEW |