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

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

Issue 812873003: Clean up forward declarations in WebKit/Source (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: style fix Created 6 years 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
« no previous file with comments | « Source/core/xml/XMLSerializer.h ('k') | Source/modules/encryptedmedia/MediaKeySession.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class Blob; 14 class Blob;
15 class DOMArrayBufferView;
16 class DOMFormData;
17 class ExceptionState; 15 class ExceptionState;
18 class ExecutionContext; 16 class ExecutionContext;
19 class KURL; 17 class KURL;
20 class ArrayBufferViewOrBlobOrStringOrFormData; 18 class ArrayBufferViewOrBlobOrStringOrFormData;
21 19
22 class NavigatorBeacon final : public NoBaseWillBeGarbageCollected<NavigatorBeaco n>, public WillBeHeapSupplement<Navigator> { 20 class NavigatorBeacon final : public NoBaseWillBeGarbageCollected<NavigatorBeaco n>, public WillBeHeapSupplement<Navigator> {
23 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorBeacon); 21 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorBeacon);
24 public: 22 public:
25 static NavigatorBeacon& from(Navigator&); 23 static NavigatorBeacon& from(Navigator&);
26 24
27 static bool sendBeacon(ExecutionContext*, Navigator&, const String&, const A rrayBufferViewOrBlobOrStringOrFormData&, ExceptionState&); 25 static bool sendBeacon(ExecutionContext*, Navigator&, const String&, const A rrayBufferViewOrBlobOrStringOrFormData&, ExceptionState&);
28 26
29 private: 27 private:
30 explicit NavigatorBeacon(Navigator&); 28 explicit NavigatorBeacon(Navigator&);
31 29
32 static const char* supplementName(); 30 static const char* supplementName();
33 31
34 bool canSendBeacon(ExecutionContext*, const KURL&, ExceptionState&); 32 bool canSendBeacon(ExecutionContext*, const KURL&, ExceptionState&);
35 int maxAllowance() const; 33 int maxAllowance() const;
36 bool beaconResult(ExecutionContext*, bool allowed, int sentBytes); 34 bool beaconResult(ExecutionContext*, bool allowed, int sentBytes);
37 35
38 int m_transmittedBytes; 36 int m_transmittedBytes;
39 Navigator& m_navigator; 37 Navigator& m_navigator;
40 }; 38 };
41 39
42 } // namespace blink 40 } // namespace blink
43 41
44 #endif // NavigatorBeacon_h 42 #endif // NavigatorBeacon_h
OLDNEW
« no previous file with comments | « Source/core/xml/XMLSerializer.h ('k') | Source/modules/encryptedmedia/MediaKeySession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698