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

Unified Diff: components/offline_pages/background/request_queue_in_memory_store.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
Index: components/offline_pages/background/request_queue_in_memory_store.h
diff --git a/components/offline_pages/background/request_queue_in_memory_store.h b/components/offline_pages/background/request_queue_in_memory_store.h
deleted file mode 100644
index 92625bdbfe33be9b02e470454cf6d20d176d5789..0000000000000000000000000000000000000000
--- a/components/offline_pages/background/request_queue_in_memory_store.h
+++ /dev/null
@@ -1,56 +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_REQUEST_QUEUE_IN_MEMORY_STORE_H_
-#define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_QUEUE_IN_MEMORY_STORE_H_
-
-#include <stdint.h>
-
-#include <map>
-
-#include "base/macros.h"
-#include "components/offline_pages/background/request_queue_store.h"
-#include "components/offline_pages/background/save_page_request.h"
-
-namespace offline_pages {
-
-// Interface for classes storing save page requests.
-class RequestQueueInMemoryStore : public RequestQueueStore {
- public:
- enum class TestScenario {
- SUCCESSFUL,
- LOAD_FAILED_RESET_SUCCESS,
- LOAD_FAILED_RESET_FAILED,
- };
-
- RequestQueueInMemoryStore();
- explicit RequestQueueInMemoryStore(TestScenario scenario);
- ~RequestQueueInMemoryStore() override;
-
- // RequestQueueStore implementaiton.
- void Initialize(const InitializeCallback& callback) override;
- void GetRequests(const GetRequestsCallback& callback) override;
- void GetRequestsByIds(const std::vector<int64_t>& request_ids,
- const UpdateCallback& callback) override;
- void AddRequest(const SavePageRequest& offline_page,
- const AddCallback& callback) override;
- void UpdateRequests(const std::vector<SavePageRequest>& requests,
- const UpdateCallback& callback) override;
- void RemoveRequests(const std::vector<int64_t>& request_ids,
- const UpdateCallback& callback) override;
- void Reset(const ResetCallback& callback) override;
- StoreState state() const override;
-
- private:
- typedef std::map<int64_t, SavePageRequest> RequestsMap;
- RequestsMap requests_;
- StoreState state_;
- TestScenario scenario_;
-
- DISALLOW_COPY_AND_ASSIGN(RequestQueueInMemoryStore);
-};
-
-} // namespace offline_pages
-
-#endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_QUEUE_IN_MEMORY_STORE_H_

Powered by Google App Engine
This is Rietveld 408576698