Chromium Code Reviews| Index: remoting/host/chromoting_host.h |
| diff --git a/remoting/host/chromoting_host.h b/remoting/host/chromoting_host.h |
| index a6642d4becad02bf1f748b8575f8893421d2b79a..022c2ba695b6206b39c1c9ce476eb406f8447c32 100644 |
| --- a/remoting/host/chromoting_host.h |
| +++ b/remoting/host/chromoting_host.h |
| @@ -8,14 +8,16 @@ |
| #include <list> |
| #include <string> |
| -#include "base/memory/scoped_ptr.h" |
| #include "base/memory/ref_counted.h" |
|
Wez
2014/05/28 01:05:59
Did you mean to add this dependency?
dcaiafa
2014/05/28 22:44:58
It was already there. I just fixed the sort order
|
| +#include "base/memory/scoped_ptr.h" |
| +#include "base/memory/scoped_vector.h" |
| #include "base/memory/weak_ptr.h" |
| #include "base/observer_list.h" |
| #include "base/threading/non_thread_safe.h" |
| #include "base/threading/thread.h" |
| #include "net/base/backoff_entry.h" |
| #include "remoting/host/client_session.h" |
| +#include "remoting/host/extension.h" |
| #include "remoting/host/host_status_monitor.h" |
| #include "remoting/host/host_status_observer.h" |
| #include "remoting/protocol/authenticator.h" |
| @@ -91,6 +93,9 @@ class ChromotingHost : public base::NonThreadSafe, |
| virtual void AddStatusObserver(HostStatusObserver* observer) OVERRIDE; |
| virtual void RemoveStatusObserver(HostStatusObserver* observer) OVERRIDE; |
| + // Registers a host extension. |
| + void AddExtension(scoped_ptr<Extension> extension); |
| + |
| // This method may be called only from |
| // HostStatusObserver::OnClientAuthenticated() to reject the new |
| // client. |
| @@ -204,6 +209,9 @@ class ChromotingHost : public base::NonThreadSafe, |
| // The pairing registry for PIN-less authentication. |
| scoped_refptr<protocol::PairingRegistry> pairing_registry_; |
| + // List of host extensions. |
| + ScopedVector<Extension> extensions_; |
| + |
| base::WeakPtrFactory<ChromotingHost> weak_factory_; |
| DISALLOW_COPY_AND_ASSIGN(ChromotingHost); |