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

Side by Side Diff: chrome/browser/android/offline_pages/offline_page_protocol_handler.cc

Issue 2002433002: Handle online and offline redirects via interceptor and offline scheme (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698