blob: c6d9716e458014f7699640a4fa7fe1afed4563e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/url_request/data_protocol_handler.h"
#include "net/url_request/url_request_data_job.h"
namespace net {
DataProtocolHandler::DataProtocolHandler() {
}
URLRequestJob* DataProtocolHandler::MaybeCreateJob(
URLRequest* request, NetworkDelegate* network_delegate) const {
return new URLRequestDataJob(request, network_delegate);
}
bool DataProtocolHandler::IsSafeRedirectTarget(const GURL& location) const {
return false;
}
} // namespace net
|