Disabling AX test for select.html.
[chromium-blink-merge.git] / chromecast / browser / cast_network_delegate.h
blobaad296e3cc7af15c431812282e115aa9b9c56de1
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.
5 #ifndef CHROMECAST_BROWSER_CAST_NETWORK_DELEGATE_H_
6 #define CHROMECAST_BROWSER_CAST_NETWORK_DELEGATE_H_
8 #include "net/base/network_delegate.h"
10 namespace net {
11 class X509Certificate;
14 namespace chromecast {
15 namespace shell {
17 class CastNetworkDelegate : public net::NetworkDelegate {
18 public:
19 static CastNetworkDelegate* Create();
20 static net::X509Certificate* DeviceCert();
22 CastNetworkDelegate();
23 virtual ~CastNetworkDelegate();
25 virtual void Initialize(bool use_sync_signing) = 0;
27 virtual bool IsWhitelisted(const GURL& gurl, int render_process_id,
28 bool for_device_auth) const = 0;
30 private:
31 // net::NetworkDelegate implementation:
32 virtual bool OnCanAccessFile(const net::URLRequest& request,
33 const base::FilePath& path) const override;
35 DISALLOW_COPY_AND_ASSIGN(CastNetworkDelegate);
38 } // namespace shell
39 } // namespace chromecast
41 #endif // CHROMECAST_BROWSER_CAST_NETWORK_DELEGATE_H_