| OLD | NEW |
| 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 #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 ResourceLoadTimingInfo::ResourceLoadTimingInfo() | 12 ResourceLoadTimingInfo::ResourceLoadTimingInfo() |
| 13 : proxy_start(-1), | 13 : proxy_start(-1), |
| 14 proxy_end(-1), | 14 proxy_end(-1), |
| 15 dns_start(-1), | 15 dns_start(-1), |
| 16 dns_end(-1), | 16 dns_end(-1), |
| 17 connect_start(-1), | 17 connect_start(-1), |
| 18 connect_end(-1), | 18 connect_end(-1), |
| 19 ssl_start(-1), | 19 ssl_start(-1), |
| 20 ssl_end(-1), | 20 ssl_end(-1), |
| 21 send_start(0), | 21 send_start(0), |
| 22 send_end(0), | 22 send_end(0), |
| 23 receive_headers_start(0), | 23 receive_headers_start(0), |
| 24 receive_headers_end(0) { | 24 receive_headers_end(0) { |
| 25 } | 25 } |
| 26 | 26 |
| 27 ResourceLoadTimingInfo::~ResourceLoadTimingInfo() { | 27 ResourceLoadTimingInfo::~ResourceLoadTimingInfo() {} |
| 28 } | |
| 29 | 28 |
| 30 ResourceDevToolsInfo::ResourceDevToolsInfo() | 29 ResourceDevToolsInfo::ResourceDevToolsInfo() |
| 31 : http_status_code(0) { | 30 : http_status_code(0) { |
| 32 } | 31 } |
| 33 | 32 |
| 34 ResourceDevToolsInfo::~ResourceDevToolsInfo() {} | 33 ResourceDevToolsInfo::~ResourceDevToolsInfo() {} |
| 35 | 34 |
| 36 ResourceResponseInfo::ResourceResponseInfo() | 35 ResourceResponseInfo::ResourceResponseInfo() |
| 37 : content_length(-1), | 36 : content_length(-1), |
| 38 encoded_data_length(-1), | 37 encoded_data_length(-1), |
| 39 appcache_id(appcache::kNoCacheId), | 38 appcache_id(appcache::kNoCacheId), |
| 40 connection_id(0), | 39 connection_id(0), |
| 41 connection_reused(false), | 40 connection_reused(false), |
| 42 was_fetched_via_spdy(false), | 41 was_fetched_via_spdy(false), |
| 43 was_npn_negotiated(false), | 42 was_npn_negotiated(false), |
| 44 was_alternate_protocol_available(false), | 43 was_alternate_protocol_available(false), |
| 45 was_fetched_via_proxy(false) { | 44 was_fetched_via_proxy(false) { |
| 46 } | 45 } |
| 47 | 46 |
| 48 ResourceResponseInfo::~ResourceResponseInfo() { | 47 ResourceResponseInfo::~ResourceResponseInfo() {} |
| 49 } | |
| 50 | 48 |
| 51 ResourceLoaderBridge::RequestInfo::RequestInfo() | 49 ResourceLoaderBridge::RequestInfo::RequestInfo() |
| 52 : referrer_policy(WebKit::WebReferrerPolicyDefault), | 50 : referrer_policy(WebKit::WebReferrerPolicyDefault), |
| 53 load_flags(0), | 51 load_flags(0), |
| 54 requestor_pid(0), | 52 requestor_pid(0), |
| 55 request_type(ResourceType::MAIN_FRAME), | 53 request_type(ResourceType::MAIN_FRAME), |
| 56 request_context(0), | 54 request_context(0), |
| 57 appcache_host_id(0), | 55 appcache_host_id(0), |
| 58 routing_id(0), | 56 routing_id(0), |
| 59 download_to_file(false), | 57 download_to_file(false), |
| 60 has_user_gesture(false), | 58 has_user_gesture(false), |
| 61 extra_data(NULL) { | 59 extra_data(NULL) { |
| 62 } | 60 } |
| 63 | 61 |
| 64 ResourceLoaderBridge::RequestInfo::~RequestInfo() { | 62 ResourceLoaderBridge::RequestInfo::~RequestInfo() {} |
| 65 } | |
| 66 | 63 |
| 67 ResourceLoaderBridge::SyncLoadResponse::SyncLoadResponse() { | 64 ResourceLoaderBridge::SyncLoadResponse::SyncLoadResponse() {} |
| 68 } | |
| 69 | 65 |
| 70 ResourceLoaderBridge::SyncLoadResponse::~SyncLoadResponse() { | 66 ResourceLoaderBridge::SyncLoadResponse::~SyncLoadResponse() {} |
| 71 } | |
| 72 | 67 |
| 73 ResourceLoaderBridge::ResourceLoaderBridge() { | 68 ResourceLoaderBridge::ResourceLoaderBridge() {} |
| 74 } | |
| 75 | 69 |
| 76 ResourceLoaderBridge::~ResourceLoaderBridge() { | 70 ResourceLoaderBridge::~ResourceLoaderBridge() {} |
| 77 } | |
| 78 | 71 |
| 79 } // namespace webkit_glue | 72 } // namespace webkit_glue |
| OLD | NEW |