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

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

Issue 13185004: [chromedriver] Implement proxy capability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. 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
Index: chrome/test/chromedriver/capabilities_parser.h
diff --git a/chrome/test/chromedriver/capabilities_parser.h b/chrome/test/chromedriver/capabilities_parser.h
new file mode 100644
index 0000000000000000000000000000000000000000..ab9b1bbe5f4077b35148a98825ec4ecf27dc163a
--- /dev/null
+++ b/chrome/test/chromedriver/capabilities_parser.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2013 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_CAPABILITIES_PARSER_H_
+#define CHROME_TEST_CHROMEDRIVER_CAPABILITIES_PARSER_H_
+
+#include <string>
+
+#include "base/callback_forward.h"
+#include "base/files/file_path.h"
+#include "base/values.h"
+
+class Status;
+
+struct Capabilities {
+ Capabilities();
+ ~Capabilities();
+
+ bool HasAndroidPackage() const;
+
+ Status Parse(
+ const base::DictionaryValue& chrome_options,
+ const base::Callback<bool(const base::FilePath&)>& file_checker);
+
+ std::string android_package;
+
+ base::FilePath chrome_exe;
+ std::string log_path;
+ base::ListValue args;
kkania 2013/04/03 19:09:35 how about a std::vector<string> instead or a Comma
chrisgao (Use stgao instead) 2013/04/06 01:11:25 changed to a CommandLine.
+ const base::DictionaryValue* prefs;
kkania 2013/04/03 19:09:35 i think the capabilities object should own these,
chrisgao (Use stgao instead) 2013/04/06 01:11:25 Done.
+ const base::DictionaryValue* local_state;
+ const base::ListValue* extensions;
kkania 2013/04/03 19:09:35 how about a std::vector<string>?
chrisgao (Use stgao instead) 2013/04/06 01:11:25 Done.
+};
+
+#endif // CHROME_TEST_CHROMEDRIVER_CAPABILITIES_PARSER_H_

Powered by Google App Engine
This is Rietveld 408576698