| 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 CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_OFFLINER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_OFFLINER_H_ |
| 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_OFFLINER_H_ | 6 #define CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_OFFLINER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/android/application_status_listener.h" | 10 #include "base/android/application_status_listener.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "chrome/browser/android/offline_pages/prerendering_loader.h" | 12 #include "chrome/browser/android/offline_pages/prerendering_loader.h" |
| 13 #include "components/offline_pages/background/offliner.h" | 13 #include "components/offline_pages/core/background/offliner.h" |
| 14 #include "components/offline_pages/offline_page_model.h" | 14 #include "components/offline_pages/core/offline_page_model.h" |
| 15 #include "components/offline_pages/offline_page_types.h" | 15 #include "components/offline_pages/core/offline_page_types.h" |
| 16 | 16 |
| 17 namespace content { | 17 namespace content { |
| 18 class BrowserContext; | 18 class BrowserContext; |
| 19 class WebContents; | 19 class WebContents; |
| 20 } // namespace content | 20 } // namespace content |
| 21 | 21 |
| 22 namespace offline_pages { | 22 namespace offline_pages { |
| 23 | 23 |
| 24 class OfflinerPolicy; | 24 class OfflinerPolicy; |
| 25 | 25 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // ApplicationStatusListener to monitor if the Chrome moves to the foreground. | 89 // ApplicationStatusListener to monitor if the Chrome moves to the foreground. |
| 90 std::unique_ptr<base::android::ApplicationStatusListener> app_listener_; | 90 std::unique_ptr<base::android::ApplicationStatusListener> app_listener_; |
| 91 base::WeakPtrFactory<PrerenderingOffliner> weak_ptr_factory_; | 91 base::WeakPtrFactory<PrerenderingOffliner> weak_ptr_factory_; |
| 92 | 92 |
| 93 DISALLOW_COPY_AND_ASSIGN(PrerenderingOffliner); | 93 DISALLOW_COPY_AND_ASSIGN(PrerenderingOffliner); |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace offline_pages | 96 } // namespace offline_pages |
| 97 | 97 |
| 98 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_OFFLINER_H_ | 98 #endif // CHROME_BROWSER_ANDROID_OFFLINE_PAGES_PRERENDERING_OFFLINER_H_ |
| OLD | NEW |