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

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

Issue 2761113002: Move getNavigationType logic from PerformanceBase to PerformanceNavigationTiming. (Closed)
Patch Set: sync to HEAD Created 3 years, 8 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void registerPerformanceObserver(PerformanceObserver&); 130 void registerPerformanceObserver(PerformanceObserver&);
131 void updatePerformanceObserverFilterOptions(); 131 void updatePerformanceObserverFilterOptions();
132 void activateObserver(PerformanceObserver&); 132 void activateObserver(PerformanceObserver&);
133 void resumeSuspendedObservers(); 133 void resumeSuspendedObservers();
134 134
135 static bool allowsTimingRedirect(const Vector<ResourceResponse>&, 135 static bool allowsTimingRedirect(const Vector<ResourceResponse>&,
136 const ResourceResponse&, 136 const ResourceResponse&,
137 const SecurityOrigin&, 137 const SecurityOrigin&,
138 ExecutionContext*); 138 ExecutionContext*);
139 139
140 static PerformanceNavigationTiming::NavigationType getNavigationType(
141 NavigationType,
142 const Document*);
143
144 DECLARE_VIRTUAL_TRACE(); 140 DECLARE_VIRTUAL_TRACE();
145 141
146 private: 142 private:
147 static bool passesTimingAllowCheck(const ResourceResponse&, 143 static bool passesTimingAllowCheck(const ResourceResponse&,
148 const SecurityOrigin&, 144 const SecurityOrigin&,
149 const AtomicString&, 145 const AtomicString&,
150 ExecutionContext*); 146 ExecutionContext*);
151 147
152 void addPaintTiming(PerformancePaintTiming::PaintType, double startTime); 148 void addPaintTiming(PerformancePaintTiming::PaintType, double startTime);
153 149
(...skipping 29 matching lines...) Expand all
183 PerformanceEntryTypeMask m_observerFilterOptions; 179 PerformanceEntryTypeMask m_observerFilterOptions;
184 PerformanceObservers m_observers; 180 PerformanceObservers m_observers;
185 PerformanceObservers m_activeObservers; 181 PerformanceObservers m_activeObservers;
186 PerformanceObservers m_suspendedObservers; 182 PerformanceObservers m_suspendedObservers;
187 TaskRunnerTimer<PerformanceBase> m_deliverObservationsTimer; 183 TaskRunnerTimer<PerformanceBase> m_deliverObservationsTimer;
188 }; 184 };
189 185
190 } // namespace blink 186 } // namespace blink
191 187
192 #endif // PerformanceBase_h 188 #endif // PerformanceBase_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/timing/PerformanceBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698