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

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

Issue 13185004: [chromedriver] Implement proxy capability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and Address comments. Created 7 years, 8 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
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_ 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector>
9 10
10 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "chrome/test/chromedriver/capabilities.h"
12 #include "chrome/test/chromedriver/net/sync_websocket_factory.h" 14 #include "chrome/test/chromedriver/net/sync_websocket_factory.h"
13 15
14 class CommandLine; 16 class CommandLine;
15 17
16 namespace base { 18 namespace base {
17 class DictionaryValue; 19 class DictionaryValue;
18 class FilePath; 20 class FilePath;
19 class ListValue;
20 } 21 }
21 22
22 class Chrome; 23 class Chrome;
23 class Status; 24 class Status;
24 class URLRequestContextGetter; 25 class URLRequestContextGetter;
25 26
26 Status LaunchDesktopChrome(URLRequestContextGetter* context_getter, 27 Status LaunchChrome(URLRequestContextGetter* context_getter,
27 int port, 28 int port,
28 const SyncWebSocketFactory& socket_factory, 29 const SyncWebSocketFactory& socket_factory,
29 const base::FilePath& exe, 30 const Capabilities& capabilities,
30 const base::ListValue* args, 31 scoped_ptr<Chrome>* chrome);
31 const base::ListValue* extensions,
32 const base::DictionaryValue* prefs,
33 const base::DictionaryValue* local_state,
34 const std::string& log_path,
35 scoped_ptr<Chrome>* chrome);
36
37 Status LaunchAndroidChrome(URLRequestContextGetter* context_getter,
38 int port,
39 const SyncWebSocketFactory& socket_factory,
40 const std::string& package_name,
41 scoped_ptr<Chrome>* chrome);
42 32
43 namespace internal { 33 namespace internal {
44 Status ProcessCommandLineArgs(const base::ListValue* args, 34 Status ProcessExtensions(const std::vector<std::string>& extensions,
45 CommandLine* command);
46 Status ProcessExtensions(const base::ListValue* extensions,
47 const base::FilePath& temp_dir, 35 const base::FilePath& temp_dir,
48 bool include_automation_extension, 36 bool include_automation_extension,
49 CommandLine* command); 37 CommandLine* command);
50 Status PrepareUserDataDir( 38 Status PrepareUserDataDir(
51 const base::FilePath& user_data_dir, 39 const base::FilePath& user_data_dir,
52 const base::DictionaryValue* custom_prefs, 40 const base::DictionaryValue* custom_prefs,
53 const base::DictionaryValue* custom_local_state); 41 const base::DictionaryValue* custom_local_state);
54 } // namespace internal 42 } // namespace internal
55 43
56 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_ 44 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/capabilities_unittest.cc ('k') | chrome/test/chromedriver/chrome_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698