Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: third_party/WebKit/Source/core/timing/PerformanceNavigationTiming.idl

Issue 2472583003: Navigation Timing Level 2 (Closed)
Patch Set: First working version Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1
1 /* 2 /*
2 * Copyright (C) 2016 Google Inc. All rights reserved. 3 * Copyright (C) 2016 Google Inc. All rights reserved.
3 * 4 *
4 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
6 * met: 7 * met:
7 * 8 *
8 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 11 * * Redistributions in binary form must reproduce the above
(...skipping 10 matching lines...) Expand all
21 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 22 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 23 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 24 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 25 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 30 */
30 31
31 #ifndef WebMixedContent_h 32 // https://www.w3.org/TR/navigation-timing-2/#dfn-current-document
32 #define WebMixedContent_h
33 33
34 #include "public/platform/WebURLRequest.h" 34 enum NavigationType {
35 35 "navigate",
36 namespace blink { 36 "reload",
37 37 "back_forward",
38 // Types and helper functions related to mixed content checks. 38 "prerender"
39 class WebMixedContent {
40 public:
41 enum class ContextType {
42 NotMixedContent,
43 Blockable,
44 OptionallyBlockable,
45 ShouldBeBlockable,
46 };
47
48 BLINK_PLATFORM_EXPORT static ContextType contextTypeFromRequestContext(
49 WebURLRequest::RequestContext,
50 bool strictMixedContentCheckingForPlugin);
51
52 BLINK_PLATFORM_EXPORT static const char* requestContextName(
53 WebURLRequest::RequestContext);
54 }; 39 };
55 40
56 } // namespace blink 41 interface PerformanceNavigationTiming : PerformanceResourceTiming {
57 42 readonly attribute DOMHighResTimeStamp unloadEventStart;
58 #endif // WebMixedContent_h 43 readonly attribute DOMHighResTimeStamp unloadEventEnd;
44 readonly attribute DOMHighResTimeStamp domInteractive;
45 readonly attribute DOMHighResTimeStamp domContentLoadedEventStart;
46 readonly attribute DOMHighResTimeStamp domContentLoadedEventEnd;
47 readonly attribute DOMHighResTimeStamp domComplete;
48 readonly attribute DOMHighResTimeStamp loadEventStart;
49 readonly attribute DOMHighResTimeStamp loadEventEnd;
50 readonly attribute NavigationType type;
51 readonly attribute unsigned short redirectCount;
52 serializer = {inherit, attribute};
53 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698