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

Side by Side Diff: components/offline_pages/core/prefetch/prefetch_service_impl.cc

Issue 2879013002: Create skeleton for the Prefetching store and initial pipeline step. (Closed)
Patch Set: A couple of minor changes. Created 3 years, 7 months 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/core/prefetch/prefetch_service_impl.h" 5 #include "components/offline_pages/core/prefetch/prefetch_service_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "components/offline_pages/core/prefetch/prefetch_dispatcher_impl.h" 10 #include "components/offline_pages/core/prefetch/prefetch_dispatcher_impl.h"
11 11
12 namespace offline_pages { 12 namespace offline_pages {
13 13
14 PrefetchServiceImpl::PrefetchServiceImpl() 14 PrefetchServiceImpl::PrefetchServiceImpl(std::unique_ptr<PrefetchStore> store)
15 : dispatcher_(base::MakeUnique<PrefetchDispatcherImpl>()) {} 15 : dispatcher_(base::MakeUnique<PrefetchDispatcherImpl>(std::move(store))) {}
16 16
17 PrefetchServiceImpl::~PrefetchServiceImpl() = default; 17 PrefetchServiceImpl::~PrefetchServiceImpl() = default;
18 18
19 PrefetchDispatcher* PrefetchServiceImpl::GetDispatcher() { 19 PrefetchDispatcher* PrefetchServiceImpl::GetDispatcher() {
20 return dispatcher_.get(); 20 return dispatcher_.get();
21 }; 21 };
22 22
23 void PrefetchServiceImpl::Shutdown() {} 23 void PrefetchServiceImpl::Shutdown() {}
24 24
25 } // namespace offline_pages 25 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698