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

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

Issue 2864293003: [Offline Pages] Add a GCMAppHandler for offline page prefetch. (Closed)
Patch Set: 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 namespace offline_pages { 7 namespace offline_pages {
8 8
9 PrefetchServiceImpl::PrefetchServiceImpl() {} 9 PrefetchServiceImpl::PrefetchServiceImpl() {}
10 PrefetchServiceImpl::~PrefetchServiceImpl() = default; 10 PrefetchServiceImpl::~PrefetchServiceImpl() = default;
(...skipping 14 matching lines...) Expand all
25 25
26 void PrefetchServiceImpl::BeginBackgroundTask( 26 void PrefetchServiceImpl::BeginBackgroundTask(
27 std::unique_ptr<ScopedBackgroundTask> task) { 27 std::unique_ptr<ScopedBackgroundTask> task) {
28 NOTIMPLEMENTED(); 28 NOTIMPLEMENTED();
29 } 29 }
30 30
31 void PrefetchServiceImpl::StopBackgroundTask(ScopedBackgroundTask* task) { 31 void PrefetchServiceImpl::StopBackgroundTask(ScopedBackgroundTask* task) {
32 NOTIMPLEMENTED(); 32 NOTIMPLEMENTED();
33 } 33 }
34 34
35 void PrefetchServiceImpl::ShutdownHandler() {}
36
37 void PrefetchServiceImpl::OnStoreReset() {}
38
39 void PrefetchServiceImpl::OnMessage(const std::string& app_id,
40 const gcm::IncomingMessage& message) {
41 DVLOG(1) << "PrefetchServiceImpl " << __func__ << ":" << message.raw_data;
42 }
43
44 void PrefetchServiceImpl::OnMessagesDeleted(const std::string& app_id) {
45 NOTIMPLEMENTED();
46 }
47
48 void PrefetchServiceImpl::OnSendError(
49 const std::string& app_id,
50 const gcm::GCMClient::SendErrorDetails& send_error_details) {
51 // We should never get here, since we are not sending GCM upstream.
52 NOTREACHED();
53 }
54
55 void PrefetchServiceImpl::OnSendAcknowledged(const std::string& app_id,
56 const std::string& message_id) {
57 // We should never get here, since we are not sending GCM upstream.
58 NOTREACHED();
59 }
60
35 void PrefetchServiceImpl::Shutdown() {} 61 void PrefetchServiceImpl::Shutdown() {}
36 62
37 } // namespace offline_pages 63 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698