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

Side by Side Diff: third_party/WebKit/Source/modules/presentation/PresentationRequest.h

Issue 2692333004: [Presentation API] Adds UseCounters for origin types. (Closed)
Patch Set: Created 3 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 PresentationRequest_h 5 #ifndef PresentationRequest_h
6 #define PresentationRequest_h 6 #define PresentationRequest_h
7 7
8 #include "bindings/core/v8/ActiveScriptWrappable.h" 8 #include "bindings/core/v8/ActiveScriptWrappable.h"
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "core/dom/ContextLifecycleObserver.h" 10 #include "core/dom/ContextLifecycleObserver.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 DECLARE_VIRTUAL_TRACE(); 55 DECLARE_VIRTUAL_TRACE();
56 56
57 protected: 57 protected:
58 // EventTarget implementation. 58 // EventTarget implementation.
59 void addedEventListener(const AtomicString& eventType, 59 void addedEventListener(const AtomicString& eventType,
60 RegisteredEventListener&) override; 60 RegisteredEventListener&) override;
61 61
62 private: 62 private:
63 PresentationRequest(ExecutionContext*, const Vector<KURL>&); 63 PresentationRequest(ExecutionContext*, const Vector<KURL>&);
64 64
65 void recordOriginTypeAccess(ExecutionContext*) const;
66
65 Member<PresentationAvailabilityProperty> m_availabilityProperty; 67 Member<PresentationAvailabilityProperty> m_availabilityProperty;
66 Vector<KURL> m_urls; 68 Vector<KURL> m_urls;
67 }; 69 };
68 70
69 } // namespace blink 71 } // namespace blink
70 72
71 #endif // PresentationRequest_h 73 #endif // PresentationRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698