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

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

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: update Created 4 years, 1 month 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_UPDATE_REQUEST_TASK_H_ 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_UPDATE_REQUEST_TASK_H_
6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_UPDATE_REQUEST_TASK_H_ 6 #define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_UPDATE_REQUEST_TASK_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "components/offline_pages/background/request_queue_store.h" 13 #include "components/offline_pages/core/background/request_queue_store.h"
14 #include "components/offline_pages/core/task.h" 14 #include "components/offline_pages/core/task.h"
15 15
16 namespace offline_pages { 16 namespace offline_pages {
17 17
18 // Base class for update requests that only work on a single save page request. 18 // Base class for update requests that only work on a single save page request.
19 // Derived classes should implement appropriate functionality by overloading 19 // Derived classes should implement appropriate functionality by overloading
20 // |UpdateRequestImpl| method. 20 // |UpdateRequestImpl| method.
21 class UpdateRequestTask : public Task { 21 class UpdateRequestTask : public Task {
22 public: 22 public:
23 UpdateRequestTask(RequestQueueStore* store, 23 UpdateRequestTask(RequestQueueStore* store,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 int64_t request_id_; 56 int64_t request_id_;
57 // Callback to complete the task. 57 // Callback to complete the task.
58 RequestQueueStore::UpdateCallback callback_; 58 RequestQueueStore::UpdateCallback callback_;
59 59
60 base::WeakPtrFactory<UpdateRequestTask> weak_ptr_factory_; 60 base::WeakPtrFactory<UpdateRequestTask> weak_ptr_factory_;
61 DISALLOW_COPY_AND_ASSIGN(UpdateRequestTask); 61 DISALLOW_COPY_AND_ASSIGN(UpdateRequestTask);
62 }; 62 };
63 63
64 } // namespace offline_pages 64 } // namespace offline_pages
65 65
66 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_UPDATE_REQUEST_TASK_H_ 66 #endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_UPDATE_REQUEST_TASK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698