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

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

Issue 835363003: Oilpan: add missing leftmost trace()s for GC mixins. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
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 "config.h" 5 #include "config.h"
6 #include "modules/beacon/NavigatorBeacon.h" 6 #include "modules/beacon/NavigatorBeacon.h"
7 7
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "bindings/modules/v8/UnionTypesModules.h" 9 #include "bindings/modules/v8/UnionTypesModules.h"
10 #include "core/dom/DOMArrayBufferView.h" 10 #include "core/dom/DOMArrayBufferView.h"
11 #include "core/dom/ExceptionCode.h" 11 #include "core/dom/ExceptionCode.h"
12 #include "core/dom/ExecutionContext.h" 12 #include "core/dom/ExecutionContext.h"
13 #include "core/fileapi/Blob.h" 13 #include "core/fileapi/Blob.h"
14 #include "core/frame/LocalFrame.h" 14 #include "core/frame/LocalFrame.h"
15 #include "core/frame/Settings.h" 15 #include "core/frame/Settings.h"
16 #include "core/frame/UseCounter.h" 16 #include "core/frame/UseCounter.h"
17 #include "core/frame/csp/ContentSecurityPolicy.h" 17 #include "core/frame/csp/ContentSecurityPolicy.h"
18 #include "core/html/DOMFormData.h" 18 #include "core/html/DOMFormData.h"
19 #include "core/loader/BeaconLoader.h" 19 #include "core/loader/BeaconLoader.h"
20 20
21 namespace blink { 21 namespace blink {
22 22
23 NavigatorBeacon::NavigatorBeacon(Navigator& navigator) 23 NavigatorBeacon::NavigatorBeacon(Navigator& navigator)
24 : m_transmittedBytes(0) 24 : m_transmittedBytes(0)
25 , m_navigator(navigator) 25 , m_navigator(navigator)
26 { 26 {
27 } 27 }
28 28
29 void NavigatorBeacon::trace(Visitor* visitor)
30 {
31 WillBeHeapSupplement<Navigator>::trace(visitor);
32 }
33
29 const char* NavigatorBeacon::supplementName() 34 const char* NavigatorBeacon::supplementName()
30 { 35 {
31 return "NavigatorBeacon"; 36 return "NavigatorBeacon";
32 } 37 }
33 38
34 NavigatorBeacon& NavigatorBeacon::from(Navigator& navigator) 39 NavigatorBeacon& NavigatorBeacon::from(Navigator& navigator)
35 { 40 {
36 NavigatorBeacon* supplement = static_cast<NavigatorBeacon*>(WillBeHeapSupple ment<Navigator>::from(navigator, supplementName())); 41 NavigatorBeacon* supplement = static_cast<NavigatorBeacon*>(WillBeHeapSupple ment<Navigator>::from(navigator, supplementName()));
37 if (!supplement) { 42 if (!supplement) {
38 supplement = new NavigatorBeacon(navigator); 43 supplement = new NavigatorBeacon(navigator);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 allowed = BeaconLoader::sendBeacon(navigator.frame(), allowance, url, da ta.getAsString(), bytes); 114 allowed = BeaconLoader::sendBeacon(navigator.frame(), allowance, url, da ta.getAsString(), bytes);
110 else if (data.isFormData()) 115 else if (data.isFormData())
111 allowed = BeaconLoader::sendBeacon(navigator.frame(), allowance, url, da ta.getAsFormData(), bytes); 116 allowed = BeaconLoader::sendBeacon(navigator.frame(), allowance, url, da ta.getAsFormData(), bytes);
112 else 117 else
113 allowed = BeaconLoader::sendBeacon(navigator.frame(), allowance, url, St ring(), bytes); 118 allowed = BeaconLoader::sendBeacon(navigator.frame(), allowance, url, St ring(), bytes);
114 119
115 return impl.beaconResult(context, allowed, bytes); 120 return impl.beaconResult(context, allowed, bytes);
116 } 121 }
117 122
118 } // namespace blink 123 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698