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

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

Issue 2647643004: Report nav timing 2 instance as soon as it's requested. (Closed)
Patch Set: add TODO Created 3 years, 9 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 ScriptValue toJSONForBinding(ScriptState*) const; 69 ScriptValue toJSONForBinding(ScriptState*) const;
70 70
71 DECLARE_VIRTUAL_TRACE(); 71 DECLARE_VIRTUAL_TRACE();
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 PerformanceNavigationTiming* createNavigationTimingInstance() override;
80
79 static std::pair<String, DOMWindow*> sanitizedAttribution( 81 static std::pair<String, DOMWindow*> sanitizedAttribution(
80 ExecutionContext*, 82 ExecutionContext*,
81 bool hasMultipleContexts, 83 bool hasMultipleContexts,
82 LocalFrame* observerFrame); 84 LocalFrame* observerFrame);
83 85
84 // PerformanceMonitor::Client implementation. 86 // PerformanceMonitor::Client implementation.
85 void reportLongTask(double startTime, 87 void reportLongTask(double startTime,
86 double endTime, 88 double endTime,
87 ExecutionContext* taskContext, 89 ExecutionContext* taskContext,
88 bool hasMultipleContexts) override; 90 bool hasMultipleContexts) override;
89 91
90 mutable Member<PerformanceNavigation> m_navigation; 92 mutable Member<PerformanceNavigation> m_navigation;
91 mutable Member<PerformanceTiming> m_timing; 93 mutable Member<PerformanceTiming> m_timing;
92 }; 94 };
93 95
94 } // namespace blink 96 } // namespace blink
95 97
96 #endif // Performance_h 98 #endif // Performance_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/DocumentLoader.cpp ('k') | third_party/WebKit/Source/core/timing/Performance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698