summaryrefslogtreecommitdiffstats
path: root/webkit/glue/resource_loader_bridge.cc
blob: 88452565ae14dff4b10baae90c8ce21fcd919479 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "webkit/glue/resource_loader_bridge.h"

#include "webkit/appcache/appcache_interfaces.h"
#include "net/http/http_response_headers.h"

namespace webkit_glue {

ResourceLoaderBridge::RequestInfo::RequestInfo()
    : load_flags(0),
      requestor_pid(0),
      request_type(ResourceType::MAIN_FRAME),
      request_context(0),
      appcache_host_id(0),
      routing_id(0) {
}

ResourceLoaderBridge::RequestInfo::~RequestInfo() {
}

ResourceLoaderBridge::LoadTimingInfo::LoadTimingInfo() {
  proxy_start = -1;
  proxy_end = -1;
  dns_start = -1;
  dns_end = -1;
  connect_start = -1;
  connect_end = -1;
  ssl_start = -1;
  ssl_end = -1;
  send_start = 0;
  send_end = 0;
  receive_headers_start = 0;
  receive_headers_end = 0;
}

ResourceLoaderBridge::LoadTimingInfo::~LoadTimingInfo() {
}

ResourceLoaderBridge::ResponseInfo::ResponseInfo() {
  content_length = -1;
  appcache_id = appcache::kNoCacheId;
  was_fetched_via_spdy = false;
  was_npn_negotiated = false;
  connection_id = 0;
  connection_reused = false;
  was_alternate_protocol_available = false;
  was_fetched_via_proxy = false;
}

ResourceLoaderBridge::ResponseInfo::~ResponseInfo() {
}

ResourceLoaderBridge::SyncLoadResponse::SyncLoadResponse() {
}

ResourceLoaderBridge::SyncLoadResponse::~SyncLoadResponse() {
}

ResourceLoaderBridge::ResourceLoaderBridge() {
}

ResourceLoaderBridge::~ResourceLoaderBridge() {
}

}  // namespace webkit_glue