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

Unified Diff: components/offline_pages/background/add_request_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/offline_pages/background/DEPS ('k') | components/offline_pages/background/add_request_task.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/offline_pages/background/add_request_task.h
diff --git a/components/offline_pages/background/add_request_task.h b/components/offline_pages/background/add_request_task.h
deleted file mode 100644
index 3b6b0c7edbd0e7f742b068592ff1a44649249594..0000000000000000000000000000000000000000
--- a/components/offline_pages/background/add_request_task.h
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_OFFLINE_PAGES_BACKGROUND_ADD_REQUEST_TASK_H_
-#define COMPONENTS_OFFLINE_PAGES_BACKGROUND_ADD_REQUEST_TASK_H_
-
-#include <memory>
-#include <vector>
-
-#include "base/memory/weak_ptr.h"
-#include "components/offline_pages/background/request_queue_store.h"
-#include "components/offline_pages/core/task.h"
-
-namespace offline_pages {
-
-class AddRequestTask : public Task {
- public:
- AddRequestTask(RequestQueueStore* store,
- const SavePageRequest& request,
- const RequestQueueStore::AddCallback& callback);
- ~AddRequestTask() override;
-
- // Task implementation:
- void Run() override;
-
- private:
- // Step 1: Add the request to the store.
- void AddRequest();
- // Step 2: Calls the callback with result, completes the task.
- void CompleteWithResult(ItemActionStatus status);
-
- // Store from which requests will be read.
- RequestQueueStore* store_;
- // Request to be added.
- SavePageRequest request_;
- // Callback used to return the read results.
- RequestQueueStore::AddCallback callback_;
-
- base::WeakPtrFactory<AddRequestTask> weak_ptr_factory_;
- DISALLOW_COPY_AND_ASSIGN(AddRequestTask);
-};
-
-} // namespace offline_pages
-
-#endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_ADD_REQUEST_TASK_H_
« no previous file with comments | « components/offline_pages/background/DEPS ('k') | components/offline_pages/background/add_request_task.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698