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

Unified Diff: chrome/test/chromedriver/chrome_impl.h

Issue 11415205: [chromedriver] Implement connecting to devtools and loading a page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 years 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/chrome.h ('k') | chrome/test/chromedriver/chrome_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/chrome_impl.h
diff --git a/chrome/test/chromedriver/chrome_impl.h b/chrome/test/chromedriver/chrome_impl.h
index 1a6d1c8ccecbd9a7e20c9c0fd6b92259fda703eb..5f6056eaf8c4becd0d446170b7b1519e7089cf04 100644
--- a/chrome/test/chromedriver/chrome_impl.h
+++ b/chrome/test/chromedriver/chrome_impl.h
@@ -5,24 +5,47 @@
#ifndef CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_
#define CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_
+#include <list>
+#include <string>
+
#include "base/compiler_specific.h"
#include "base/files/scoped_temp_dir.h"
+#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "base/process.h"
#include "chrome/test/chromedriver/chrome.h"
+class DevToolsClient;
class Status;
+class URLRequestContextGetter;
class ChromeImpl : public Chrome {
public:
- ChromeImpl(base::ProcessHandle process, base::ScopedTempDir* user_data_dir);
+ ChromeImpl(base::ProcessHandle process,
+ URLRequestContextGetter* context_getter,
+ base::ScopedTempDir* user_data_dir,
+ int port);
virtual ~ChromeImpl();
+ Status Init();
+
// Overridden from Chrome:
+ virtual Status Load(const std::string& url) OVERRIDE;
virtual Status Quit() OVERRIDE;
private:
base::ProcessHandle process_;
+ scoped_refptr<URLRequestContextGetter> context_getter_;
base::ScopedTempDir user_data_dir_;
+ int port_;
+ scoped_ptr<DevToolsClient> client_;
};
+namespace internal {
+
+Status ParsePagesInfo(const std::string& data,
+ std::list<std::string>* debugger_urls);
+
+} // namespace internal
+
#endif // CHROME_TEST_CHROMEDRIVER_CHROME_IMPL_H_
« no previous file with comments | « chrome/test/chromedriver/chrome.h ('k') | chrome/test/chromedriver/chrome_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698