OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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 CHROME_BROWSER_PREVIEWS_PREVIEWS_SERVICE_H_ | |
6 #define CHROME_BROWSER_PREVIEWS_PREVIEWS_SERVICE_H_ | |
7 | |
8 #include <memory> | |
9 | |
10 #include "base/macros.h" | |
11 #include "components/keyed_service/core/keyed_service.h" | |
12 | |
13 namespace previews { | |
14 class PreviewsUIService; | |
15 } | |
16 | |
17 // UI service which owns a previews::PreviewsUIService. | |
bengr
2016/09/08 00:19:09
// Keyed service that owns a previews::PreviewsUIS
RyanSturm
2016/09/08 18:34:33
Done.
| |
18 class PreviewsService : public KeyedService { | |
19 public: | |
20 PreviewsService(); | |
21 ~PreviewsService() override; | |
22 | |
23 // The UI thread portion of previews/ inter-thread communication. | |
bengr
2016/09/08 00:19:09
nit: UI-thread
RyanSturm
2016/09/08 18:34:33
Done.
| |
24 void set_previews_ui_service( | |
25 std::unique_ptr<previews::PreviewsUIService> previews_ui_service); | |
26 previews::PreviewsUIService* previews_ui_service(); | |
27 | |
28 private: | |
29 // The UI thread portion of previews/ inter-thread communication. | |
30 std::unique_ptr<previews::PreviewsUIService> previews_ui_service_; | |
31 | |
32 DISALLOW_COPY_AND_ASSIGN(PreviewsService); | |
33 }; | |
34 | |
35 #endif // CHROME_BROWSER_PREVIEWS_PREVIEWS_SERVICE_H_ | |
OLD | NEW |