Roll src/third_party/WebKit bf18a82:a9cee16 (svn 185297:185304)
[chromium-blink-merge.git] / chrome / test / chromedriver / chrome_launcher.h
blobe85994e7d50154f9ffd58b76498fb8868b9512f8
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.
5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_
6 #define CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_
8 #include <string>
9 #include <vector>
11 #include "base/files/file_path.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/scoped_vector.h"
14 #include "chrome/test/chromedriver/capabilities.h"
15 #include "chrome/test/chromedriver/net/sync_websocket_factory.h"
17 class DevToolsEventListener;
19 namespace base {
20 class DictionaryValue;
21 class FilePath;
24 class Chrome;
25 class DeviceManager;
26 class PortManager;
27 class PortServer;
28 class Status;
29 class URLRequestContextGetter;
31 Status LaunchChrome(
32 URLRequestContextGetter* context_getter,
33 const SyncWebSocketFactory& socket_factory,
34 DeviceManager* device_manager,
35 PortServer* port_server,
36 PortManager* port_manager,
37 const Capabilities& capabilities,
38 ScopedVector<DevToolsEventListener>* devtools_event_listeners,
39 scoped_ptr<Chrome>* chrome);
41 namespace internal {
42 Status ProcessExtensions(const std::vector<std::string>& extensions,
43 const base::FilePath& temp_dir,
44 bool include_automation_extension,
45 Switches* switches,
46 std::vector<std::string>* bg_pages);
47 Status PrepareUserDataDir(
48 const base::FilePath& user_data_dir,
49 const base::DictionaryValue* custom_prefs,
50 const base::DictionaryValue* custom_local_state);
51 } // namespace internal
53 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_