OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SKY_SHELL_UI_ENGINE_H_ | 5 #ifndef SKY_SHELL_UI_ENGINE_H_ |
6 #define SKY_SHELL_UI_ENGINE_H_ | 6 #define SKY_SHELL_UI_ENGINE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 class Engine : public UIDelegate, | 33 class Engine : public UIDelegate, |
34 public ViewportObserver, | 34 public ViewportObserver, |
35 public blink::ServiceProvider, | 35 public blink::ServiceProvider, |
36 public mojo::NavigatorHost, | 36 public mojo::NavigatorHost, |
37 public blink::WebFrameClient, | 37 public blink::WebFrameClient, |
38 public blink::WebViewClient, | 38 public blink::WebViewClient, |
39 public blink::SkyViewClient { | 39 public blink::SkyViewClient { |
40 public: | 40 public: |
41 struct Config { | 41 struct Config { |
| 42 Config(); |
| 43 ~Config(); |
| 44 |
42 ServiceProviderContext* service_provider_context; | 45 ServiceProviderContext* service_provider_context; |
43 | 46 |
44 base::WeakPtr<GPUDelegate> gpu_delegate; | 47 base::WeakPtr<GPUDelegate> gpu_delegate; |
45 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner; | 48 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner; |
46 }; | 49 }; |
47 | 50 |
48 explicit Engine(const Config& config); | 51 explicit Engine(const Config& config); |
49 ~Engine() override; | 52 ~Engine() override; |
50 | 53 |
51 base::WeakPtr<Engine> GetWeakPtr(); | 54 base::WeakPtr<Engine> GetWeakPtr(); |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 110 |
108 base::WeakPtrFactory<Engine> weak_factory_; | 111 base::WeakPtrFactory<Engine> weak_factory_; |
109 | 112 |
110 DISALLOW_COPY_AND_ASSIGN(Engine); | 113 DISALLOW_COPY_AND_ASSIGN(Engine); |
111 }; | 114 }; |
112 | 115 |
113 } // namespace shell | 116 } // namespace shell |
114 } // namespace sky | 117 } // namespace sky |
115 | 118 |
116 #endif // SKY_SHELL_UI_ENGINE_H_ | 119 #endif // SKY_SHELL_UI_ENGINE_H_ |
OLD | NEW |