Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / test / chromedriver / chrome_launcher.h
blob10077f826cb77fa4e3fc0255b6cc9c75181ddcd5
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 CommandLine;
18 class DevToolsEventListener;
20 namespace base {
21 class DictionaryValue;
22 class FilePath;
25 class Chrome;
26 class DeviceManager;
27 class PortManager;
28 class PortServer;
29 class Status;
30 class URLRequestContextGetter;
32 Status LaunchChrome(
33 URLRequestContextGetter* context_getter,
34 const SyncWebSocketFactory& socket_factory,
35 DeviceManager* device_manager,
36 PortServer* port_server,
37 PortManager* port_manager,
38 const Capabilities& capabilities,
39 ScopedVector<DevToolsEventListener>& devtools_event_listeners,
40 scoped_ptr<Chrome>* chrome);
42 namespace internal {
43 Status ProcessExtensions(const std::vector<std::string>& extensions,
44 const base::FilePath& temp_dir,
45 bool include_automation_extension,
46 Switches* switches,
47 std::vector<std::string>* bg_pages);
48 Status PrepareUserDataDir(
49 const base::FilePath& user_data_dir,
50 const base::DictionaryValue* custom_prefs,
51 const base::DictionaryValue* custom_local_state);
52 } // namespace internal
54 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_