| Index: chromecast/shell/browser/cast_network_delegate.h
|
| diff --git a/chromecast/shell/browser/cast_network_delegate.h b/chromecast/shell/browser/cast_network_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f057a845296eae212d1747b3ccb981e980a6bf7f
|
| --- /dev/null
|
| +++ b/chromecast/shell/browser/cast_network_delegate.h
|
| @@ -0,0 +1,40 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROMECAST_SHELL_BROWSER_CAST_NETWORK_DELEGATE_H_
|
| +#define CHROMECAST_SHELL_BROWSER_CAST_NETWORK_DELEGATE_H_
|
| +
|
| +#include "net/base/network_delegate.h"
|
| +
|
| +namespace net {
|
| +class X509Certificate;
|
| +}
|
| +
|
| +namespace chromecast {
|
| +namespace shell {
|
| +
|
| +class CastNetworkDelegate : public net::NetworkDelegate {
|
| + public:
|
| + static CastNetworkDelegate* Create();
|
| + static net::X509Certificate* DeviceCert();
|
| +
|
| + CastNetworkDelegate();
|
| + virtual ~CastNetworkDelegate();
|
| +
|
| + virtual void Initialize(bool use_sync_signing) = 0;
|
| +
|
| + virtual bool IsWhitelisted(const GURL& gurl, bool for_device_auth) const = 0;
|
| +
|
| + private:
|
| + // net::NetworkDelegate implementation:
|
| + virtual bool OnCanAccessFile(const net::URLRequest& request,
|
| + const base::FilePath& path) const OVERRIDE;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(CastNetworkDelegate);
|
| +};
|
| +
|
| +} // namespace shell
|
| +} // namespace chromecast
|
| +
|
| +#endif // CHROMECAST_SHELL_BROWSER_CAST_NETWORK_DELEGATE_H_
|
|
|