mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This CL prepares us to create an iOS version of SkyShell by moving the Android-specific bits into an android directory. R=chinmaygarde@google.com Review URL: https://codereview.chromium.org/1139873004
37 lines
975 B
C++
37 lines
975 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 SKY_SHELL_SERVICE_PROVIDER_H_
|
|
#define SKY_SHELL_SERVICE_PROVIDER_H_
|
|
|
|
#include "base/memory/ref_counted.h"
|
|
#include "mojo/public/cpp/system/core.h"
|
|
#include "mojo/public/interfaces/application/service_provider.mojom.h"
|
|
|
|
namespace base {
|
|
class SingleThreadTaskRunner;
|
|
}
|
|
|
|
namespace sky {
|
|
namespace shell {
|
|
|
|
class ServiceProviderContext {
|
|
public:
|
|
#if defined(OS_ANDROID)
|
|
ServiceProviderContext(
|
|
scoped_refptr<base::SingleThreadTaskRunner> runner)
|
|
: java_task_runner(runner.Pass()) {}
|
|
|
|
scoped_refptr<base::SingleThreadTaskRunner> java_task_runner;
|
|
#endif
|
|
};
|
|
|
|
// Implemented in platform_service_provider.cc for each platform.
|
|
mojo::ServiceProviderPtr CreateServiceProvider(ServiceProviderContext* context);
|
|
|
|
} // namespace shell
|
|
} // namespace sky
|
|
|
|
#endif // SKY_SHELL_SERVICE_PROVIDER_H_
|