OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 COMPONENTS_PREVIEWS_CORE_PREVIEWS_IO_DATA_H_ | 5 #ifndef COMPONENTS_PREVIEWS_CORE_PREVIEWS_IO_DATA_H_ |
6 #define COMPONENTS_PREVIEWS_CORE_PREVIEWS_IO_DATA_H_ | 6 #define COMPONENTS_PREVIEWS_CORE_PREVIEWS_IO_DATA_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
15 #include "base/time/time.h" | 15 #include "base/time/time.h" |
16 #include "components/previews/core/previews_decider.h" | 16 #include "components/previews/core/previews_decider.h" |
17 #include "components/previews/core/previews_opt_out_store.h" | 17 #include "components/previews/core/previews_experiments.h" |
18 | 18 |
19 class GURL; | 19 class GURL; |
20 | 20 |
21 namespace net { | 21 namespace net { |
22 class URLRequest; | 22 class URLRequest; |
23 } | 23 } |
24 | 24 |
25 namespace previews { | 25 namespace previews { |
26 class PreviewsBlackList; | 26 class PreviewsBlackList; |
| 27 class PreviewsOptOutStore; |
27 class PreviewsUIService; | 28 class PreviewsUIService; |
28 | 29 |
29 // A class to manage the IO portion of inter-thread communication between | 30 // A class to manage the IO portion of inter-thread communication between |
30 // previews/ objects. Created on the UI thread, but used only on the IO thread | 31 // previews/ objects. Created on the UI thread, but used only on the IO thread |
31 // after initialization. | 32 // after initialization. |
32 class PreviewsIOData : public PreviewsDecider { | 33 class PreviewsIOData : public PreviewsDecider { |
33 public: | 34 public: |
34 PreviewsIOData( | 35 PreviewsIOData( |
35 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner, | 36 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner, |
36 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); | 37 const scoped_refptr<base::SingleThreadTaskRunner>& io_task_runner); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; | 76 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; |
76 | 77 |
77 base::WeakPtrFactory<PreviewsIOData> weak_factory_; | 78 base::WeakPtrFactory<PreviewsIOData> weak_factory_; |
78 | 79 |
79 DISALLOW_COPY_AND_ASSIGN(PreviewsIOData); | 80 DISALLOW_COPY_AND_ASSIGN(PreviewsIOData); |
80 }; | 81 }; |
81 | 82 |
82 } // namespace previews | 83 } // namespace previews |
83 | 84 |
84 #endif // COMPONENTS_PREVIEWS_CORE_PREVIEWS_IO_DATA_H_ | 85 #endif // COMPONENTS_PREVIEWS_CORE_PREVIEWS_IO_DATA_H_ |
OLD | NEW |