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 #include "chrome/browser/android/offline_pages/evaluation/evaluation_test_schedu
ler.h" | 5 #include "chrome/browser/android/offline_pages/evaluation/evaluation_test_schedu
ler.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
9 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h" | 9 #include "chrome/browser/android/offline_pages/request_coordinator_factory.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
11 #include "chrome/browser/profiles/profile_manager.h" | 11 #include "chrome/browser/profiles/profile_manager.h" |
12 #include "components/offline_pages/background/device_conditions.h" | 12 #include "components/offline_pages/core/background/device_conditions.h" |
13 #include "components/offline_pages/background/request_coordinator.h" | 13 #include "components/offline_pages/core/background/request_coordinator.h" |
14 #include "components/offline_pages/offline_event_logger.h" | 14 #include "components/offline_pages/core/offline_event_logger.h" |
15 #include "net/base/network_change_notifier.h" | 15 #include "net/base/network_change_notifier.h" |
16 | 16 |
17 namespace offline_pages { | 17 namespace offline_pages { |
18 | 18 |
19 namespace android { | 19 namespace android { |
20 | 20 |
21 namespace { | 21 namespace { |
22 | 22 |
23 const char kLogTag[] = "EvaluationTestScheduler"; | 23 const char kLogTag[] = "EvaluationTestScheduler"; |
24 | 24 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 void EvaluationTestScheduler::Unschedule() {} | 75 void EvaluationTestScheduler::Unschedule() {} |
76 | 76 |
77 void EvaluationTestScheduler::ImmediateScheduleCallback(bool result) { | 77 void EvaluationTestScheduler::ImmediateScheduleCallback(bool result) { |
78 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, | 78 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, |
79 base::Bind(&StartProcessing)); | 79 base::Bind(&StartProcessing)); |
80 } | 80 } |
81 | 81 |
82 } // namespace android | 82 } // namespace android |
83 } // namespace offline_pages | 83 } // namespace offline_pages |
OLD | NEW |