| Index: mojo/spy/websocket_server.h
|
| diff --git a/mojo/spy/websocket_server.h b/mojo/spy/websocket_server.h
|
| index 986b5796209652b32de677cb97176ea02ce5e554..c6098decbbc3d911402f81212ad2c88be471e99b 100644
|
| --- a/mojo/spy/websocket_server.h
|
| +++ b/mojo/spy/websocket_server.h
|
| @@ -7,9 +7,16 @@
|
|
|
| #include <string>
|
|
|
| +#include "mojo/spy/common.h"
|
| #include "mojo/spy/public/spy.mojom.h"
|
| #include "net/server/http_server.h"
|
|
|
| +namespace base {
|
| +class Time;
|
| +};
|
| +
|
| +class GURL;
|
| +
|
| namespace mojo {
|
|
|
| class WebSocketServer : public net::HttpServer::Delegate,
|
| @@ -23,6 +30,12 @@ class WebSocketServer : public net::HttpServer::Delegate,
|
| // Returns the listening port, useful if 0 was passed to the contructor.
|
| int port() const { return port_; }
|
|
|
| + // Maintains a log of the message passed in.
|
| + void LogMessageInfo(
|
| + const mojo::MojoRequestHeader& message_header,
|
| + const GURL& url,
|
| + const base::Time& message_time);
|
| +
|
| protected:
|
| // Overridden from net::HttpServer::Delegate.
|
| virtual void OnHttpRequest(
|
| @@ -47,6 +60,8 @@ class WebSocketServer : public net::HttpServer::Delegate,
|
|
|
| // Callbacks from calling spy_api::SpyServer.
|
| void OnStartSession(spy_api::Result, mojo::String);
|
| +
|
| + bool Connected() const;
|
|
|
| private:
|
| int port_;
|
|
|