OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_COMMAND_LISTENER_PROXY_H_ | 5 #ifndef CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_PROXY_H_ |
6 #define CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_PROXY_H_ | 6 #define CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "chrome/test/chromedriver/command_listener.h" | 12 #include "chrome/test/chromedriver/command_listener.h" |
13 | 13 |
14 class CommandListenerProxy : public CommandListener { | 14 class CommandListenerProxy : public CommandListener { |
15 public: | 15 public: |
16 virtual ~CommandListenerProxy(); | 16 virtual ~CommandListenerProxy(); |
17 | 17 |
18 // |command_listener| must not be null. | 18 // |command_listener| must not be null. |
19 explicit CommandListenerProxy(CommandListener* command_listener); | 19 explicit CommandListenerProxy(CommandListener* command_listener); |
20 | 20 |
21 // Forwards commands to |command_listener_|. | 21 // Forwards commands to |command_listener_|. |
22 virtual Status BeforeCommand(const std::string& command_name) OVERRIDE; | 22 virtual Status BeforeCommand(const std::string& command_name) override; |
23 | 23 |
24 private: | 24 private: |
25 CommandListener* const command_listener_; | 25 CommandListener* const command_listener_; |
26 | 26 |
27 DISALLOW_COPY_AND_ASSIGN(CommandListenerProxy); | 27 DISALLOW_COPY_AND_ASSIGN(CommandListenerProxy); |
28 }; | 28 }; |
29 | 29 |
30 #endif // CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_PROXY_H_ | 30 #endif // CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_PROXY_H_ |
OLD | NEW |