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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 namespace WebCore { | 47 namespace WebCore { |
48 | 48 |
49 class Document; | 49 class Document; |
50 class ExceptionState; | 50 class ExceptionState; |
51 class ResourceRequest; | 51 class ResourceRequest; |
52 class ResourceResponse; | 52 class ResourceResponse; |
53 class ResourceTimingInfo; | 53 class ResourceTimingInfo; |
54 class UserTiming; | 54 class UserTiming; |
55 | 55 |
56 class Performance : public ScriptWrappable, public RefCounted<Performance>, publ
ic DOMWindowProperty, public EventTargetWithInlineData { | 56 class Performance FINAL : public ScriptWrappable, public RefCounted<Performance>
, public DOMWindowProperty, public EventTargetWithInlineData { |
57 REFCOUNTED_EVENT_TARGET(Performance); | 57 REFCOUNTED_EVENT_TARGET(Performance); |
58 public: | 58 public: |
59 static PassRefPtr<Performance> create(Frame* frame) { return adoptRef(new Pe
rformance(frame)); } | 59 static PassRefPtr<Performance> create(Frame* frame) { return adoptRef(new Pe
rformance(frame)); } |
60 ~Performance(); | 60 virtual ~Performance(); |
61 | 61 |
62 virtual const AtomicString& interfaceName() const OVERRIDE; | 62 virtual const AtomicString& interfaceName() const OVERRIDE; |
63 virtual ExecutionContext* executionContext() const OVERRIDE; | 63 virtual ExecutionContext* executionContext() const OVERRIDE; |
64 | 64 |
65 PassRefPtr<MemoryInfo> memory() const; | 65 PassRefPtr<MemoryInfo> memory() const; |
66 PerformanceNavigation* navigation() const; | 66 PerformanceNavigation* navigation() const; |
67 PerformanceTiming* timing() const; | 67 PerformanceTiming* timing() const; |
68 double now() const; | 68 double now() const; |
69 | 69 |
70 Vector<RefPtr<PerformanceEntry> > getEntries() const; | 70 Vector<RefPtr<PerformanceEntry> > getEntries() const; |
(...skipping 25 matching lines...) Expand all Loading... |
96 Vector<RefPtr<PerformanceEntry> > m_resourceTimingBuffer; | 96 Vector<RefPtr<PerformanceEntry> > m_resourceTimingBuffer; |
97 unsigned m_resourceTimingBufferSize; | 97 unsigned m_resourceTimingBufferSize; |
98 double m_referenceTime; | 98 double m_referenceTime; |
99 | 99 |
100 RefPtr<UserTiming> m_userTiming; | 100 RefPtr<UserTiming> m_userTiming; |
101 }; | 101 }; |
102 | 102 |
103 } | 103 } |
104 | 104 |
105 #endif // Performance_h | 105 #endif // Performance_h |
OLD | NEW |