OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_INIT_SERVICE_IMPL_H_ | 5 #ifndef MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_INIT_SERVICE_IMPL_H_ |
6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_INIT_SERVICE_IMPL_H_ | 6 #define MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_INIT_SERVICE_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #pragma warning(disable : 4275) | 27 #pragma warning(disable : 4275) |
28 #endif | 28 #endif |
29 | 29 |
30 // Used to create the initial ViewManagerClient. Doesn't initiate the Connect() | 30 // Used to create the initial ViewManagerClient. Doesn't initiate the Connect() |
31 // until the WindowTreeHost has been created. | 31 // until the WindowTreeHost has been created. |
32 class MOJO_VIEW_MANAGER_EXPORT ViewManagerInitServiceImpl | 32 class MOJO_VIEW_MANAGER_EXPORT ViewManagerInitServiceImpl |
33 : public InterfaceImpl<ViewManagerInitService> { | 33 : public InterfaceImpl<ViewManagerInitService> { |
34 public: | 34 public: |
35 ViewManagerInitServiceImpl(ApplicationConnection* connection, | 35 ViewManagerInitServiceImpl(ApplicationConnection* connection, |
36 ViewManagerInitServiceContext* context); | 36 ViewManagerInitServiceContext* context); |
37 virtual ~ViewManagerInitServiceImpl(); | 37 ~ViewManagerInitServiceImpl() override; |
38 | 38 |
39 private: | 39 private: |
40 // ViewManagerInitService overrides: | 40 // ViewManagerInitService overrides: |
41 virtual void Embed(const String& url, | 41 void Embed(const String& url, |
42 ServiceProviderPtr service_provider, | 42 ServiceProviderPtr service_provider, |
43 const Callback<void(bool)>& callback) override; | 43 const Callback<void(bool)>& callback) override; |
44 | 44 |
45 ViewManagerInitServiceContext* context_; | 45 ViewManagerInitServiceContext* context_; |
46 | 46 |
47 DISALLOW_COPY_AND_ASSIGN(ViewManagerInitServiceImpl); | 47 DISALLOW_COPY_AND_ASSIGN(ViewManagerInitServiceImpl); |
48 }; | 48 }; |
49 | 49 |
50 #if defined(OS_WIN) | 50 #if defined(OS_WIN) |
51 #pragma warning(pop) | 51 #pragma warning(pop) |
52 #endif | 52 #endif |
53 | 53 |
54 } // namespace service | 54 } // namespace service |
55 } // namespace mojo | 55 } // namespace mojo |
56 | 56 |
57 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_INIT_SERVICE_IMPL_H_ | 57 #endif // MOJO_SERVICES_VIEW_MANAGER_VIEW_MANAGER_INIT_SERVICE_IMPL_H_ |
OLD | NEW |