OLD | NEW |
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 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebPerformance_h | 31 #ifndef WebPerformance_h |
32 #define WebPerformance_h | 32 #define WebPerformance_h |
33 | 33 |
34 #include "../platform/WebCommon.h" | 34 #include "../platform/WebCommon.h" |
35 #include "../platform/WebPrivatePtr.h" | 35 #include "../platform/WebPrivatePtr.h" |
36 #include "WebNavigationType.h" | 36 #include "WebNavigationType.h" |
37 | 37 |
| 38 #if BLINK_IMPLEMENTATION |
| 39 #include "heap/Handle.h" |
| 40 #endif |
| 41 |
38 namespace WebCore { class Performance; } | 42 namespace WebCore { class Performance; } |
39 | 43 |
40 namespace blink { | 44 namespace blink { |
41 | 45 |
42 class WebPerformance { | 46 class WebPerformance { |
43 public: | 47 public: |
44 ~WebPerformance() { reset(); } | 48 ~WebPerformance() { reset(); } |
45 | 49 |
46 WebPerformance() { } | 50 WebPerformance() { } |
47 | 51 |
(...skipping 27 matching lines...) Expand all Loading... |
75 BLINK_EXPORT double responseEnd() const; | 79 BLINK_EXPORT double responseEnd() const; |
76 BLINK_EXPORT double domLoading() const; | 80 BLINK_EXPORT double domLoading() const; |
77 BLINK_EXPORT double domInteractive() const; | 81 BLINK_EXPORT double domInteractive() const; |
78 BLINK_EXPORT double domContentLoadedEventStart() const; | 82 BLINK_EXPORT double domContentLoadedEventStart() const; |
79 BLINK_EXPORT double domContentLoadedEventEnd() const; | 83 BLINK_EXPORT double domContentLoadedEventEnd() const; |
80 BLINK_EXPORT double domComplete() const; | 84 BLINK_EXPORT double domComplete() const; |
81 BLINK_EXPORT double loadEventStart() const; | 85 BLINK_EXPORT double loadEventStart() const; |
82 BLINK_EXPORT double loadEventEnd() const; | 86 BLINK_EXPORT double loadEventEnd() const; |
83 | 87 |
84 #if BLINK_IMPLEMENTATION | 88 #if BLINK_IMPLEMENTATION |
85 WebPerformance(const WTF::PassRefPtr<WebCore::Performance>&); | 89 WebPerformance(const PassRefPtrWillBeRawPtr<WebCore::Performance>&); |
86 WebPerformance& operator=(const WTF::PassRefPtr<WebCore::Performance>&); | 90 WebPerformance& operator=(const PassRefPtrWillBeRawPtr<WebCore::Performance>
&); |
87 operator WTF::PassRefPtr<WebCore::Performance>() const; | |
88 #endif | 91 #endif |
89 | 92 |
90 private: | 93 private: |
91 WebPrivatePtr<WebCore::Performance> m_private; | 94 WebPrivatePtr<WebCore::Performance> m_private; |
92 }; | 95 }; |
93 | 96 |
94 } // namespace blink | 97 } // namespace blink |
95 | 98 |
96 #endif | 99 #endif |
OLD | NEW |