Roll leveldb from r73 to r75.
[chromium-blink-merge.git] / ash / test / test_metro_viewer_process_host.h
blob63ca815c33d30a39ceabe6c4184ab693fcc413c4
1 // Copyright (c) 2013 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 ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_
6 #define ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_
8 #include <string>
10 #include "win8/viewer/metro_viewer_process_host.h"
12 class AcceleratedSurface;
14 namespace ash {
15 namespace test {
17 class TestMetroViewerProcessHost : public win8::MetroViewerProcessHost {
18 public:
19 TestMetroViewerProcessHost(const std::string& ipc_channel_name,
20 base::SingleThreadTaskRunner* ipc_task_runner);
21 virtual ~TestMetroViewerProcessHost();
23 bool closed_unexpectedly() { return closed_unexpectedly_; }
25 private:
26 // win8::MetroViewerProcessHost implementation
27 virtual void OnChannelError() OVERRIDE;
28 virtual void OnSetTargetSurface(gfx::NativeViewId target_surface) OVERRIDE;
29 virtual void OnOpenURL(const string16& url) OVERRIDE;
30 virtual void OnHandleSearchRequest(const string16& search_string) OVERRIDE;
32 scoped_ptr<AcceleratedSurface> backing_surface;
34 bool closed_unexpectedly_;
36 DISALLOW_COPY_AND_ASSIGN(TestMetroViewerProcessHost);
40 } // namespace test
41 } // namespace ash
43 #endif // ASH_TEST_TEST_METRO_VIEWER_PROCESS_HOST_H_