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

Side by Side Diff: third_party/WebKit/Source/modules/presentation/PresentationReceiver.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 PresentationReceiver_h 5 #ifndef PresentationReceiver_h
6 #define PresentationReceiver_h 6 #define PresentationReceiver_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptPromiseProperty.h" 9 #include "bindings/core/v8/ScriptPromiseProperty.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
11 #include "core/dom/ContextLifecycleObserver.h" 11 #include "core/dom/ContextLifecycleObserver.h"
12 #include "core/dom/DOMException.h" 12 #include "core/dom/DOMException.h"
13 #include "modules/ModulesExport.h" 13 #include "modules/ModulesExport.h"
14 #include "platform/heap/Handle.h" 14 #include "platform/heap/Handle.h"
15 #include "platform/heap/Heap.h" 15 #include "platform/heap/Heap.h"
16 #include "public/platform/modules/presentation/WebPresentationReceiver.h" 16 #include "public/platform/modules/presentation/WebPresentationReceiver.h"
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class Document;
20 class PresentationConnection; 21 class PresentationConnection;
21 class PresentationConnectionList; 22 class PresentationConnectionList;
22 class WebPresentationClient; 23 class WebPresentationClient;
23 24
24 // Implements the PresentationReceiver interface from the Presentation API from 25 // Implements the PresentationReceiver interface from the Presentation API from
25 // which websites can implement the receiving side of a presentation session. 26 // which websites can implement the receiving side of a presentation session.
26 class MODULES_EXPORT PresentationReceiver final 27 class MODULES_EXPORT PresentationReceiver final
27 : public GarbageCollectedFinalized<PresentationReceiver>, 28 : public GarbageCollectedFinalized<PresentationReceiver>,
28 public ScriptWrappable, 29 public ScriptWrappable,
29 public ContextClient, 30 public ContextClient,
(...skipping 15 matching lines...) Expand all
45 // Implementation of WebPresentationController. 46 // Implementation of WebPresentationController.
46 WebPresentationConnection* onReceiverConnectionAvailable( 47 WebPresentationConnection* onReceiverConnectionAvailable(
47 const WebPresentationSessionInfo&) override; 48 const WebPresentationSessionInfo&) override;
48 void registerConnection(PresentationConnection*); 49 void registerConnection(PresentationConnection*);
49 50
50 DECLARE_VIRTUAL_TRACE(); 51 DECLARE_VIRTUAL_TRACE();
51 52
52 private: 53 private:
53 friend class PresentationReceiverTest; 54 friend class PresentationReceiverTest;
54 55
56 void recordOriginTypeAccess(Document*) const;
57
55 Member<ConnectionListProperty> m_connectionListProperty; 58 Member<ConnectionListProperty> m_connectionListProperty;
56 Member<PresentationConnectionList> m_connectionList; 59 Member<PresentationConnectionList> m_connectionList;
57 }; 60 };
58 61
59 } // namespace blink 62 } // namespace blink
60 63
61 #endif // PresentationReceiver_h 64 #endif // PresentationReceiver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698