| 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 BeaconLoader_h | 5 #ifndef BeaconLoader_h |
| 6 #define BeaconLoader_h | 6 #define BeaconLoader_h |
| 7 | 7 |
| 8 #include "core/loader/PingLoader.h" | 8 #include "core/loader/PingLoader.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "wtf/Noncopyable.h" | 10 #include "wtf/Noncopyable.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 24 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
| 25 public: | 25 public: |
| 26 virtual ~BeaconLoader() { } | 26 virtual ~BeaconLoader() { } |
| 27 | 27 |
| 28 static bool sendBeacon(LocalFrame*, int, const KURL&, const String&, int&); | 28 static bool sendBeacon(LocalFrame*, int, const KURL&, const String&, int&); |
| 29 static bool sendBeacon(LocalFrame*, int, const KURL&, PassRefPtr<DOMArrayBuf
ferView>, int&); | 29 static bool sendBeacon(LocalFrame*, int, const KURL&, PassRefPtr<DOMArrayBuf
ferView>, int&); |
| 30 static bool sendBeacon(LocalFrame*, int, const KURL&, Blob*, int&); | 30 static bool sendBeacon(LocalFrame*, int, const KURL&, Blob*, int&); |
| 31 static bool sendBeacon(LocalFrame*, int, const KURL&, PassRefPtrWillBeRawPtr
<DOMFormData>, int&); | 31 static bool sendBeacon(LocalFrame*, int, const KURL&, PassRefPtrWillBeRawPtr
<DOMFormData>, int&); |
| 32 | 32 |
| 33 private: | 33 private: |
| 34 static void prepareRequest(LocalFrame*, ResourceRequest&); | 34 class Sender; |
| 35 static void issueRequest(LocalFrame*, ResourceRequest&); | |
| 36 }; | 35 }; |
| 37 | 36 |
| 38 } // namespace blink | 37 } // namespace blink |
| 39 | 38 |
| 40 #endif // BeaconLoader_h | 39 #endif // BeaconLoader_h |
| OLD | NEW |