Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10820)

Unified Diff: chromecast/service/cast_network_delegate_simple.cc

Issue 598303002: Chromecast: adds CastNetworkDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: uploads CastNetworkDelegate :) Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromecast/service/cast_network_delegate_simple.cc
diff --git a/chromecast/service/cast_network_delegate_simple.cc b/chromecast/service/cast_network_delegate_simple.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7ab5b56058c2372d5f2c53d52ff28224571fabfb
--- /dev/null
+++ b/chromecast/service/cast_network_delegate_simple.cc
@@ -0,0 +1,41 @@
+// 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/service/cast_network_delegate.h"
+
+#include "base/macros.h"
+#include "url/gurl.h"
+
+namespace chromecast {
+
+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 chromecast

Powered by Google App Engine
This is Rietveld 408576698