OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * Copyright (C) 2012 Intel Inc. All rights reserved. | 3 * Copyright (C) 2012 Intel Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 30 matching lines...) Expand all Loading... |
41 #include "core/html/HTMLFrameOwnerElement.h" | 41 #include "core/html/HTMLFrameOwnerElement.h" |
42 #include "core/loader/DocumentLoader.h" | 42 #include "core/loader/DocumentLoader.h" |
43 #include "core/origin_trials/OriginTrials.h" | 43 #include "core/origin_trials/OriginTrials.h" |
44 #include "core/timing/PerformanceTiming.h" | 44 #include "core/timing/PerformanceTiming.h" |
45 | 45 |
46 static const double kLongTaskThreshold = 0.05; | 46 static const double kLongTaskThreshold = 0.05; |
47 | 47 |
48 static const char kUnknownAttribution[] = "unknown"; | 48 static const char kUnknownAttribution[] = "unknown"; |
49 static const char kAmbiguousAttribution[] = "multiple-contexts"; | 49 static const char kAmbiguousAttribution[] = "multiple-contexts"; |
50 static const char kSameOriginAttribution[] = "same-origin"; | 50 static const char kSameOriginAttribution[] = "same-origin"; |
51 static const char kSameOriginSelfAttribution[] = "same-origin-self"; | 51 static const char kSameOriginSelfAttribution[] = "self"; |
52 static const char kSameOriginAncestorAttribution[] = "same-origin-ancestor"; | 52 static const char kSameOriginAncestorAttribution[] = "same-origin-ancestor"; |
53 static const char kSameOriginDescendantAttribution[] = "same-origin-descendant"; | 53 static const char kSameOriginDescendantAttribution[] = "same-origin-descendant"; |
54 static const char kCrossOriginAncestorAttribution[] = "cross-origin-ancestor"; | 54 static const char kCrossOriginAncestorAttribution[] = "cross-origin-ancestor"; |
55 static const char kCrossOriginDescendantAttribution[] = | 55 static const char kCrossOriginDescendantAttribution[] = |
56 "cross-origin-descendant"; | 56 "cross-origin-descendant"; |
57 static const char kCrossOriginAttribution[] = "cross-origin-unreachable"; | 57 static const char kCrossOriginAttribution[] = "cross-origin-unreachable"; |
58 | 58 |
59 namespace blink { | 59 namespace blink { |
60 | 60 |
61 namespace { | 61 namespace { |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 HTMLFrameOwnerElement* frameOwner = | 241 HTMLFrameOwnerElement* frameOwner = |
242 culpritDomWindow->document()->localOwner(); | 242 culpritDomWindow->document()->localOwner(); |
243 addLongTaskTiming(startTime, endTime, attribution.first, | 243 addLongTaskTiming(startTime, endTime, attribution.first, |
244 getFrameAttribute(frameOwner, HTMLNames::srcAttr, false), | 244 getFrameAttribute(frameOwner, HTMLNames::srcAttr, false), |
245 getFrameAttribute(frameOwner, HTMLNames::idAttr, false), | 245 getFrameAttribute(frameOwner, HTMLNames::idAttr, false), |
246 getFrameAttribute(frameOwner, HTMLNames::nameAttr, true)); | 246 getFrameAttribute(frameOwner, HTMLNames::nameAttr, true)); |
247 } | 247 } |
248 } | 248 } |
249 | 249 |
250 } // namespace blink | 250 } // namespace blink |
OLD | NEW |