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/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "chrome/test/chromedriver/chrome_launcher.h" | 12 #include "chrome/test/chromedriver/chrome_launcher.h" |
13 #include "chrome/test/chromedriver/net/sync_websocket_factory.h" | 13 #include "chrome/test/chromedriver/net/sync_websocket_factory.h" |
14 | 14 |
15 class Chrome; | 15 class Chrome; |
16 class FilePath; | |
17 class Status; | 16 class Status; |
18 class URLRequestContextGetter; | 17 class URLRequestContextGetter; |
19 | 18 |
| 19 namespace base { |
| 20 class FilePath; |
| 21 } |
| 22 |
20 class ChromeLauncherImpl : public ChromeLauncher { | 23 class ChromeLauncherImpl : public ChromeLauncher { |
21 public: | 24 public: |
22 explicit ChromeLauncherImpl(URLRequestContextGetter* context_getter, | 25 explicit ChromeLauncherImpl(URLRequestContextGetter* context_getter, |
23 const SyncWebSocketFactory& socket_factory); | 26 const SyncWebSocketFactory& socket_factory); |
24 virtual ~ChromeLauncherImpl(); | 27 virtual ~ChromeLauncherImpl(); |
25 | 28 |
26 // Overridden from ChromeLauncher: | 29 // Overridden from ChromeLauncher: |
27 virtual Status Launch(const FilePath& chrome_exe, | 30 virtual Status Launch(const base::FilePath& chrome_exe, |
28 scoped_ptr<Chrome>* chrome) OVERRIDE; | 31 scoped_ptr<Chrome>* chrome) OVERRIDE; |
29 | 32 |
30 private: | 33 private: |
31 scoped_refptr<URLRequestContextGetter> context_getter_; | 34 scoped_refptr<URLRequestContextGetter> context_getter_; |
32 SyncWebSocketFactory socket_factory_; | 35 SyncWebSocketFactory socket_factory_; |
33 | 36 |
34 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherImpl); | 37 DISALLOW_COPY_AND_ASSIGN(ChromeLauncherImpl); |
35 }; | 38 }; |
36 | 39 |
37 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_IMPL_H_ | 40 #endif // CHROME_TEST_CHROMEDRIVER_CHROME_LAUNCHER_IMPL_H_ |
OLD | NEW |