| 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/background/request_coordinator.h" | 5 #include "components/offline_pages/background/request_coordinator.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "components/offline_pages/background/offliner_factory.h" | 9 #include "components/offline_pages/background/offliner_factory.h" |
| 10 #include "components/offline_pages/background/offliner_policy.h" | 10 #include "components/offline_pages/background/offliner_policy.h" |
| 11 #include "components/offline_pages/background/save_page_request.h" | 11 #include "components/offline_pages/background/save_page_request.h" |
| 12 | 12 |
| 13 namespace offline_pages { | 13 namespace offline_pages { |
| 14 | 14 |
| 15 RequestCoordinator::RequestCoordinator( | 15 RequestCoordinator::RequestCoordinator( |
| 16 std::unique_ptr<OfflinerPolicy> policy, | 16 std::unique_ptr<OfflinerPolicy> policy, |
| 17 std::unique_ptr<OfflinerFactory> factory) { | 17 std::unique_ptr<OfflinerFactory> factory) { |
| 18 // Do setup as needed. | 18 // Do setup as needed. |
| 19 // TODO(petewil): Assert policy not null. | 19 // TODO(petewil): Assert policy not null. |
| 20 policy_ = std::move(policy); | 20 policy_ = std::move(policy); |
| 21 factory_ = std::move(factory); | 21 factory_ = std::move(factory); |
| 22 } | 22 } |
| 23 | 23 |
| 24 RequestCoordinator::~RequestCoordinator() {} | 24 RequestCoordinator::~RequestCoordinator() {} |
| 25 | 25 |
| 26 bool RequestCoordinator::SavePageLater(const SavePageRequest& request) { | 26 bool RequestCoordinator::SavePageLater(const SavePageRequest& request) { |
| 27 DVLOG(0) << "URL is " << request.url() << " " << __FUNCTION__; |
| 27 return true; | 28 return true; |
| 28 } | 29 } |
| 29 | 30 |
| 30 bool RequestCoordinator::StartProcessing( | 31 bool RequestCoordinator::StartProcessing( |
| 31 const ProcessingDoneCallback& callback) { | 32 const ProcessingDoneCallback& callback) { |
| 32 return false; | 33 return false; |
| 33 } | 34 } |
| 34 | 35 |
| 35 void RequestCoordinator::StopProcessing() { | 36 void RequestCoordinator::StopProcessing() { |
| 36 } | 37 } |
| 37 | 38 |
| 38 } // namespace offline_pages | 39 } // namespace offline_pages |
| OLD | NEW |