Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: third_party/WebKit/Source/core/loader/PingLoader.h

Issue 2753863003: Clarify Beacon transmission limit checking. (Closed)
Patch Set: rebased upto r459528 Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const KURL& pingURL, 71 const KURL& pingURL,
72 const KURL& destinationURL); 72 const KURL& destinationURL);
73 static void sendViolationReport(LocalFrame*, 73 static void sendViolationReport(LocalFrame*,
74 const KURL& reportURL, 74 const KURL& reportURL,
75 PassRefPtr<EncodedFormData> report, 75 PassRefPtr<EncodedFormData> report,
76 ViolationReportType); 76 ViolationReportType);
77 77
78 // The last argument is guaranteed to be set to the size of payload if 78 // The last argument is guaranteed to be set to the size of payload if
79 // these method return true. If these method returns false, the value 79 // these method return true. If these method returns false, the value
80 // shouldn't be used. 80 // shouldn't be used.
81 static bool sendBeacon(LocalFrame*, int, const KURL&, const String&, int&); 81 static bool sendBeacon(LocalFrame*, int, const KURL&, const String&, size_t&);
82 static bool sendBeacon(LocalFrame*, 82 static bool sendBeacon(LocalFrame*,
83 int, 83 int,
84 const KURL&, 84 const KURL&,
85 DOMArrayBufferView*, 85 DOMArrayBufferView*,
86 int&); 86 size_t&);
87 static bool sendBeacon(LocalFrame*, int, const KURL&, Blob*, int&); 87 static bool sendBeacon(LocalFrame*, int, const KURL&, Blob*, size_t&);
88 static bool sendBeacon(LocalFrame*, int, const KURL&, FormData*, int&); 88 static bool sendBeacon(LocalFrame*, int, const KURL&, FormData*, size_t&);
89 }; 89 };
90 90
91 } // namespace blink 91 } // namespace blink
92 92
93 #endif // PingLoader_h 93 #endif // PingLoader_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/Settings.json5 ('k') | third_party/WebKit/Source/core/loader/PingLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698