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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 28 matching lines...) Expand all
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class DocumentLoadTiming; 42 class DocumentLoadTiming;
43 class DocumentLoader; 43 class DocumentLoader;
44 struct DocumentTiming; 44 struct DocumentTiming;
45 class LocalFrame; 45 class LocalFrame;
46 class ResourceLoadTiming; 46 class ResourceLoadTiming;
47 47
48 class PerformanceTiming FINAL : public RefCountedWillBeGarbageCollectedFinalized <PerformanceTiming>, public ScriptWrappable, public DOMWindowProperty { 48 class PerformanceTiming FINAL : public RefCountedWillBeGarbageCollectedFinalized <PerformanceTiming>, public ScriptWrappable, public DOMWindowProperty {
49 DEFINE_WRAPPERTYPEINFO();
49 public: 50 public:
50 static PassRefPtrWillBeRawPtr<PerformanceTiming> create(LocalFrame* frame) 51 static PassRefPtrWillBeRawPtr<PerformanceTiming> create(LocalFrame* frame)
51 { 52 {
52 return adoptRefWillBeNoop(new PerformanceTiming(frame)); 53 return adoptRefWillBeNoop(new PerformanceTiming(frame));
53 } 54 }
54 55
55 unsigned long long navigationStart() const; 56 unsigned long long navigationStart() const;
56 unsigned long long unloadEventStart() const; 57 unsigned long long unloadEventStart() const;
57 unsigned long long unloadEventEnd() const; 58 unsigned long long unloadEventEnd() const;
58 unsigned long long redirectStart() const; 59 unsigned long long redirectStart() const;
(...skipping 21 matching lines...) Expand all
80 explicit PerformanceTiming(LocalFrame*); 81 explicit PerformanceTiming(LocalFrame*);
81 82
82 const DocumentTiming* documentTiming() const; 83 const DocumentTiming* documentTiming() const;
83 DocumentLoader* documentLoader() const; 84 DocumentLoader* documentLoader() const;
84 DocumentLoadTiming* documentLoadTiming() const; 85 DocumentLoadTiming* documentLoadTiming() const;
85 ResourceLoadTiming* resourceLoadTiming() const; 86 ResourceLoadTiming* resourceLoadTiming() const;
86 87
87 unsigned long long monotonicTimeToIntegerMilliseconds(double) const; 88 unsigned long long monotonicTimeToIntegerMilliseconds(double) const;
88 }; 89 };
89 90
90 } 91 } // namespace blink
91 92
92 #endif // !defined(PerformanceTiming_h) 93 #endif // PerformanceTiming_h
OLDNEW
« no previous file with comments | « Source/core/timing/PerformanceResourceTiming.h ('k') | Source/core/workers/DedicatedWorkerGlobalScope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698