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

Side by Side Diff: chromecast/service/cast_network_delegate.h

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 #ifndef CHROMECAST_SERVICE_CAST_NETWORK_DELEGATE_H_
6 #define CHROMECAST_SERVICE_CAST_NETWORK_DELEGATE_H_
7
8 #include "net/base/network_delegate.h"
9
10 namespace net {
11 class X509Certificate;
12 }
13
14 namespace chromecast {
15
16 class CastNetworkDelegate : public net::NetworkDelegate {
17 public:
18 static CastNetworkDelegate* Create();
19 static net::X509Certificate* DeviceCert();
20
21 CastNetworkDelegate();
22 virtual ~CastNetworkDelegate();
23
24 virtual void Initialize(bool use_sync_signing) = 0;
25
26 virtual bool IsWhitelisted(const GURL& gurl, bool for_device_auth) const = 0;
27
28 private:
29 // net::NetworkDelegate implementation:
30 virtual bool OnCanAccessFile(const net::URLRequest& request,
31 const base::FilePath& path) const OVERRIDE;
32
33 DISALLOW_COPY_AND_ASSIGN(CastNetworkDelegate);
34 };
35
36 } // namespace chromecast
37
38 #endif // CHROMECAST_SERVICE_CAST_NETWORK_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698