| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_IMPL_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_IMPL_H_ |
| 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_IMPL_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "chrome/test/chromedriver/chrome_launcher.h" | 12 #include "chrome/test/chromedriver/chrome_launcher.h" |
| 12 | 13 |
| 13 class Chrome; | 14 class Chrome; |
| 14 class FilePath; | 15 class FilePath; |
| 15 class Status; | 16 class Status; |
| 17 class URLRequestContextGetter; |
| 16 | 18 |
| 17 class ChromeLauncherImpl : public ChromeLauncher { | 19 class ChromeLauncherImpl : public ChromeLauncher { |
| 18 public: | 20 public: |
| 19 ChromeLauncherImpl(); | 21 explicit ChromeLauncherImpl(URLRequestContextGetter* context_getter); |
| 20 virtual ~ChromeLauncherImpl(); | 22 virtual ~ChromeLauncherImpl(); |
| 21 | 23 |
| 22 // Overridden from ChromeLauncher: | 24 // Overridden from ChromeLauncher: |
| 23 virtual Status Launch(const FilePath& chrome_exe, | 25 virtual Status Launch(const FilePath& chrome_exe, |
| 24 scoped_ptr<Chrome>* chrome) OVERRIDE; | 26 scoped_ptr<Chrome>* chrome) OVERRIDE; |
| 25 | 27 |
| 26 private: | 28 private: |
| 29 scoped_refptr<URLRequestContextGetter> context_getter_; |
| 30 |
| 27 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherImpl); | 31 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherImpl); |
| 28 }; | 32 }; |
| 29 | 33 |
| 30 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_IMPL_H_ | 34 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_IMPL_H_ |
| OLD | NEW |