OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/offline_pages/prefetch/prefetch_gcm_app_handler.h" |
| 6 |
| 7 namespace offline_pages { |
| 8 namespace { |
| 9 const char kPrefetchingOfflinePagesAppId[] = |
| 10 "com.google.chrome.OfflinePagePrefetch"; |
| 11 } |
| 12 |
| 13 PrefetchGCMAppHandler::PrefetchGCMAppHandler() |
| 14 : app_id_(kPrefetchingOfflinePagesAppId) {} |
| 15 PrefetchGCMAppHandler::~PrefetchGCMAppHandler() = default; |
| 16 |
| 17 void PrefetchGCMAppHandler::ShutdownHandler() { |
| 18 NOTIMPLEMENTED(); |
| 19 } |
| 20 |
| 21 void PrefetchGCMAppHandler::OnStoreReset() { |
| 22 NOTIMPLEMENTED(); |
| 23 } |
| 24 |
| 25 void PrefetchGCMAppHandler::OnMessage(const std::string& app_id, |
| 26 const gcm::IncomingMessage& message) { |
| 27 NOTIMPLEMENTED(); |
| 28 } |
| 29 |
| 30 void PrefetchGCMAppHandler::OnMessagesDeleted(const std::string& app_id) { |
| 31 NOTIMPLEMENTED(); |
| 32 } |
| 33 |
| 34 void PrefetchGCMAppHandler::OnSendError( |
| 35 const std::string& app_id, |
| 36 const gcm::GCMClient::SendErrorDetails& send_error_details) { |
| 37 NOTIMPLEMENTED(); |
| 38 } |
| 39 |
| 40 void PrefetchGCMAppHandler::OnSendAcknowledged(const std::string& app_id, |
| 41 const std::string& message_id) { |
| 42 NOTIMPLEMENTED(); |
| 43 } |
| 44 |
| 45 bool PrefetchGCMAppHandler::CanHandle(const std::string& app_id) const { |
| 46 return app_id == app_id_; |
| 47 } |
| 48 |
| 49 } // namespace offline_pages |
OLD | NEW |