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

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

Issue 725163003: Device identification changes for multiple applications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
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 #ifndef CHROMECAST_BROWSER_CAST_NETWORK_DELEGATE_H_ 5 #ifndef CHROMECAST_BROWSER_CAST_NETWORK_DELEGATE_H_
6 #define CHROMECAST_BROWSER_CAST_NETWORK_DELEGATE_H_ 6 #define CHROMECAST_BROWSER_CAST_NETWORK_DELEGATE_H_
7 7
8 #include "net/base/network_delegate.h" 8 #include "net/base/network_delegate.h"
9 9
10 namespace net { 10 namespace net {
11 class X509Certificate; 11 class X509Certificate;
12 } 12 }
13 13
14 namespace chromecast { 14 namespace chromecast {
15 namespace shell { 15 namespace shell {
16 16
17 class CastNetworkDelegate : public net::NetworkDelegate { 17 class CastNetworkDelegate : public net::NetworkDelegate {
18 public: 18 public:
19 static CastNetworkDelegate* Create(); 19 static CastNetworkDelegate* Create();
20 static net::X509Certificate* DeviceCert(); 20 static net::X509Certificate* DeviceCert();
21 21
22 CastNetworkDelegate(); 22 CastNetworkDelegate();
23 virtual ~CastNetworkDelegate(); 23 virtual ~CastNetworkDelegate();
24 24
25 virtual void Initialize(bool use_sync_signing) = 0; 25 virtual void Initialize(bool use_sync_signing) = 0;
26 26
27 virtual bool IsWhitelisted(const GURL& gurl, bool for_device_auth) const = 0; 27 virtual bool IsWhitelisted(const GURL& gurl, int render_process_id,
28 bool for_device_auth) const = 0;
28 29
29 private: 30 private:
30 // net::NetworkDelegate implementation: 31 // net::NetworkDelegate implementation:
31 virtual bool OnCanAccessFile(const net::URLRequest& request, 32 virtual bool OnCanAccessFile(const net::URLRequest& request,
32 const base::FilePath& path) const override; 33 const base::FilePath& path) const override;
33 34
34 DISALLOW_COPY_AND_ASSIGN(CastNetworkDelegate); 35 DISALLOW_COPY_AND_ASSIGN(CastNetworkDelegate);
35 }; 36 };
36 37
37 } // namespace shell 38 } // namespace shell
38 } // namespace chromecast 39 } // namespace chromecast
39 40
40 #endif // CHROMECAST_BROWSER_CAST_NETWORK_DELEGATE_H_ 41 #endif // CHROMECAST_BROWSER_CAST_NETWORK_DELEGATE_H_
OLDNEW
« no previous file with comments | « chromecast/browser/cast_content_browser_client.cc ('k') | chromecast/browser/cast_network_delegate_simple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698