OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chromecast/browser/cast_network_delegate.h" | 5 #include "chromecast/browser/cast_network_delegate.h" |
6 | 6 |
7 #include "base/macros.h" | 7 #include "base/macros.h" |
8 #include "url/gurl.h" | 8 #include "url/gurl.h" |
9 | 9 |
10 namespace chromecast { | 10 namespace chromecast { |
11 namespace shell { | 11 namespace shell { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 class CastNetworkDelegateSimple : public CastNetworkDelegate { | 15 class CastNetworkDelegateSimple : public CastNetworkDelegate { |
16 public: | 16 public: |
17 CastNetworkDelegateSimple() {} | 17 CastNetworkDelegateSimple() {} |
18 | 18 |
19 private: | 19 private: |
20 // CastNetworkDelegate implementation: | 20 // CastNetworkDelegate implementation: |
21 virtual void Initialize(bool use_sync_signing) override {} | 21 void Initialize(bool use_sync_signing) override {} |
22 virtual bool IsWhitelisted(const GURL& gurl, int render_process_id, | 22 bool IsWhitelisted(const GURL& gurl, int render_process_id, |
23 bool for_device_auth) const override { | 23 bool for_device_auth) const override { |
24 return false; | 24 return false; |
25 } | 25 } |
26 | 26 |
27 DISALLOW_COPY_AND_ASSIGN(CastNetworkDelegateSimple); | 27 DISALLOW_COPY_AND_ASSIGN(CastNetworkDelegateSimple); |
28 }; | 28 }; |
29 | 29 |
30 } // namespace | 30 } // namespace |
31 | 31 |
32 // static | 32 // static |
33 CastNetworkDelegate* CastNetworkDelegate::Create() { | 33 CastNetworkDelegate* CastNetworkDelegate::Create() { |
34 return new CastNetworkDelegateSimple(); | 34 return new CastNetworkDelegateSimple(); |
35 } | 35 } |
36 | 36 |
37 // static | 37 // static |
38 net::X509Certificate* CastNetworkDelegate::DeviceCert() { | 38 net::X509Certificate* CastNetworkDelegate::DeviceCert() { |
39 return NULL; | 39 return NULL; |
40 } | 40 } |
41 | 41 |
42 } // namespace shell | 42 } // namespace shell |
43 } // namespace chromecast | 43 } // namespace chromecast |
OLD | NEW |