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 "components/offline_pages/core/background/offliner_stub.h" | 5 #include "components/offline_pages/core/background/offliner_stub.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/threading/thread_task_runner_handle.h" | 8 #include "base/threading/thread_task_runner_handle.h" |
9 #include "components/offline_pages/core/background/save_page_request.h" | 9 #include "components/offline_pages/core/background/save_page_request.h" |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 bool OfflinerStub::HandleTimeout(int64_t request_id) { | 53 bool OfflinerStub::HandleTimeout(int64_t request_id) { |
54 if (snapshot_on_last_retry_) { | 54 if (snapshot_on_last_retry_) { |
55 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, | 55 base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, |
56 completion_callback_); | 56 completion_callback_); |
57 pending_request_.reset(); | 57 pending_request_.reset(); |
58 return true; | 58 return true; |
59 } | 59 } |
60 return false; | 60 return false; |
61 } | 61 } |
62 | 62 |
| 63 void OfflinerStub::ObserveResourceTracking(ResourceDataType type, |
| 64 int64_t started_count, |
| 65 int64_t completed_count) {} |
| 66 |
63 } // namespace offline_pages | 67 } // namespace offline_pages |
OLD | NEW |