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

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

Issue 2848243004: Clean up bindings/core/v8 (Part 2) (Closed)
Patch Set: Rebase Created 3 years, 7 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 #include "modules/beacon/NavigatorBeacon.h" 5 #include "modules/beacon/NavigatorBeacon.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/ScriptState.h"
9 #include "bindings/modules/v8/ArrayBufferViewOrBlobOrStringOrFormData.h" 8 #include "bindings/modules/v8/ArrayBufferViewOrBlobOrStringOrFormData.h"
10 #include "core/dom/DOMArrayBufferView.h" 9 #include "core/dom/DOMArrayBufferView.h"
11 #include "core/dom/ExceptionCode.h" 10 #include "core/dom/ExceptionCode.h"
12 #include "core/dom/ExecutionContext.h" 11 #include "core/dom/ExecutionContext.h"
13 #include "core/fileapi/Blob.h" 12 #include "core/fileapi/Blob.h"
14 #include "core/frame/LocalFrame.h" 13 #include "core/frame/LocalFrame.h"
15 #include "core/frame/Settings.h" 14 #include "core/frame/Settings.h"
16 #include "core/frame/UseCounter.h" 15 #include "core/frame/UseCounter.h"
17 #include "core/html/FormData.h" 16 #include "core/html/FormData.h"
18 #include "core/loader/PingLoader.h" 17 #include "core/loader/PingLoader.h"
18 #include "platform/bindings/ScriptState.h"
19 #include "platform/loader/fetch/FetchUtils.h" 19 #include "platform/loader/fetch/FetchUtils.h"
20 20
21 namespace blink { 21 namespace blink {
22 22
23 NavigatorBeacon::NavigatorBeacon(Navigator& navigator) 23 NavigatorBeacon::NavigatorBeacon(Navigator& navigator)
24 : Supplement<Navigator>(navigator), transmitted_bytes_(0) {} 24 : Supplement<Navigator>(navigator), transmitted_bytes_(0) {}
25 25
26 NavigatorBeacon::~NavigatorBeacon() {} 26 NavigatorBeacon::~NavigatorBeacon() {}
27 27
28 DEFINE_TRACE(NavigatorBeacon) { 28 DEFINE_TRACE(NavigatorBeacon) {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 return false; 150 return false;
151 } 151 }
152 152
153 // Only accumulate transmission size if a limit is imposed. 153 // Only accumulate transmission size if a limit is imposed.
154 if (allowance >= 0) 154 if (allowance >= 0)
155 AddTransmittedBytes(beacon_size); 155 AddTransmittedBytes(beacon_size);
156 return true; 156 return true;
157 } 157 }
158 158
159 } // namespace blink 159 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698