Chromium Code Reviews| Index: public/platform/WebNavigatorConnectProvider.h |
| diff --git a/public/platform/WebNavigatorConnectProvider.h b/public/platform/WebNavigatorConnectProvider.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..0b3d49298cc780290caf6a822bb4b8103118e2d6 |
| --- /dev/null |
| +++ b/public/platform/WebNavigatorConnectProvider.h |
| @@ -0,0 +1,27 @@ |
| +// 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 WebNavigatorConnectProvider_h |
| +#define WebNavigatorConnectProvider_h |
| + |
| +#include "WebCallbacks.h" |
| + |
| +namespace blink { |
| + |
| +class WebMessagePortChannel; |
| +class WebURL; |
| + |
| +class WebNavigatorConnectProvider { |
| +public: |
| + virtual ~WebNavigatorConnectProvider() { } |
| + |
| + // Initiates a connection to the given URL. When succesfull the service |
| + // can communicate with the client over the given channel. |
| + // Ownership of the WebCallbacks is transferred to the provider. |
| + virtual void connect(const WebURL&, WebMessagePortChannel*, WebCallbacks<void, void>*) { } |
|
scheib
2014/12/05 00:16:40
Probably leave this pure virtual. The platform def
Marijn Kruisselbrink
2014/12/05 09:23:43
Ideally, yes. But I've been told that while blink
scheib
2014/12/05 17:39:35
OK with me, check with the platform OWNER I suppos
|
| +}; |
| + |
| +} // namespace blink |
| + |
| +#endif // WebNavigatorConnectProvider_h |