OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NavigatorBeacon_h | 5 #ifndef NavigatorBeacon_h |
6 #define NavigatorBeacon_h | 6 #define NavigatorBeacon_h |
7 | 7 |
8 #include "core/frame/DOMWindowProperty.h" | 8 #include "core/frame/DOMWindowProperty.h" |
9 #include "core/frame/Navigator.h" | 9 #include "core/frame/Navigator.h" |
10 #include "platform/Supplementable.h" | 10 #include "platform/Supplementable.h" |
11 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class Blob; | |
16 class ExceptionState; | 15 class ExceptionState; |
17 class ExecutionContext; | 16 class ExecutionContext; |
18 class KURL; | 17 class KURL; |
19 class ArrayBufferViewOrBlobOrStringOrFormData; | 18 class ArrayBufferViewOrBlobOrStringOrFormData; |
20 | 19 |
21 class NavigatorBeacon final : public GarbageCollectedFinalized<NavigatorBeacon>, | 20 class NavigatorBeacon final : public GarbageCollectedFinalized<NavigatorBeacon>, |
22 public DOMWindowProperty, | 21 public DOMWindowProperty, |
23 public Supplement<Navigator> { | 22 public Supplement<Navigator> { |
24 USING_GARBAGE_COLLECTED_MIXIN(NavigatorBeacon); | 23 USING_GARBAGE_COLLECTED_MIXIN(NavigatorBeacon); |
25 | 24 |
(...skipping 17 matching lines...) Expand all Loading... |
43 bool canSendBeacon(ExecutionContext*, const KURL&, ExceptionState&); | 42 bool canSendBeacon(ExecutionContext*, const KURL&, ExceptionState&); |
44 int maxAllowance() const; | 43 int maxAllowance() const; |
45 void addTransmittedBytes(int sentBytes); | 44 void addTransmittedBytes(int sentBytes); |
46 | 45 |
47 int m_transmittedBytes; | 46 int m_transmittedBytes; |
48 }; | 47 }; |
49 | 48 |
50 } // namespace blink | 49 } // namespace blink |
51 | 50 |
52 #endif // NavigatorBeacon_h | 51 #endif // NavigatorBeacon_h |
OLD | NEW |