| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/android/offline_pages/offline_page_protocol_handler.h" |
| 6 |
| 7 #include "chrome/browser/android/offline_pages/offline_page_request_offline_job.
h" |
| 8 |
| 9 namespace offline_pages { |
| 10 |
| 11 OfflinePageProtocolHandler::OfflinePageProtocolHandler(void* profile_id) |
| 12 : profile_id_(profile_id), |
| 13 weak_ptr_factory_(this) { |
| 14 } |
| 15 |
| 16 OfflinePageProtocolHandler::~OfflinePageProtocolHandler() { |
| 17 } |
| 18 |
| 19 net::URLRequestJob* OfflinePageProtocolHandler::MaybeCreateJob( |
| 20 net::URLRequest* request, |
| 21 net::NetworkDelegate* network_delegate) const { |
| 22 return new OfflinePageRequestOfflineJob( |
| 23 profile_id_, request, network_delegate); |
| 24 } |
| 25 |
| 26 } // namespace offline_pages |
| OLD | NEW |