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_GET_REQUESTS_TASK_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND____CORE_BACKGROUND_GET_REQUESTS_TASK
_H_ |
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_GET_REQUESTS_TASK_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND____CORE_BACKGROUND_GET_REQUESTS_TASK
_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
12 #include "components/offline_pages/background/request_queue_store.h" | 12 #include "components/offline_pages/core/background/request_queue_store.h" |
13 #include "components/offline_pages/core/task.h" | 13 #include "components/offline_pages/core/task.h" |
14 | 14 |
15 namespace offline_pages { | 15 namespace offline_pages { |
16 | 16 |
17 class GetRequestsTask : public Task { | 17 class GetRequestsTask : public Task { |
18 public: | 18 public: |
19 GetRequestsTask(RequestQueueStore* store, | 19 GetRequestsTask(RequestQueueStore* store, |
20 const RequestQueueStore::GetRequestsCallback& callback); | 20 const RequestQueueStore::GetRequestsCallback& callback); |
21 ~GetRequestsTask() override; | 21 ~GetRequestsTask() override; |
22 | 22 |
(...skipping 12 matching lines...) Expand all Loading... |
35 RequestQueueStore* store_; | 35 RequestQueueStore* store_; |
36 // Callback used to return the read results. | 36 // Callback used to return the read results. |
37 RequestQueueStore::GetRequestsCallback callback_; | 37 RequestQueueStore::GetRequestsCallback callback_; |
38 | 38 |
39 base::WeakPtrFactory<GetRequestsTask> weak_ptr_factory_; | 39 base::WeakPtrFactory<GetRequestsTask> weak_ptr_factory_; |
40 DISALLOW_COPY_AND_ASSIGN(GetRequestsTask); | 40 DISALLOW_COPY_AND_ASSIGN(GetRequestsTask); |
41 }; | 41 }; |
42 | 42 |
43 } // namespace offline_pages | 43 } // namespace offline_pages |
44 | 44 |
45 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_GET_REQUESTS_TASK_H_ | 45 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND____CORE_BACKGROUND_GET_REQUESTS_T
ASK_H_ |
OLD | NEW |