Chromium Code Reviews| Index: chrome/browser/previews/previews_service.h |
| diff --git a/chrome/browser/previews/previews_service.h b/chrome/browser/previews/previews_service.h |
| index bb52a1ae6cf698afb49196f73efd88577268cfd9..cf19e1a39a8bef76737f531086d0671a9120cf1c 100644 |
| --- a/chrome/browser/previews/previews_service.h |
| +++ b/chrome/browser/previews/previews_service.h |
| @@ -1,36 +1,46 @@ |
| // 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 "base/memory/ref_counted.h" |
| +#include "base/single_thread_task_runner.h" |
| #include "components/keyed_service/core/keyed_service.h" |
| +namespace base { |
| +class FilePath; |
| +} |
| + |
| namespace previews { |
| +class PreviewsIOData; |
| class PreviewsUIService; |
| } |
| // Keyed service that owns a previews::PreviewsUIService. PreviewsService lives |
| // on the UI thread. |
| class PreviewsService : public KeyedService { |
| public: |
| PreviewsService(); |
| ~PreviewsService() override; |
| - // The previews UI thread service. |
| - void set_previews_ui_service( |
| - std::unique_ptr<previews::PreviewsUIService> previews_ui_service); |
| + // Initializes the UI Service. |
|
tbansal1
2016/10/04 15:01:21
Say something about the function arguments.
RyanSturm
2016/10/04 19:10:23
Done.
|
| + void Initialize( |
| + previews::PreviewsIOData* previews_io_data, |
| + const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner, |
| + const base::FilePath& profile_path); |
| + |
| previews::PreviewsUIService* previews_ui_service() { |
| return previews_ui_service_.get(); |
| } |
| private: |
| // The previews UI thread service. |
| std::unique_ptr<previews::PreviewsUIService> previews_ui_service_; |
| DISALLOW_COPY_AND_ASSIGN(PreviewsService); |
| }; |