| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include <memory> | 44 #include <memory> |
| 45 | 45 |
| 46 namespace blink { | 46 namespace blink { |
| 47 | 47 |
| 48 class Blob; | 48 class Blob; |
| 49 class DOMArrayBufferView; | 49 class DOMArrayBufferView; |
| 50 class EncodedFormData; | 50 class EncodedFormData; |
| 51 class FormData; | 51 class FormData; |
| 52 class LocalFrame; | 52 class LocalFrame; |
| 53 class KURL; | 53 class KURL; |
| 54 class ResourceRequest; | |
| 55 class SecurityOrigin; | |
| 56 | 54 |
| 57 // Issue an asynchronous, one-directional request at some resources, ignoring | 55 // Issue an asynchronous, one-directional request at some resources, ignoring |
| 58 // any response. The request is made independent of any LocalFrame staying | 56 // any response. The request is made independent of any LocalFrame staying |
| 59 // alive, and must only stay alive until the transmission has completed | 57 // alive, and must only stay alive until the transmission has completed |
| 60 // successfully (or not -- errors are not propagated back either.) Upon | 58 // successfully (or not -- errors are not propagated back either.) Upon |
| 61 // transmission, the the load is cancelled and the loader cancels itself. | 59 // transmission, the the load is cancelled and the loader cancels itself. |
| 62 // | 60 // |
| 63 // The ping loader is used by audit pings, beacon transmissions and image loads | 61 // The ping loader is used by audit pings, beacon transmissions and image loads |
| 64 // during page unloading. | 62 // during page unloading. |
| 65 class CORE_EXPORT PingLoader { | 63 class CORE_EXPORT PingLoader { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 87 const KURL&, | 85 const KURL&, |
| 88 DOMArrayBufferView*, | 86 DOMArrayBufferView*, |
| 89 int&); | 87 int&); |
| 90 static bool sendBeacon(LocalFrame*, int, const KURL&, Blob*, int&); | 88 static bool sendBeacon(LocalFrame*, int, const KURL&, Blob*, int&); |
| 91 static bool sendBeacon(LocalFrame*, int, const KURL&, FormData*, int&); | 89 static bool sendBeacon(LocalFrame*, int, const KURL&, FormData*, int&); |
| 92 }; | 90 }; |
| 93 | 91 |
| 94 } // namespace blink | 92 } // namespace blink |
| 95 | 93 |
| 96 #endif // PingLoader_h | 94 #endif // PingLoader_h |
| OLD | NEW |