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

Side by Side 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, 2 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chromecast/service/cast_network_delegate.h"
6
7 #include "base/macros.h"
8 #include "url/gurl.h"
9
10 namespace chromecast {
11
12 namespace {
13
14 class CastNetworkDelegateSimple : public CastNetworkDelegate {
15 public:
16 CastNetworkDelegateSimple() {}
17
18 private:
19 // CastNetworkDelegate implementation:
20 virtual void Initialize(bool use_sync_signing) OVERRIDE {}
21 virtual bool IsWhitelisted(const GURL& gurl,
22 bool for_device_auth) const OVERRIDE {
23 return false;
24 }
25
26 DISALLOW_COPY_AND_ASSIGN(CastNetworkDelegateSimple);
27 };
28
29 } // namespace
30
31 // static
32 CastNetworkDelegate* CastNetworkDelegate::Create() {
33 return new CastNetworkDelegateSimple();
34 }
35
36 // static
37 net::X509Certificate* CastNetworkDelegate::DeviceCert() {
38 return NULL;
39 }
40
41 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698