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

Side by Side Diff: third_party/WebKit/Source/modules/beacon/NavigatorBeacon.h

Issue 2753863003: Clarify Beacon transmission limit checking. (Closed)
Patch Set: rebased upto r459528 Created 3 years, 9 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 // 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
36 explicit NavigatorBeacon(Navigator&); 36 explicit NavigatorBeacon(Navigator&);
37 37
38 static const char* supplementName(); 38 static const char* supplementName();
39 39
40 bool sendBeaconImpl(ScriptState*, 40 bool sendBeaconImpl(ScriptState*,
41 const String&, 41 const String&,
42 const ArrayBufferViewOrBlobOrStringOrFormData&, 42 const ArrayBufferViewOrBlobOrStringOrFormData&,
43 ExceptionState&); 43 ExceptionState&);
44 bool canSendBeacon(ExecutionContext*, const KURL&, ExceptionState&); 44 bool canSendBeacon(ExecutionContext*, const KURL&, ExceptionState&);
45 int maxAllowance() const; 45 int maxAllowance() const;
46 void addTransmittedBytes(int sentBytes); 46 void addTransmittedBytes(size_t sentBytes);
47 47
48 int m_transmittedBytes; 48 size_t m_transmittedBytes;
49 }; 49 };
50 50
51 } // namespace blink 51 } // namespace blink
52 52
53 #endif // NavigatorBeacon_h 53 #endif // NavigatorBeacon_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/PingLoader.cpp ('k') | third_party/WebKit/Source/modules/beacon/NavigatorBeacon.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698