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

Unified Diff: Source/modules/navigatorconnect/CrossOriginConnectEvent.h

Issue 1205783004: Update navigator.services API to use the new services.onconnect event [3/3]. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@serviceport-serviceside
Patch Set: remove extra space Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/modules/navigatorconnect/CrossOriginConnectEvent.h
diff --git a/Source/modules/navigatorconnect/CrossOriginConnectEvent.h b/Source/modules/navigatorconnect/CrossOriginConnectEvent.h
deleted file mode 100644
index 053d50a1f445963555500066a0d88afd3b9f33af..0000000000000000000000000000000000000000
--- a/Source/modules/navigatorconnect/CrossOriginConnectEvent.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CrossOriginConnectEvent_h
-#define CrossOriginConnectEvent_h
-
-#include "modules/EventModules.h"
-#include "modules/ModulesExport.h"
-#include "platform/heap/Handle.h"
-
-namespace blink {
-
-class AcceptConnectionObserver;
-class CrossOriginServiceWorkerClient;
-
-// A crossoriginconnect event is dispatched by the client to a service worker's
-// script. AcceptConnectionObserver can be used to notify the client about the
-// service worker's response.
-class MODULES_EXPORT CrossOriginConnectEvent final : public Event {
- DEFINE_WRAPPERTYPEINFO();
-public:
- static PassRefPtrWillBeRawPtr<CrossOriginConnectEvent> create();
- static PassRefPtrWillBeRawPtr<CrossOriginConnectEvent> create(AcceptConnectionObserver*, CrossOriginServiceWorkerClient*);
-
- CrossOriginServiceWorkerClient* client() const;
-
- void acceptConnection(ScriptState*, const ScriptPromise&, ExceptionState&);
-
- const AtomicString& interfaceName() const override;
-
- DECLARE_VIRTUAL_TRACE();
-
-protected:
- CrossOriginConnectEvent();
- CrossOriginConnectEvent(AcceptConnectionObserver*, CrossOriginServiceWorkerClient*);
-
-private:
- PersistentWillBeMember<AcceptConnectionObserver> m_observer;
- PersistentWillBeMember<CrossOriginServiceWorkerClient> m_client;
-};
-
-} // namespace blink
-
-#endif // CrossOriginConnectEvent_h

Powered by Google App Engine
This is Rietveld 408576698