Index: chromecast/shell/browser/cast_network_delegate_simple.cc |
diff --git a/chromecast/shell/browser/cast_network_delegate_simple.cc b/chromecast/shell/browser/cast_network_delegate_simple.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..7708b5a07898c4824e0e1d4b2c24292bc891cf99 |
--- /dev/null |
+++ b/chromecast/shell/browser/cast_network_delegate_simple.cc |
@@ -0,0 +1,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/shell/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: |
+ virtual void Initialize(bool use_sync_signing) OVERRIDE {} |
+ virtual bool IsWhitelisted(const GURL& gurl, |
+ 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 |