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

Side by Side Diff: components/offline_pages/core/background/request_queue_in_memory_store.cc

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 #include "components/offline_pages/background/request_queue_in_memory_store.h" 5 #include "components/offline_pages/core/background/request_queue_in_memory_store .h"
6 6
7 #include <unordered_set> 7 #include <unordered_set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/threading/thread_task_runner_handle.h" 11 #include "base/threading/thread_task_runner_handle.h"
12 #include "components/offline_pages/background/save_page_request.h" 12 #include "components/offline_pages/core/background/save_page_request.h"
13 13
14 namespace offline_pages { 14 namespace offline_pages {
15 15
16 RequestQueueInMemoryStore::RequestQueueInMemoryStore() 16 RequestQueueInMemoryStore::RequestQueueInMemoryStore()
17 : state_(StoreState::NOT_LOADED), scenario_(TestScenario::SUCCESSFUL) {} 17 : state_(StoreState::NOT_LOADED), scenario_(TestScenario::SUCCESSFUL) {}
18 18
19 RequestQueueInMemoryStore::RequestQueueInMemoryStore(TestScenario scenario) 19 RequestQueueInMemoryStore::RequestQueueInMemoryStore(TestScenario scenario)
20 : state_(StoreState::NOT_LOADED), scenario_(scenario) {} 20 : state_(StoreState::NOT_LOADED), scenario_(scenario) {}
21 21
22 RequestQueueInMemoryStore::~RequestQueueInMemoryStore() {} 22 RequestQueueInMemoryStore::~RequestQueueInMemoryStore() {}
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 } 149 }
150 base::ThreadTaskRunnerHandle::Get()->PostTask( 150 base::ThreadTaskRunnerHandle::Get()->PostTask(
151 FROM_HERE, base::Bind(callback, state_ == StoreState::NOT_LOADED)); 151 FROM_HERE, base::Bind(callback, state_ == StoreState::NOT_LOADED));
152 } 152 }
153 153
154 StoreState RequestQueueInMemoryStore::state() const { 154 StoreState RequestQueueInMemoryStore::state() const {
155 return state_; 155 return state_;
156 } 156 }
157 157
158 } // namespace offline_pages 158 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698