OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
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 NavigatorDoNotTrack_h | 31 #ifndef NavigatorDoNotTrack_h |
32 #define NavigatorDoNotTrack_h | 32 #define NavigatorDoNotTrack_h |
33 | 33 |
34 #include "core/frame/DOMWindowProperty.h" | 34 #include "core/frame/DOMWindowProperty.h" |
| 35 #include "heap/Handle.h" |
35 #include "platform/Supplementable.h" | 36 #include "platform/Supplementable.h" |
36 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
37 | 38 |
38 namespace WebCore { | 39 namespace WebCore { |
39 | 40 |
40 class LocalFrame; | 41 class LocalFrame; |
41 class Navigator; | 42 class Navigator; |
42 | 43 |
43 class NavigatorDoNotTrack FINAL : public Supplement<Navigator>, public DOMWindow
Property { | 44 class NavigatorDoNotTrack FINAL : public NoBaseWillBeGarbageCollectedFinalized<N
avigatorDoNotTrack>, public WillBeHeapSupplement<Navigator>, public DOMWindowPro
perty { |
| 45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorDoNotTrack); |
44 public: | 46 public: |
45 virtual ~NavigatorDoNotTrack(); | 47 virtual ~NavigatorDoNotTrack(); |
46 static NavigatorDoNotTrack& from(Navigator&); | 48 static NavigatorDoNotTrack& from(Navigator&); |
47 | 49 |
48 static String doNotTrack(Navigator&); | 50 static String doNotTrack(Navigator&); |
49 | 51 |
50 String doNotTrack(); | 52 String doNotTrack(); |
51 | 53 |
| 54 void trace(Visitor*) { } |
| 55 |
52 private: | 56 private: |
53 explicit NavigatorDoNotTrack(LocalFrame*); | 57 explicit NavigatorDoNotTrack(LocalFrame*); |
54 static const char* supplementName(); | 58 static const char* supplementName(); |
55 }; | 59 }; |
56 | 60 |
57 } // namespace WebCore | 61 } // namespace WebCore |
58 | 62 |
59 #endif // NavigatorDoNotTrack_h | 63 #endif // NavigatorDoNotTrack_h |
OLD | NEW |