Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: chrome/browser/previews/previews_service.h

Issue 2300213002: Adding an IO Data and keyed service to previews/ (Closed)
Patch Set: adding an owners file Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 // Keyed service that owns a previews::PreviewsUIService.
Lei Zhang 2016/09/08 19:06:23 Can you mention "PreviewsService lives on the UI t
RyanSturm 2016/09/08 20:19:09 Done.
18 class PreviewsService : public KeyedService {
19 public:
20 PreviewsService();
21 ~PreviewsService() override;
22
23 // The UI-thread portion of previews/ inter-thread communication.
Lei Zhang 2016/09/08 19:06:23 This comment doesn't make as much sense.
RyanSturm 2016/09/08 20:19:09 Done.
24 void set_previews_ui_service(
25 std::unique_ptr<previews::PreviewsUIService> previews_ui_service);
26 previews::PreviewsUIService* previews_ui_service() {
27 return previews_ui_service_.get();
28 }
29
30 private:
31 // The UI thread portion of previews/ inter-thread communication.
32 std::unique_ptr<previews::PreviewsUIService> previews_ui_service_;
33
34 DISALLOW_COPY_AND_ASSIGN(PreviewsService);
35 };
36
37 #endif // CHROME_BROWSER_PREVIEWS_PREVIEWS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698