Index: chrome/browser/previews/previews_service.h |
diff --git a/chrome/browser/previews/previews_service.h b/chrome/browser/previews/previews_service.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..55e744f29d40e4fd24b48a257201dc5f3ae21ea0 |
--- /dev/null |
+++ b/chrome/browser/previews/previews_service.h |
@@ -0,0 +1,35 @@ |
+// Copyright 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_PREVIEWS_PREVIEWS_SERVICE_H_ |
+#define CHROME_BROWSER_PREVIEWS_PREVIEWS_SERVICE_H_ |
+ |
+#include <memory> |
+ |
+#include "base/macros.h" |
+#include "components/keyed_service/core/keyed_service.h" |
+ |
+namespace previews { |
+class PreviewsUIService; |
+} |
+ |
+// 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.
|
+class PreviewsService : public KeyedService { |
+ public: |
+ PreviewsService(); |
+ ~PreviewsService() override; |
+ |
+ // 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.
|
+ void set_previews_ui_service( |
+ std::unique_ptr<previews::PreviewsUIService> previews_ui_service); |
+ previews::PreviewsUIService* previews_ui_service(); |
+ |
+ private: |
+ // The UI thread portion of previews/ inter-thread communication. |
+ std::unique_ptr<previews::PreviewsUIService> previews_ui_service_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(PreviewsService); |
+}; |
+ |
+#endif // CHROME_BROWSER_PREVIEWS_PREVIEWS_SERVICE_H_ |