Adam Barth 97565a73db Introduce blink::ServiceProvider
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
2014-10-31 10:54:03 -07:00

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