| 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 COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_H_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "components/offline_pages/background/scheduler.h" | 26 #include "components/offline_pages/background/scheduler.h" |
| 27 #include "net/nqe/network_quality_estimator.h" | 27 #include "net/nqe/network_quality_estimator.h" |
| 28 #include "url/gurl.h" | 28 #include "url/gurl.h" |
| 29 | 29 |
| 30 namespace offline_pages { | 30 namespace offline_pages { |
| 31 | 31 |
| 32 struct ClientId; | 32 struct ClientId; |
| 33 class OfflinerPolicy; | 33 class OfflinerPolicy; |
| 34 class OfflinerFactory; | 34 class OfflinerFactory; |
| 35 class Offliner; | 35 class Offliner; |
| 36 class RequestPicker; | |
| 37 class RequestQueue; | 36 class RequestQueue; |
| 38 class SavePageRequest; | 37 class SavePageRequest; |
| 39 class Scheduler; | 38 class Scheduler; |
| 40 class ClientPolicyController; | 39 class ClientPolicyController; |
| 41 | 40 |
| 42 // Coordinates queueing and processing save page later requests. | 41 // Coordinates queueing and processing save page later requests. |
| 43 class RequestCoordinator : public KeyedService, | 42 class RequestCoordinator : public KeyedService, |
| 44 public RequestNotifier, | 43 public RequestNotifier, |
| 45 public base::SupportsUserData { | 44 public base::SupportsUserData { |
| 46 public: | 45 public: |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 base::Callback<void(bool)> immediate_schedule_callback_; | 406 base::Callback<void(bool)> immediate_schedule_callback_; |
| 408 // Allows us to pass a weak pointer to callbacks. | 407 // Allows us to pass a weak pointer to callbacks. |
| 409 base::WeakPtrFactory<RequestCoordinator> weak_ptr_factory_; | 408 base::WeakPtrFactory<RequestCoordinator> weak_ptr_factory_; |
| 410 | 409 |
| 411 DISALLOW_COPY_AND_ASSIGN(RequestCoordinator); | 410 DISALLOW_COPY_AND_ASSIGN(RequestCoordinator); |
| 412 }; | 411 }; |
| 413 | 412 |
| 414 } // namespace offline_pages | 413 } // namespace offline_pages |
| 415 | 414 |
| 416 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_H_ | 415 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_COORDINATOR_H_ |
| OLD | NEW |