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 // The intent of this file is to provide a type-neutral abstraction between | 5 // The intent of this file is to provide a type-neutral abstraction between |
6 // Chrome and WebKit for resource loading. This pure-virtual interface is | 6 // Chrome and WebKit for resource loading. This pure-virtual interface is |
7 // implemented by the embedder, which also provides a factory method Create | 7 // implemented by the embedder, which also provides a factory method Create |
8 // to instantiate this object. | 8 // to instantiate this object. |
9 // | 9 // |
10 // One of these objects will be created by WebKit for each request. WebKit | 10 // One of these objects will be created by WebKit for each request. WebKit |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 // Structure containing timing information for the request. It addresses | 44 // Structure containing timing information for the request. It addresses |
45 // http://groups.google.com/group/http-archive-specification/web/har-1-1-spec | 45 // http://groups.google.com/group/http-archive-specification/web/har-1-1-spec |
46 // and http://dev.w3.org/2006/webapi/WebTiming/ needs. | 46 // and http://dev.w3.org/2006/webapi/WebTiming/ needs. |
47 // | 47 // |
48 // All the values for starts and ends are given in milliseconds and are | 48 // All the values for starts and ends are given in milliseconds and are |
49 // offsets with respect to the given base time. | 49 // offsets with respect to the given base time. |
50 struct ResourceLoadTimingInfo { | 50 struct ResourceLoadTimingInfo { |
51 ResourceLoadTimingInfo(); | 51 ResourceLoadTimingInfo(); |
52 ~ResourceLoadTimingInfo(); | 52 ~ResourceLoadTimingInfo(); |
53 | 53 |
54 // All the values in this struct are given as offsets in milliseconds wrt | 54 // All the values in this struct are given as offsets in ticks wrt |
55 // this base time. | 55 // this base tick count. |
56 int64 base_ticks; | |
pfeldman
2011/08/09 18:15:22
To clarify: you only need this to be able to compa
James Simonsen
2011/08/09 18:31:51
Oops. In my haste, I uploaded a slightly older bra
| |
57 | |
58 // The value of Time::Now() when base_ticks was set. | |
56 base::Time base_time; | 59 base::Time base_time; |
57 | 60 |
58 // The time that proxy processing started. For requests with no proxy phase, | 61 // The time that proxy processing started. For requests with no proxy phase, |
59 // this time is -1. | 62 // this time is -1. |
60 int32 proxy_start; | 63 int32 proxy_start; |
61 | 64 |
62 // The time that proxy processing ended. For reused sockets this time | 65 // The time that proxy processing ended. For reused sockets this time |
63 // is -1. | 66 // is -1. |
64 int32 proxy_end; | 67 int32 proxy_end; |
65 | 68 |
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
393 // construction must go through Create() | 396 // construction must go through Create() |
394 ResourceLoaderBridge(); | 397 ResourceLoaderBridge(); |
395 | 398 |
396 private: | 399 private: |
397 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); | 400 DISALLOW_COPY_AND_ASSIGN(ResourceLoaderBridge); |
398 }; | 401 }; |
399 | 402 |
400 } // namespace webkit_glue | 403 } // namespace webkit_glue |
401 | 404 |
402 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ | 405 #endif // WEBKIT_GLUE_RESOURCE_LOADER_BRIDGE_H_ |
OLD | NEW |