Home | History | Annotate | Download | only in chromedriver
      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.
      4 
      5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_
      6 #define CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_
      7 
      8 #include <string>
      9 #include <vector>
     10 
     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"
     16 
     17 class CommandLine;
     18 class DevToolsEventListener;
     19 
     20 namespace base {
     21 class DictionaryValue;
     22 class FilePath;
     23 }
     24 
     25 class Chrome;
     26 class DeviceManager;
     27 class Log;
     28 class Status;
     29 class URLRequestContextGetter;
     30 
     31 Status LaunchChrome(
     32     URLRequestContextGetter* context_getter,
     33     int port,
     34     const SyncWebSocketFactory& socket_factory,
     35     Log* log,
     36     DeviceManager* device_manager,
     37     const Capabilities& capabilities,
     38     ScopedVector<DevToolsEventListener>& devtools_event_listeners,
     39     scoped_ptr<Chrome>* chrome);
     40 
     41 namespace internal {
     42 Status ProcessExtensions(const std::vector<std::string>& extensions,
     43                          const base::FilePath& temp_dir,
     44                          bool include_automation_extension,
     45                          CommandLine* command);
     46 Status PrepareUserDataDir(
     47     const base::FilePath& user_data_dir,
     48     const base::DictionaryValue* custom_prefs,
     49     const base::DictionaryValue* custom_local_state);
     50 }  // namespace internal
     51 
     52 #endif  // CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_H_
     53