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

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

Issue 1171893004: bindings: Supports serializer for PerformanceTiming. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added a test for PerformanceTiming's serializer. Created 5 years, 6 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 25 matching lines...) Expand all
36 #include "core/frame/DOMWindowProperty.h" 36 #include "core/frame/DOMWindowProperty.h"
37 #include "platform/heap/Handle.h" 37 #include "platform/heap/Handle.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class DocumentLoadTiming; 41 class DocumentLoadTiming;
42 class DocumentLoader; 42 class DocumentLoader;
43 class DocumentTiming; 43 class DocumentTiming;
44 class LocalFrame; 44 class LocalFrame;
45 class ResourceLoadTiming; 45 class ResourceLoadTiming;
46 class ScriptState;
47 class ScriptValue;
46 48
47 class CORE_EXPORT PerformanceTiming final : public GarbageCollectedFinalized<Per formanceTiming>, public ScriptWrappable, public DOMWindowProperty { 49 class CORE_EXPORT PerformanceTiming final : public GarbageCollectedFinalized<Per formanceTiming>, public ScriptWrappable, public DOMWindowProperty {
48 DEFINE_WRAPPERTYPEINFO(); 50 DEFINE_WRAPPERTYPEINFO();
49 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PerformanceTiming); 51 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(PerformanceTiming);
50 public: 52 public:
51 static PerformanceTiming* create(LocalFrame* frame) 53 static PerformanceTiming* create(LocalFrame* frame)
52 { 54 {
53 return new PerformanceTiming(frame); 55 return new PerformanceTiming(frame);
54 } 56 }
55 57
(...skipping 12 matching lines...) Expand all
68 unsigned long long responseStart() const; 70 unsigned long long responseStart() const;
69 unsigned long long responseEnd() const; 71 unsigned long long responseEnd() const;
70 unsigned long long domLoading() const; 72 unsigned long long domLoading() const;
71 unsigned long long domInteractive() const; 73 unsigned long long domInteractive() const;
72 unsigned long long domContentLoadedEventStart() const; 74 unsigned long long domContentLoadedEventStart() const;
73 unsigned long long domContentLoadedEventEnd() const; 75 unsigned long long domContentLoadedEventEnd() const;
74 unsigned long long domComplete() const; 76 unsigned long long domComplete() const;
75 unsigned long long loadEventStart() const; 77 unsigned long long loadEventStart() const;
76 unsigned long long loadEventEnd() const; 78 unsigned long long loadEventEnd() const;
77 79
80 ScriptValue toJSONForBinding(ScriptState*);
81
78 DECLARE_VIRTUAL_TRACE(); 82 DECLARE_VIRTUAL_TRACE();
79 83
80 unsigned long long monotonicTimeToIntegerMilliseconds(double) const; 84 unsigned long long monotonicTimeToIntegerMilliseconds(double) const;
81 double integerMillisecondsToMonotonicTime(unsigned long long) const; 85 double integerMillisecondsToMonotonicTime(unsigned long long) const;
82 86
83 private: 87 private:
84 explicit PerformanceTiming(LocalFrame*); 88 explicit PerformanceTiming(LocalFrame*);
85 89
86 const DocumentTiming* documentTiming() const; 90 const DocumentTiming* documentTiming() const;
87 DocumentLoader* documentLoader() const; 91 DocumentLoader* documentLoader() const;
88 DocumentLoadTiming* documentLoadTiming() const; 92 DocumentLoadTiming* documentLoadTiming() const;
89 ResourceLoadTiming* resourceLoadTiming() const; 93 ResourceLoadTiming* resourceLoadTiming() const;
90 }; 94 };
91 95
92 } // namespace blink 96 } // namespace blink
93 97
94 #endif // PerformanceTiming_h 98 #endif // PerformanceTiming_h
OLDNEW
« no previous file with comments | « LayoutTests/webexposed/global-interface-listing-expected.txt ('k') | Source/core/timing/PerformanceTiming.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698