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