| Index: components/data_reduction_proxy/content/browser/data_reduction_proxy_host_impl.h
|
| diff --git a/components/data_reduction_proxy/content/browser/data_reduction_proxy_host_impl.h b/components/data_reduction_proxy/content/browser/data_reduction_proxy_host_impl.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b85ef6a22b36f46f8949fc6968d1a1dc77fbec7b
|
| --- /dev/null
|
| +++ b/components/data_reduction_proxy/content/browser/data_reduction_proxy_host_impl.h
|
| @@ -0,0 +1,47 @@
|
| +// Copyright 2015 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 COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_DATA_REDUCTION_PROXY_HOST_IMPL_H_
|
| +#define COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_DATA_REDUCTION_PROXY_HOST_IMPL_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "components/data_reduction_proxy/content/common/data_reduction_proxy.mojom.h"
|
| +#include "mojo/public/cpp/bindings/strong_binding.h"
|
| +
|
| +namespace net {
|
| +class HostPortPair;
|
| +}
|
| +
|
| +namespace data_reduction_proxy {
|
| +
|
| +class DataReductionProxyConfig;
|
| +class DataReductionProxySettings;
|
| +
|
| +class DataReductionProxyHostImpl : public mojom::DataReductionProxyHost {
|
| + public:
|
| + static void Create(DataReductionProxySettings* settings,
|
| + mojom::DataReductionProxyHostRequest request);
|
| +
|
| + // |settings| may be null.
|
| + DataReductionProxyHostImpl(DataReductionProxySettings* settings,
|
| + mojom::DataReductionProxyHostRequest request);
|
| + ~DataReductionProxyHostImpl() override;
|
| +
|
| + // mojom::DataReductionProxyHost methods:
|
| + void IsDataReductionProxy(
|
| + const net::HostPortPair& proxy_server,
|
| + const IsDataReductionProxyCallback& callback) override;
|
| +
|
| + private:
|
| + // Must outlive |this|. May be null.
|
| + DataReductionProxyConfig* config_;
|
| +
|
| + mojo::StrongBinding<mojom::DataReductionProxyHost> binding_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(DataReductionProxyHostImpl);
|
| +};
|
| +
|
| +} // namespace data_reduction_proxy
|
| +
|
| +#endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_DATA_REDUCTION_PROXY_HOST_IMPL_H_
|
|
|