Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: components/offline_pages/core/background/change_requests_state_task.h

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_CHANGE_REQUESTS_STATE_TASK_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_CHANGE_REQUESTS_STATE_TASK_H_
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_CHANGE_REQUESTS_STATE_TASK_H_ 6 #define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_CHANGE_REQUESTS_STATE_TASK_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <unordered_set> 11 #include <unordered_set>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "components/offline_pages/background/request_queue_store.h" 15 #include "components/offline_pages/core/background/request_queue_store.h"
16 #include "components/offline_pages/background/save_page_request.h" 16 #include "components/offline_pages/core/background/save_page_request.h"
17 #include "components/offline_pages/core/task.h" 17 #include "components/offline_pages/core/task.h"
18 18
19 namespace offline_pages { 19 namespace offline_pages {
20 20
21 class ChangeRequestsStateTask : public Task { 21 class ChangeRequestsStateTask : public Task {
22 public: 22 public:
23 ChangeRequestsStateTask(RequestQueueStore* store, 23 ChangeRequestsStateTask(RequestQueueStore* store,
24 const std::vector<int64_t>& request_ids, 24 const std::vector<int64_t>& request_ids,
25 const SavePageRequest::RequestState new_state, 25 const SavePageRequest::RequestState new_state,
26 const RequestQueueStore::UpdateCallback& callback); 26 const RequestQueueStore::UpdateCallback& callback);
(...skipping 20 matching lines...) Expand all
47 // Callback to complete the task. 47 // Callback to complete the task.
48 RequestQueueStore::UpdateCallback callback_; 48 RequestQueueStore::UpdateCallback callback_;
49 49
50 base::WeakPtrFactory<ChangeRequestsStateTask> weak_ptr_factory_; 50 base::WeakPtrFactory<ChangeRequestsStateTask> weak_ptr_factory_;
51 51
52 DISALLOW_COPY_AND_ASSIGN(ChangeRequestsStateTask); 52 DISALLOW_COPY_AND_ASSIGN(ChangeRequestsStateTask);
53 }; 53 };
54 54
55 } // namespace offline_pages 55 } // namespace offline_pages
56 56
57 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_CHANGE_REQUESTS_STATE_TASK_H_ 57 #endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_CHANGE_REQUESTS_STATE_TASK_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698