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
3 // found in the LICENSE file.
5 #ifndef CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_PROXY_H_
6 #define CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_PROXY_H_
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "chrome/test/chromedriver/command_listener.h"
14 class CommandListenerProxy : public CommandListener {
16 ~CommandListenerProxy() override;
18 // |command_listener| must not be null.
19 explicit CommandListenerProxy(CommandListener* command_listener);
21 // Forwards commands to |command_listener_|.
22 Status BeforeCommand(const std::string& command_name) override;
25 CommandListener* const command_listener_;
27 DISALLOW_COPY_AND_ASSIGN(CommandListenerProxy);
30 #endif // CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_PROXY_H_