| 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_REQUEST_QUEUE_IN_MEMORY_STORE_H_ | 5 #ifndef COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_REQUEST_QUEUE_IN_MEMORY_STORE_H
_ |
| 6 #define COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_QUEUE_IN_MEMORY_STORE_H_ | 6 #define COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_REQUEST_QUEUE_IN_MEMORY_STORE_H
_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| 11 | 11 |
| 12 #include "base/macros.h" | 12 #include "base/macros.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/background/save_page_request.h" | 14 #include "components/offline_pages/core/background/save_page_request.h" |
| 15 | 15 |
| 16 namespace offline_pages { | 16 namespace offline_pages { |
| 17 | 17 |
| 18 // Interface for classes storing save page requests. | 18 // Interface for classes storing save page requests. |
| 19 class RequestQueueInMemoryStore : public RequestQueueStore { | 19 class RequestQueueInMemoryStore : public RequestQueueStore { |
| 20 public: | 20 public: |
| 21 enum class TestScenario { | 21 enum class TestScenario { |
| 22 SUCCESSFUL, | 22 SUCCESSFUL, |
| 23 LOAD_FAILED_RESET_SUCCESS, | 23 LOAD_FAILED_RESET_SUCCESS, |
| 24 LOAD_FAILED_RESET_FAILED, | 24 LOAD_FAILED_RESET_FAILED, |
| (...skipping 21 matching lines...) Expand all Loading... |
| 46 typedef std::map<int64_t, SavePageRequest> RequestsMap; | 46 typedef std::map<int64_t, SavePageRequest> RequestsMap; |
| 47 RequestsMap requests_; | 47 RequestsMap requests_; |
| 48 StoreState state_; | 48 StoreState state_; |
| 49 TestScenario scenario_; | 49 TestScenario scenario_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(RequestQueueInMemoryStore); | 51 DISALLOW_COPY_AND_ASSIGN(RequestQueueInMemoryStore); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace offline_pages | 54 } // namespace offline_pages |
| 55 | 55 |
| 56 #endif // COMPONENTS_OFFLINE_PAGES_BACKGROUND_REQUEST_QUEUE_IN_MEMORY_STORE_H_ | 56 #endif // COMPONENTS_OFFLINE_PAGES_CORE_BACKGROUND_REQUEST_QUEUE_IN_MEMORY_STOR
E_H_ |
| OLD | NEW |