OLD | NEW |
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_SHELL_BROWSER_CAST_NETWORK_DELEGATE_H_ | 5 #ifndef CHROMECAST_SHELL_BROWSER_CAST_NETWORK_DELEGATE_H_ |
6 #define CHROMECAST_SHELL_BROWSER_CAST_NETWORK_DELEGATE_H_ | 6 #define CHROMECAST_SHELL_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 { |
(...skipping 11 matching lines...) Expand all Loading... |
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, bool for_device_auth) const = 0; |
28 | 28 |
29 private: | 29 private: |
30 // net::NetworkDelegate implementation: | 30 // net::NetworkDelegate implementation: |
31 virtual bool OnCanAccessFile(const net::URLRequest& request, | 31 virtual bool OnCanAccessFile(const net::URLRequest& request, |
32 const base::FilePath& path) const OVERRIDE; | 32 const base::FilePath& path) const override; |
33 | 33 |
34 DISALLOW_COPY_AND_ASSIGN(CastNetworkDelegate); | 34 DISALLOW_COPY_AND_ASSIGN(CastNetworkDelegate); |
35 }; | 35 }; |
36 | 36 |
37 } // namespace shell | 37 } // namespace shell |
38 } // namespace chromecast | 38 } // namespace chromecast |
39 | 39 |
40 #endif // CHROMECAST_SHELL_BROWSER_CAST_NETWORK_DELEGATE_H_ | 40 #endif // CHROMECAST_SHELL_BROWSER_CAST_NETWORK_DELEGATE_H_ |
OLD | NEW |