flutter_flutter/services/sky/platform_impl.h
Adam Barth 06eaaf7909 Fix build
Mistakenly broke sky_viewer.mojo.
2015-10-09 09:19:21 -07:00

36 lines
1008 B
C++

// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SERVICES_SKY_PLATFORM_PLATFORM_IMPL_H_
#define SERVICES_SKY_PLATFORM_PLATFORM_IMPL_H_
#include "base/message_loop/message_loop.h"
#include "sky/engine/public/platform/Platform.h"
#include "base/threading/thread.h"
namespace sky {
class PlatformImpl : public blink::Platform {
public:
explicit PlatformImpl();
~PlatformImpl() override;
// blink::Platform methods:
blink::WebString defaultLocale() override;
base::SingleThreadTaskRunner* GetUITaskRunner() override;
base::SingleThreadTaskRunner* GetIOTaskRunner() override;
private:
scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
scoped_ptr<base::Thread> io_thread_;
DISALLOW_COPY_AND_ASSIGN(PlatformImpl);
};
} // namespace sky
#endif // SERVICES_SKY_PLATFORM_PLATFORM_IMPL_H_