mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This CL is a warmup for making hyperlinks actually work. ServiceProvider lets the embedder inject a bundle of services that are specific to the embedding context (e.g., NavigatorHost). Services that are independent to the embedding context can be injected via blink::Platform. R=eseidel@chromium.org Review URL: https://codereview.chromium.org/696733003
25 lines
484 B
C++
25 lines
484 B
C++
// Copyright 2014 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_ENGINE_PUBLIC_PLATOFORM_SERVICES_H_
|
|
#define SKY_ENGINE_PUBLIC_PLATOFORM_SERVICES_H_
|
|
|
|
namespace mojo {
|
|
class NavigatorHost;
|
|
}
|
|
|
|
namespace blink {
|
|
|
|
class ServiceProvider {
|
|
public:
|
|
virtual mojo::NavigatorHost* NavigatorHost() = 0;
|
|
|
|
protected:
|
|
virtual ~ServiceProvider();
|
|
};
|
|
|
|
} // namespace blink
|
|
|
|
#endif
|