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

Unified Diff: chrome/test/chromedriver/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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/chromedriver/commands_unittest.cc ('k') | chrome/test/chromedriver/devtools_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/devtools_client.h
diff --git a/chrome/test/chromedriver/devtools_client.h b/chrome/test/chromedriver/devtools_client.h
deleted file mode 100644
index d5e838f16f467c81a53d9941c477ad603ddcb343..0000000000000000000000000000000000000000
--- a/chrome/test/chromedriver/devtools_client.h
+++ /dev/null
@@ -1,48 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_TEST_CHROMEDRIVER_DEVTOOLS_CLIENT_H_
-#define CHROME_TEST_CHROMEDRIVER_DEVTOOLS_CLIENT_H_
-
-#include <string>
-
-#include "base/callback_forward.h"
-#include "base/memory/scoped_ptr.h"
-
-namespace base {
-class DictionaryValue;
-}
-
-class DevToolsEventListener;
-class Status;
-
-// A DevTools client of a single DevTools debugger.
-class DevToolsClient {
- public:
- typedef base::Callback<Status(bool* is_condition_met)> ConditionalFunc;
-
- virtual ~DevToolsClient() {}
-
- // Connect to DevTools if the DevToolsClient is disconnected.
- virtual Status ConnectIfNecessary() = 0;
-
- virtual Status SendCommand(const std::string& method,
- const base::DictionaryValue& params) = 0;
- virtual Status SendCommandAndGetResult(
- const std::string& method,
- const base::DictionaryValue& params,
- scoped_ptr<base::DictionaryValue>* result) = 0;
-
- virtual void AddListener(DevToolsEventListener* listener) = 0;
-
- // Handles events until the given function reports the condition is met
- // and there are no more received events to handle. If the given
- // function ever returns an error, returns immediately with the error.
- virtual Status HandleEventsUntil(const ConditionalFunc& conditional_func) = 0;
-
- // Handles events that have been received but not yet handled.
- virtual Status HandleReceivedEvents();
-};
-
-#endif // CHROME_TEST_CHROMEDRIVER_DEVTOOLS_CLIENT_H_
« no previous file with comments | « chrome/test/chromedriver/commands_unittest.cc ('k') | chrome/test/chromedriver/devtools_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698