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

Side by Side Diff: Source/core/timing/DOMWindowPerformance.h

Issue 910983005: Decouple performance() from LocalDOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef DOMWindowPerformance_h
6 #define DOMWindowPerformance_h
7
8 #include "core/frame/DOMWindowProperty.h"
9 #include "platform/Supplementable.h"
10 #include "platform/heap/Handle.h"
11
12 namespace blink {
13
14 class DOMWindow;
15 class Performance;
16
17 class DOMWindowPerformance final : public NoBaseWillBeGarbageCollected<DOMWindow Performance>, public WillBeHeapSupplement<LocalDOMWindow>, public DOMWindowPrope rty {
18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(DOMWindowPerformance);
19 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(DOMWindowPerformance);
20 public:
21 static DOMWindowPerformance& from(LocalDOMWindow&);
22 static Performance* performance(DOMWindow&);
23
24 void trace(Visitor*);
25
26 private:
27 explicit DOMWindowPerformance(LocalDOMWindow&);
28 static const char* supplementName();
29
30 Performance* performance();
31
32 LocalDOMWindow& m_window;
33 mutable RefPtrWillBeMember<Performance> m_performance;
Mike West 2015/02/12 18:52:44 Why does this need to be mutable?
34 };
35
36 } // namespace blink
37
38 #endif // DOMWindowPerformance_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698