Chromium Code Reviews| Index: callback_server.h |
| diff --git a/callback_server.h b/callback_server.h |
| index 5bea1ddcde601fddbc4753695e40ff503fbab590..43c6f7427eeeff2912c535797117f4865001c4af 100644 |
| --- a/callback_server.h |
| +++ b/callback_server.h |
| @@ -55,14 +55,6 @@ class CallbackServer : public JSObjectWrapper<CallbackServer> { |
| return true; |
| } |
| - virtual std::string request_header_value() { |
| - return request_header_value_; |
| - } |
| - |
| - virtual void set_request_header_value(std::string value) { |
| - request_header_value_ = value; |
| - } |
| - |
| // Start the callback server with a particular set of callbacks and |
| // on a given port number. |
| virtual bool Start(v8::Handle<v8::Object> callbacks, int port); |
| @@ -88,6 +80,14 @@ class CallbackServer : public JSObjectWrapper<CallbackServer> { |
| }; |
| virtual bool IsBusy() { return busy_; } |
| + static void SetSessionId(const std::string& session_id) { |
|
rginda
2011/04/18 16:55:20
lowercase_and_underscores
|
| + session_id_ = session_id; |
| + } |
| + |
| + static std::string session_id() { |
| + return session_id_; |
| + } |
| + |
| static std::string required_origin; |
| private: |
| @@ -100,8 +100,8 @@ class CallbackServer : public JSObjectWrapper<CallbackServer> { |
| // JS Object containing the callback functions we might dispatch to. |
| v8::Persistent<v8::Object> callbacks_; |
| - // The value required in the X-Entd-Request header. |
| - std::string request_header_value_; |
| + // X-Entd-Session-Id that must come in every request. |
| + static std::string session_id_; |
| // Non-null if the server is running. |
| struct evhttp* evhttp_; |