| Index: chrome/test/chromedriver/devtools_client_impl.h
|
| diff --git a/chrome/test/chromedriver/devtools_client_impl.h b/chrome/test/chromedriver/devtools_client_impl.h
|
| index c496c0f30714b1737a08376685e261ee4661dbaa..c212cdef4b8736cb8f1d3c31fd74734b9417c61e 100644
|
| --- a/chrome/test/chromedriver/devtools_client_impl.h
|
| +++ b/chrome/test/chromedriver/devtools_client_impl.h
|
| @@ -51,8 +51,10 @@ class SyncWebSocket;
|
|
|
| class DevToolsClientImpl : public DevToolsClient {
|
| public:
|
| + typedef base::Callback<Status()> FrontendCloserFunc;
|
| DevToolsClientImpl(const SyncWebSocketFactory& factory,
|
| - const std::string& url);
|
| + const std::string& url,
|
| + const FrontendCloserFunc& frontend_closer_func);
|
|
|
| typedef base::Callback<bool(
|
| const std::string&,
|
| @@ -62,6 +64,7 @@ class DevToolsClientImpl : public DevToolsClient {
|
| internal::InspectorCommandResponse*)> ParserFunc;
|
| DevToolsClientImpl(const SyncWebSocketFactory& factory,
|
| const std::string& url,
|
| + const FrontendCloserFunc& frontend_closer_func,
|
| const ParserFunc& parser_func);
|
|
|
| virtual ~DevToolsClientImpl();
|
| @@ -80,6 +83,11 @@ class DevToolsClientImpl : public DevToolsClient {
|
| const ConditionalFunc& conditional_func) OVERRIDE;
|
|
|
| private:
|
| + Status SendCommandToDevTools(
|
| + const std::string& method,
|
| + const base::DictionaryValue& params,
|
| + scoped_ptr<base::DictionaryValue>* result,
|
| + int* command_id);
|
| Status SendCommandInternal(
|
| const std::string& method,
|
| const base::DictionaryValue& params,
|
| @@ -97,6 +105,7 @@ class DevToolsClientImpl : public DevToolsClient {
|
| const base::DictionaryValue& params);
|
| scoped_ptr<SyncWebSocket> socket_;
|
| GURL url_;
|
| + FrontendCloserFunc frontend_closer_func_;
|
| ParserFunc parser_func_;
|
| std::list<DevToolsEventListener*> listeners_;
|
| std::list<DevToolsEventListener*> listeners_for_on_connected_;
|
|
|