| Index: remoting/host/extension_session.h
|
| diff --git a/remoting/host/extension_session.h b/remoting/host/extension_session.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e164d61649147cb6718535f956a06fbd1c37daba
|
| --- /dev/null
|
| +++ b/remoting/host/extension_session.h
|
| @@ -0,0 +1,33 @@
|
| +// 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 REMOTING_HOST_EXTENSION_SESSION_H_
|
| +#define REMOTING_HOST_EXTENSION_SESSION_H_
|
| +
|
| +namespace remoting {
|
| +
|
| +namespace protocol {
|
| +class ExtensionMessage;
|
| +} // namespace protocol
|
| +
|
| +class ClientSession;
|
| +
|
| +// Created by an |Extension| to store |ClientSession| specific state, and to
|
| +// handle extension messages.
|
| +class ExtensionSession {
|
| + public:
|
| + virtual ~ExtensionSession() {}
|
| +
|
| + // Called when the host receives an |ExtensionMessage| for the |ClientSession|
|
| + // associated with this |ExtensionSession|.
|
| + // It returns |true| if the message was handled, and |false| otherwise.
|
| + virtual bool OnExtensionMessage(
|
| + ClientSession* client_session,
|
| + const protocol::ExtensionMessage& message) = 0;
|
| +};
|
| +
|
| +} // namespace remoting
|
| +
|
| +#endif // REMOTING_HOST_EXTENSION_SESSION_H_
|
| +
|
|
|