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

Side by Side Diff: Source/core/dom/DocumentTiming.h

Issue 1290593004: Oilpan: fix build after r200730. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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
1 /* 1 /*
2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 14 matching lines...) Expand all
25 25
26 #ifndef DocumentTiming_h 26 #ifndef DocumentTiming_h
27 #define DocumentTiming_h 27 #define DocumentTiming_h
28 28
29 #include "platform/heap/Handle.h" 29 #include "platform/heap/Handle.h"
30 30
31 namespace blink { 31 namespace blink {
32 32
33 class Document; 33 class Document;
34 34
35 class DocumentTiming { 35 class DocumentTiming final {
36 DISALLOW_ALLOCATION();
36 public: 37 public:
37 DocumentTiming(WeakPtrWillBeRawPtr<Document>); 38 DocumentTiming(WeakPtrWillBeRawPtr<Document>);
38 39
39 void markDomLoading(); 40 void markDomLoading();
40 void markDomInteractive(); 41 void markDomInteractive();
41 void markDomContentLoadedEventStart(); 42 void markDomContentLoadedEventStart();
42 void markDomContentLoadedEventEnd(); 43 void markDomContentLoadedEventEnd();
43 void markDomComplete(); 44 void markDomComplete();
44 void markFirstLayout(); 45 void markFirstLayout();
45 46
46 double domLoading() const { return m_domLoading; } 47 double domLoading() const { return m_domLoading; }
47 double domInteractive() const { return m_domInteractive; } 48 double domInteractive() const { return m_domInteractive; }
48 double domContentLoadedEventStart() const { return m_domContentLoadedEventSt art; } 49 double domContentLoadedEventStart() const { return m_domContentLoadedEventSt art; }
49 double domContentLoadedEventEnd() const { return m_domContentLoadedEventEnd; } 50 double domContentLoadedEventEnd() const { return m_domContentLoadedEventEnd; }
50 double domComplete() const { return m_domComplete; } 51 double domComplete() const { return m_domComplete; }
51 double firstLayout() const { return m_firstLayout; } 52 double firstLayout() const { return m_firstLayout; }
52 53
54 DECLARE_TRACE();
55
53 private: 56 private:
54 void notifyDocumentTimingChanged(); 57 void notifyDocumentTimingChanged();
55 58
56 double m_domLoading; 59 double m_domLoading;
57 double m_domInteractive; 60 double m_domInteractive;
58 double m_domContentLoadedEventStart; 61 double m_domContentLoadedEventStart;
59 double m_domContentLoadedEventEnd; 62 double m_domContentLoadedEventEnd;
60 double m_domComplete; 63 double m_domComplete;
61 double m_firstLayout; 64 double m_firstLayout;
62 65
63 WeakPtrWillBeRawPtr<Document> m_document; 66 WeakPtrWillBeMember<Document> m_document;
haraken 2015/08/19 00:00:20 I wonder why this needs to be a WeakPtr in non-oil
sof 2015/08/19 05:18:46 It is/was a good question, see https://codereview.
64 }; 67 };
65 68
66 } 69 }
67 70
68 #endif 71 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698