Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: chrome/test/chromedriver/stub_devtools_client.h

Issue 12848005: [chromedriver] Separate stuff of chrome from chromedriver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and fix compile error on mac. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_TEST_CHROMEDRIVER_STUB_DEVTOOLS_CLIENT_H_
6 #define CHROME_TEST_CHROMEDRIVER_STUB_DEVTOOLS_CLIENT_H_
7
8 #include <list>
9 #include <string>
10
11 #include "base/compiler_specific.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/test/chromedriver/devtools_client.h"
14
15 namespace base {
16 class DictionaryValue;
17 }
18
19 class Status;
20
21 class StubDevToolsClient : public DevToolsClient {
22 public:
23 StubDevToolsClient();
24 virtual ~StubDevToolsClient();
25
26 // Overridden from DevToolsClient:
27 virtual Status ConnectIfNecessary() OVERRIDE;
28 virtual Status SendCommand(const std::string& method,
29 const base::DictionaryValue& params) OVERRIDE;
30 virtual Status SendCommandAndGetResult(
31 const std::string& method,
32 const base::DictionaryValue& params,
33 scoped_ptr<base::DictionaryValue>* result) OVERRIDE;
34 virtual void AddListener(DevToolsEventListener* listener) OVERRIDE;
35 virtual Status HandleEventsUntil(
36 const ConditionalFunc& conditional_func) OVERRIDE;
37
38 protected:
39 std::list<DevToolsEventListener*> listeners_;
40 };
41
42 #endif // CHROME_TEST_CHROMEDRIVER_STUB_DEVTOOLS_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/stub_chrome.cc ('k') | chrome/test/chromedriver/stub_devtools_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698