mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
23 lines
643 B
C++
23 lines
643 B
C++
|
// 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() = default;
|
||
|
|
||
|
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
|