Index: remoting/client/plugin/chromoting_instance.h |
diff --git a/remoting/client/plugin/chromoting_instance.h b/remoting/client/plugin/chromoting_instance.h |
index c6c8f578fbcc1849fa617c5e39939893a5b5ed55..3be0227c8cf43abdd2a5a8b691abdce0a7f50e6a 100644 |
--- a/remoting/client/plugin/chromoting_instance.h |
+++ b/remoting/client/plugin/chromoting_instance.h |
@@ -34,6 +34,7 @@ |
#include "remoting/client/plugin/pepper_input_handler.h" |
#include "remoting/client/plugin/pepper_plugin_thread_delegate.h" |
#include "remoting/proto/event.pb.h" |
+#include "remoting/protocol/client_stub.h" |
#include "remoting/protocol/clipboard_stub.h" |
#include "remoting/protocol/connection_to_host.h" |
#include "remoting/protocol/cursor_shape_stub.h" |
@@ -74,12 +75,20 @@ class ChromotingInstance : |
public: |
// Plugin API version. This should be incremented whenever the API |
// interface changes. |
- static const int kApiVersion = 7; |
+ static const int kApiVersion = 8; |
Sergey Ulanov
2013/04/16 08:38:53
No need to change this version. see my comments in
alexeypa (please no reviews)
2013/04/16 22:06:11
Done.
|
// Plugin API features. This allows orthogonal features to be supported |
// without bumping the API version. |
static const char kApiFeatures[]; |
+ // Capabilities supported by the plugin that should also be supported by the |
+ // webapp to be enabled. |
+ static const char kRequestedCapabilities[]; |
+ |
+ // Capabilities supported by the plugin that do not need to be supported by |
+ // the webapp to be enabled. |
+ static const char kSupportedCapabilities[]; |
+ |
// Backward-compatibility version used by for the messaging |
// interface. Should be updated whenever we remove support for |
// an older version of the API. |
@@ -108,6 +117,7 @@ class ChromotingInstance : |
virtual void OnConnectionState(protocol::ConnectionToHost::State state, |
protocol::ErrorCode error) OVERRIDE; |
virtual void OnConnectionReady(bool ready) OVERRIDE; |
+ virtual void SetCapabilities(const std::string& capabilities) OVERRIDE; |
virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE; |
virtual protocol::CursorShapeStub* GetCursorShapeStub() OVERRIDE; |
virtual scoped_ptr<protocol::ThirdPartyClientAuthenticator::TokenFetcher> |