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

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

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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"
11 11
12 namespace WTF { 12 namespace WTF {
13 class ArrayBufferView; 13 class ArrayBufferView;
14 } 14 }
15 15
16 namespace blink { 16 namespace blink {
17 17
18 class Blob; 18 class Blob;
19 class DOMFormData; 19 class DOMFormData;
20 class ExceptionState; 20 class ExceptionState;
21 class ExecutionContext; 21 class ExecutionContext;
22 class KURL; 22 class KURL;
23 23
24 class NavigatorBeacon FINAL : public NoBaseWillBeGarbageCollected<NavigatorBeaco n>, public WillBeHeapSupplement<Navigator> { 24 class NavigatorBeacon final : public NoBaseWillBeGarbageCollected<NavigatorBeaco n>, public WillBeHeapSupplement<Navigator> {
25 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorBeacon); 25 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NavigatorBeacon);
26 public: 26 public:
27 static NavigatorBeacon& from(Navigator&); 27 static NavigatorBeacon& from(Navigator&);
28 28
29 static bool sendBeacon(ExecutionContext*, Navigator&, const String&, const S tring&, ExceptionState&); 29 static bool sendBeacon(ExecutionContext*, Navigator&, const String&, const S tring&, ExceptionState&);
30 static bool sendBeacon(ExecutionContext*, Navigator&, const String&, PassRef Ptr<WTF::ArrayBufferView>, ExceptionState&); 30 static bool sendBeacon(ExecutionContext*, Navigator&, const String&, PassRef Ptr<WTF::ArrayBufferView>, ExceptionState&);
31 static bool sendBeacon(ExecutionContext*, Navigator&, const String&, Blob*, ExceptionState&); 31 static bool sendBeacon(ExecutionContext*, Navigator&, const String&, Blob*, ExceptionState&);
32 static bool sendBeacon(ExecutionContext*, Navigator&, const String&, PassRef PtrWillBeRawPtr<DOMFormData>, ExceptionState&); 32 static bool sendBeacon(ExecutionContext*, Navigator&, const String&, PassRef PtrWillBeRawPtr<DOMFormData>, ExceptionState&);
33 33
34 private: 34 private:
(...skipping 10 matching lines...) Expand all
45 int maxAllowance() const; 45 int maxAllowance() const;
46 bool beaconResult(ExecutionContext*, bool allowed, int sentBytes); 46 bool beaconResult(ExecutionContext*, bool allowed, int sentBytes);
47 47
48 int m_transmittedBytes; 48 int m_transmittedBytes;
49 Navigator& m_navigator; 49 Navigator& m_navigator;
50 }; 50 };
51 51
52 } // namespace blink 52 } // namespace blink
53 53
54 #endif // NavigatorBeacon_h 54 #endif // NavigatorBeacon_h
OLDNEW
« no previous file with comments | « Source/modules/battery/NavigatorBattery.h ('k') | Source/modules/credentialmanager/CredentialManagerClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698