Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / chrome / test / chromedriver / command_listener_proxy.h
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.
4
5 #ifndef CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_PROXY_H_
6 #define CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_PROXY_H_
7
8 #include <string>
9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "chrome/test/chromedriver/command_listener.h"
13
14 class CommandListenerProxy : public CommandListener {
15  public:
16   ~CommandListenerProxy() override;
17
18   // |command_listener| must not be null.
19   explicit CommandListenerProxy(CommandListener* command_listener);
20
21   // Forwards commands to |command_listener_|.
22   Status BeforeCommand(const std::string& command_name) override;
23
24  private:
25   CommandListener* const command_listener_;
26
27   DISALLOW_COPY_AND_ASSIGN(CommandListenerProxy);
28 };
29
30 #endif  // CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_PROXY_H_