| Index: content/browser/devtools/protocol/devtools_protocol_client.h
|
| diff --git a/content/browser/devtools/protocol/devtools_protocol_client.h b/content/browser/devtools/protocol/devtools_protocol_client.h
|
| index 620a7c14995d8265fdc4dc8492914d1241520c7c..b2f95b71d3cebe14e0a66561ccc5eb30f0d98f41 100644
|
| --- a/content/browser/devtools/protocol/devtools_protocol_client.h
|
| +++ b/content/browser/devtools/protocol/devtools_protocol_client.h
|
| @@ -11,8 +11,11 @@
|
|
|
| class DevToolsProtocolClient {
|
| public:
|
| - typedef base::Callback<void(const std::string& message)>
|
| - RawMessageCallback;
|
| + typedef base::Callback<void(const std::string& event,
|
| + base::DictionaryValue* params)> EventCallback;
|
| +
|
| + typedef base::Callback<void(scoped_refptr<DevToolsProtocol::Response>)>
|
| + ResponseCallback;
|
|
|
| enum ResponseStatus {
|
| RESPONSE_STATUS_FALLTHROUGH,
|
| @@ -50,12 +53,9 @@
|
| scoped_refptr<DevToolsProtocol::Command> command,
|
| const std::string& message);
|
|
|
| - // Sends message to client, the caller is presumed to properly
|
| - // format the message. Do not use unless you must.
|
| - void SendRawMessage(const std::string& message);
|
| -
|
| protected:
|
| - DevToolsProtocolClient(const RawMessageCallback& raw_message_callback);
|
| + DevToolsProtocolClient(const EventCallback& event_callback,
|
| + const ResponseCallback& response_callback);
|
|
|
| virtual ~DevToolsProtocolClient();
|
|
|
| @@ -65,7 +65,8 @@
|
| void SendAsyncResponse(scoped_refptr<DevToolsProtocol::Response> response);
|
|
|
| private:
|
| - RawMessageCallback raw_message_callback_;
|
| + EventCallback event_callback_;
|
| + ResponseCallback response_callback_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(DevToolsProtocolClient);
|
| };
|
|
|