OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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. |
| 4 |
| 5 #ifndef SKY_SHELL_UI_INTERNALS_H_ |
| 6 #define SKY_SHELL_UI_INTERNALS_H_ |
| 7 |
| 8 #include "base/supports_user_data.h" |
| 9 #include "dart/runtime/include/dart_api.h" |
| 10 #include "mojo/public/interfaces/application/service_provider.mojom.h" |
| 11 |
| 12 namespace sky { |
| 13 namespace shell { |
| 14 |
| 15 class Internals : public base::SupportsUserData::Data { |
| 16 public: |
| 17 virtual ~Internals(); |
| 18 |
| 19 static void Create(Dart_Isolate isolate, |
| 20 mojo::ServiceProviderPtr service_provider); |
| 21 |
| 22 mojo::Handle TakeServicesProvidedByEmbedder(); |
| 23 |
| 24 private: |
| 25 explicit Internals(mojo::ServiceProviderPtr service_provider); |
| 26 |
| 27 mojo::ServiceProviderPtr service_provider_; |
| 28 |
| 29 MOJO_DISALLOW_COPY_AND_ASSIGN(Internals); |
| 30 }; |
| 31 |
| 32 } // namespace shell |
| 33 } // namespace sky |
| 34 |
| 35 #endif // SKY_SHELL_UI_INTERNALS_H_ |
OLD | NEW |