1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29

content / web_test / browser / web_test_browser_main_runner.h [blame]

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_WEB_TEST_BROWSER_WEB_TEST_BROWSER_MAIN_RUNNER_H_
#define CONTENT_WEB_TEST_BROWSER_WEB_TEST_BROWSER_MAIN_RUNNER_H_

#include "base/files/scoped_temp_dir.h"
#include "content/public/common/main_function_params.h"

namespace content {

class WebTestBrowserMainRunner {
 public:
  // Run at the beginning of startup, before any child processes (including the
  // renderer zygote) are launched. Any command line flags should be set in
  // here.
  void Initialize();

  // Main routine for running as the Browser process.
  void RunBrowserMain(content::MainFunctionParams parameters);

 private:
  base::ScopedTempDir browser_context_path_for_web_tests_;
};

}  // namespace content

#endif  // CONTENT_WEB_TEST_BROWSER_WEB_TEST_BROWSER_MAIN_RUNNER_H_