blob: 2ba0cd6dae1e7ec4a714fef039dd2fe56747971b [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"
8#include "url/gurl.h"
9
10namespace chromecast {
11namespace shell {
12
13namespace {
14
15class CastNetworkDelegateSimple : public CastNetworkDelegate {
16 public:
17 CastNetworkDelegateSimple() {}
18
19 private:
20 // CastNetworkDelegate implementation:
gunsch7f9fc2232015-01-06 20:20:0221 void Initialize(bool use_sync_signing) override {}
22 bool IsWhitelisted(const GURL& gurl, int render_process_id,
23 bool for_device_auth) const override {
gunschdacd4f6f2014-09-27 00:01:1024 return false;
25 }
26
27 DISALLOW_COPY_AND_ASSIGN(CastNetworkDelegateSimple);
28};
29
30} // namespace
31
32// static
33CastNetworkDelegate* CastNetworkDelegate::Create() {
34 return new CastNetworkDelegateSimple();
35}
36
37// static
38net::X509Certificate* CastNetworkDelegate::DeviceCert() {
39 return NULL;
40}
41
42} // namespace shell
43} // namespace chromecast