OLD | NEW |
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 class Document; | 50 class Document; |
51 class ExceptionState; | 51 class ExceptionState; |
52 class ResourceRequest; | 52 class ResourceRequest; |
53 class ResourceResponse; | 53 class ResourceResponse; |
54 class ResourceTimingInfo; | 54 class ResourceTimingInfo; |
55 class UserTiming; | 55 class UserTiming; |
56 | 56 |
57 typedef WillBeHeapVector<RefPtrWillBeMember<PerformanceEntry> > PerformanceEntry
Vector; | 57 typedef WillBeHeapVector<RefPtrWillBeMember<PerformanceEntry> > PerformanceEntry
Vector; |
58 | 58 |
59 class Performance FINAL : public RefCountedWillBeRefCountedGarbageCollected<Perf
ormance>, public ScriptWrappable, public DOMWindowProperty, public EventTargetWi
thInlineData { | 59 class Performance FINAL : public RefCountedWillBeRefCountedGarbageCollected<Perf
ormance>, public ScriptWrappable, public DOMWindowProperty, public EventTargetWi
thInlineData { |
60 DECLARE_GC_INFO; | |
61 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<P
erformance>); | 60 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<P
erformance>); |
62 public: | 61 public: |
63 static PassRefPtrWillBeRawPtr<Performance> create(Frame* frame) | 62 static PassRefPtrWillBeRawPtr<Performance> create(Frame* frame) |
64 { | 63 { |
65 return adoptRefCountedWillBeRefCountedGarbageCollected(new Performance(f
rame)); | 64 return adoptRefCountedWillBeRefCountedGarbageCollected(new Performance(f
rame)); |
66 } | 65 } |
67 virtual ~Performance(); | 66 virtual ~Performance(); |
68 | 67 |
69 virtual const AtomicString& interfaceName() const OVERRIDE; | 68 virtual const AtomicString& interfaceName() const OVERRIDE; |
70 virtual ExecutionContext* executionContext() const OVERRIDE; | 69 virtual ExecutionContext* executionContext() const OVERRIDE; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 PerformanceEntryVector m_resourceTimingBuffer; | 104 PerformanceEntryVector m_resourceTimingBuffer; |
106 unsigned m_resourceTimingBufferSize; | 105 unsigned m_resourceTimingBufferSize; |
107 double m_referenceTime; | 106 double m_referenceTime; |
108 | 107 |
109 RefPtrWillBeMember<UserTiming> m_userTiming; | 108 RefPtrWillBeMember<UserTiming> m_userTiming; |
110 }; | 109 }; |
111 | 110 |
112 } | 111 } |
113 | 112 |
114 #endif // Performance_h | 113 #endif // Performance_h |
OLD | NEW |