blob: 86f946b8001c0a677b4cd53d50cd264778d5fdaa [file] [log] [blame]
gunschdacd4f6f2014-09-27 00:01:101// Copyright 2014 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
gunschf44ffcb2014-10-13 23:01:455#include "chromecast/browser/cast_network_delegate.h"
gunschdacd4f6f2014-09-27 00:01:106
7#include "base/macros.h"
ryanchung863d7e52017-06-20 01:23:098#include "base/memory/ptr_util.h"
9#include "net/cert/x509_certificate.h"
10#include "net/ssl/ssl_private_key.h"
gunschdacd4f6f2014-09-27 00:01:1011#include "url/gurl.h"
12
13namespace chromecast {
14namespace shell {
15
16namespace {
17
18class CastNetworkDelegateSimple : public CastNetworkDelegate {
19 public:
20 CastNetworkDelegateSimple() {}
21
22 private:
23 // CastNetworkDelegate implementation:
ryanchung863d7e52017-06-20 01:23:0924 void Initialize() override {}
gunsch7f9fc2232015-01-06 20:20:0225 bool IsWhitelisted(const GURL& gurl, int render_process_id,
26 bool for_device_auth) const override {
gunschdacd4f6f2014-09-27 00:01:1027 return false;
28 }
29
30 DISALLOW_COPY_AND_ASSIGN(CastNetworkDelegateSimple);
31};
32
33} // namespace
34
35// static
ryanchung863d7e52017-06-20 01:23:0936std::unique_ptr<CastNetworkDelegate> CastNetworkDelegate::Create() {
37 return base::MakeUnique<CastNetworkDelegateSimple>();
gunschdacd4f6f2014-09-27 00:01:1038}
39
40// static
ryanchung863d7e52017-06-20 01:23:0941scoped_refptr<net::X509Certificate> CastNetworkDelegate::DeviceCert() {
42 return nullptr;
gunschdacd4f6f2014-09-27 00:01:1043}
44
mattm436ccfe2017-06-19 20:24:0845// static
ryanchung863d7e52017-06-20 01:23:0946scoped_refptr<net::SSLPrivateKey> CastNetworkDelegate::DeviceKey() {
47 return nullptr;
mattm436ccfe2017-06-19 20:24:0848}
49
gunschdacd4f6f2014-09-27 00:01:1050} // namespace shell
51} // namespace chromecast