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

Side by Side Diff: third_party/WebKit/Source/core/timing/Performance.h

Issue 2668753006: Special-case LocalDOMWindow for same-origin access in bindings. (Closed)
Patch Set: . Created 3 years, 10 months 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 * 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 private: 73 private:
74 explicit Performance(LocalFrame*); 74 explicit Performance(LocalFrame*);
75 75
76 // ContextLifecycleObserver overrides. 76 // ContextLifecycleObserver overrides.
77 void contextDestroyed(ExecutionContext*) override; 77 void contextDestroyed(ExecutionContext*) override;
78 78
79 static std::pair<String, DOMWindow*> sanitizedAttribution( 79 static std::pair<String, DOMWindow*> sanitizedAttribution(
80 ExecutionContext*, 80 ExecutionContext*,
81 bool hasMultipleContexts, 81 bool hasMultipleContexts,
82 Frame* observerFrame); 82 LocalFrame* observerFrame);
dcheng 2017/02/01 07:22:59 We can change this because if you read the long ta
83 83
84 // PerformanceMonitor::Client implementation. 84 // PerformanceMonitor::Client implementation.
85 void reportLongTask(double startTime, 85 void reportLongTask(double startTime,
86 double endTime, 86 double endTime,
87 ExecutionContext* taskContext, 87 ExecutionContext* taskContext,
88 bool hasMultipleContexts) override; 88 bool hasMultipleContexts) override;
89 89
90 mutable Member<PerformanceNavigation> m_navigation; 90 mutable Member<PerformanceNavigation> m_navigation;
91 mutable Member<PerformanceTiming> m_timing; 91 mutable Member<PerformanceTiming> m_timing;
92 }; 92 };
93 93
94 } // namespace blink 94 } // namespace blink
95 95
96 #endif // Performance_h 96 #endif // Performance_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698