summaryrefslogtreecommitdiffstats
path: root/chromecast/browser/cast_network_delegate_simple.cc
blob: 2ba0cd6dae1e7ec4a714fef039dd2fe56747971b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright 2014 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 "chromecast/browser/cast_network_delegate.h"

#include "base/macros.h"
#include "url/gurl.h"

namespace chromecast {
namespace shell {

namespace {

class CastNetworkDelegateSimple : public CastNetworkDelegate {
 public:
  CastNetworkDelegateSimple() {}

 private:
  // CastNetworkDelegate implementation:
  void Initialize(bool use_sync_signing) override {}
  bool IsWhitelisted(const GURL& gurl, int render_process_id,
                     bool for_device_auth) const override {
    return false;
  }

  DISALLOW_COPY_AND_ASSIGN(CastNetworkDelegateSimple);
};

}  // namespace

// static
CastNetworkDelegate* CastNetworkDelegate::Create() {
  return new CastNetworkDelegateSimple();
}

// static
net::X509Certificate* CastNetworkDelegate::DeviceCert() {
  return NULL;
}

}  // namespace shell
}  // namespace chromecast