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/Navigator.h" | 8 #include "core/frame/Navigator.h" |
9 #include "platform/Supplementable.h" | 9 #include "platform/Supplementable.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
(...skipping 25 matching lines...) Expand all Loading... | |
36 | 36 |
37 static const char* supplementName(); | 37 static const char* supplementName(); |
38 | 38 |
39 bool sendBeacon(ExecutionContext*, const String&, const String&, ExceptionSt ate&); | 39 bool sendBeacon(ExecutionContext*, const String&, const String&, ExceptionSt ate&); |
40 bool sendBeacon(ExecutionContext*, const String&, PassRefPtr<WTF::ArrayBuffe rView>, ExceptionState&); | 40 bool sendBeacon(ExecutionContext*, const String&, PassRefPtr<WTF::ArrayBuffe rView>, ExceptionState&); |
41 bool sendBeacon(ExecutionContext*, const String&, PassRefPtrWillBeRawPtr<Blo b>, ExceptionState&); | 41 bool sendBeacon(ExecutionContext*, const String&, PassRefPtrWillBeRawPtr<Blo b>, ExceptionState&); |
42 bool sendBeacon(ExecutionContext*, const String&, PassRefPtrWillBeRawPtr<DOM FormData>, ExceptionState&); | 42 bool sendBeacon(ExecutionContext*, const String&, PassRefPtrWillBeRawPtr<DOM FormData>, ExceptionState&); |
43 | 43 |
44 bool canSendBeacon(ExecutionContext*, const KURL&, ExceptionState&); | 44 bool canSendBeacon(ExecutionContext*, const KURL&, ExceptionState&); |
45 int maxAllowance() const; | 45 int maxAllowance() const; |
46 void updateTransmittedBytes(int); | 46 |
47 bool beaconResult(ExecutionContext*, bool, int); | |
tkent
2014/07/25 00:11:47
nit: It's hard to know what bool and int are. Ple
sof
2014/07/25 05:29:56
Yes, little bit too opaque without; done.
| |
47 | 48 |
48 int m_transmittedBytes; | 49 int m_transmittedBytes; |
49 Navigator& m_navigator; | 50 Navigator& m_navigator; |
50 }; | 51 }; |
51 | 52 |
52 } // namespace blink | 53 } // namespace blink |
53 | 54 |
54 #endif // NavigatorBeacon_h | 55 #endif // NavigatorBeacon_h |
OLD | NEW |