OLD | NEW |
---|---|
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ |
6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <set> | 11 #include <set> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/supports_user_data.h" | 15 #include "base/supports_user_data.h" |
16 #include "components/offline_pages/offline_page_archiver.h" | 16 #include "components/offline_pages/offline_page_archiver.h" |
17 #include "components/offline_pages/offline_page_model_event_logger.h" | |
17 #include "components/offline_pages/offline_page_storage_manager.h" | 18 #include "components/offline_pages/offline_page_storage_manager.h" |
18 #include "components/offline_pages/offline_page_types.h" | 19 #include "components/offline_pages/offline_page_types.h" |
19 | 20 |
20 class GURL; | 21 class GURL; |
21 namespace base { | 22 namespace base { |
22 class Time; | 23 class Time; |
23 } // namespace base | 24 } // namespace base |
24 | 25 |
25 namespace offline_pages { | 26 namespace offline_pages { |
26 | 27 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
186 // archive files. | 187 // archive files. |
187 virtual void ExpirePages(const std::vector<int64_t>& offline_ids, | 188 virtual void ExpirePages(const std::vector<int64_t>& offline_ids, |
188 const base::Time& expiration_time, | 189 const base::Time& expiration_time, |
189 const base::Callback<void(bool)>& callback) = 0; | 190 const base::Callback<void(bool)>& callback) = 0; |
190 | 191 |
191 // Returns the policy controller. | 192 // Returns the policy controller. |
192 virtual ClientPolicyController* GetPolicyController() = 0; | 193 virtual ClientPolicyController* GetPolicyController() = 0; |
193 | 194 |
194 // TODO(dougarnett): Remove this and its uses. | 195 // TODO(dougarnett): Remove this and its uses. |
195 virtual bool is_loaded() const = 0; | 196 virtual bool is_loaded() const = 0; |
197 | |
198 // Puts the current recorded logs into |storage_vector|. | |
199 virtual void GetLogs(std::vector<std::string>& storage_vector) = 0; | |
200 | |
201 // Set whether to record logs. | |
202 virtual void SetIsLogging(bool should_record) = 0; | |
203 | |
204 protected: | |
205 // Logger to facilitate recording of events. | |
fgorski
2016/06/23 16:34:06
? I am not sure I follow.
Did you mean to add a lo
chili
2016/06/24 02:45:51
I had a Logger here with all its implementations s
| |
196 }; | 206 }; |
197 | 207 |
198 } // namespace offline_pages | 208 } // namespace offline_pages |
199 | 209 |
200 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ | 210 #endif // COMPONENTS_OFFLINE_PAGES_OFFLINE_PAGE_MODEL_H_ |
OLD | NEW |