| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 #include "platform/loader/fetch/FetchUtils.h" | 56 #include "platform/loader/fetch/FetchUtils.h" |
| 57 #include "platform/loader/fetch/ResourceError.h" | 57 #include "platform/loader/fetch/ResourceError.h" |
| 58 #include "platform/loader/fetch/ResourceFetcher.h" | 58 #include "platform/loader/fetch/ResourceFetcher.h" |
| 59 #include "platform/loader/fetch/ResourceRequest.h" | 59 #include "platform/loader/fetch/ResourceRequest.h" |
| 60 #include "platform/loader/fetch/ResourceResponse.h" | 60 #include "platform/loader/fetch/ResourceResponse.h" |
| 61 #include "platform/loader/fetch/UniqueIdentifier.h" | 61 #include "platform/loader/fetch/UniqueIdentifier.h" |
| 62 #include "platform/network/EncodedFormData.h" | 62 #include "platform/network/EncodedFormData.h" |
| 63 #include "platform/network/ParsedContentType.h" | 63 #include "platform/network/ParsedContentType.h" |
| 64 #include "platform/weborigin/SecurityOrigin.h" | 64 #include "platform/weborigin/SecurityOrigin.h" |
| 65 #include "platform/weborigin/SecurityPolicy.h" | 65 #include "platform/weborigin/SecurityPolicy.h" |
| 66 #include "platform/wtf/Compiler.h" |
| 67 #include "platform/wtf/Functional.h" |
| 68 #include "platform/wtf/PtrUtil.h" |
| 66 #include "public/platform/Platform.h" | 69 #include "public/platform/Platform.h" |
| 67 #include "public/platform/WebURLLoader.h" | 70 #include "public/platform/WebURLLoader.h" |
| 68 #include "public/platform/WebURLRequest.h" | 71 #include "public/platform/WebURLRequest.h" |
| 69 #include "public/platform/WebURLResponse.h" | 72 #include "public/platform/WebURLResponse.h" |
| 70 #include "wtf/Compiler.h" | |
| 71 #include "wtf/Functional.h" | |
| 72 #include "wtf/PtrUtil.h" | |
| 73 | 73 |
| 74 namespace blink { | 74 namespace blink { |
| 75 | 75 |
| 76 namespace { | 76 namespace { |
| 77 | 77 |
| 78 class Beacon { | 78 class Beacon { |
| 79 STACK_ALLOCATED(); | 79 STACK_ALLOCATED(); |
| 80 | 80 |
| 81 public: | 81 public: |
| 82 virtual void Serialize(ResourceRequest&) const = 0; | 82 virtual void Serialize(ResourceRequest&) const = 0; |
| (...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 bool PingLoader::SendBeacon(LocalFrame* frame, | 582 bool PingLoader::SendBeacon(LocalFrame* frame, |
| 583 int allowance, | 583 int allowance, |
| 584 const KURL& beacon_url, | 584 const KURL& beacon_url, |
| 585 Blob* data, | 585 Blob* data, |
| 586 size_t& beacon_size) { | 586 size_t& beacon_size) { |
| 587 BeaconBlob beacon(data); | 587 BeaconBlob beacon(data); |
| 588 return SendBeaconCommon(frame, allowance, beacon_url, beacon, beacon_size); | 588 return SendBeaconCommon(frame, allowance, beacon_url, beacon, beacon_size); |
| 589 } | 589 } |
| 590 | 590 |
| 591 } // namespace blink | 591 } // namespace blink |
| OLD | NEW |