OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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. |
| 4 |
| 5 #ifndef COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_DATA_REDUCTION_PROXY_HOS
T_IMPL_H_ |
| 6 #define COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_DATA_REDUCTION_PROXY_HOS
T_IMPL_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" |
| 10 #include "components/data_reduction_proxy/content/common/data_reduction_proxy.mo
jom.h" |
| 11 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 12 |
| 13 namespace net { |
| 14 class HostPortPair; |
| 15 } |
| 16 |
| 17 namespace data_reduction_proxy { |
| 18 |
| 19 class DataReductionProxyConfig; |
| 20 |
| 21 class DataReductionProxyHostImpl : public mojom::DataReductionProxyHost { |
| 22 public: |
| 23 static void Create(base::WeakPtr<DataReductionProxyConfig> config, |
| 24 mojom::DataReductionProxyHostRequest request); |
| 25 |
| 26 DataReductionProxyHostImpl(base::WeakPtr<DataReductionProxyConfig> config, |
| 27 mojom::DataReductionProxyHostRequest request); |
| 28 |
| 29 ~DataReductionProxyHostImpl() override; |
| 30 |
| 31 // mojom::DataReductionProxyHost methods: |
| 32 void IsDataReductionProxy( |
| 33 const net::HostPortPair& proxy_server, |
| 34 const IsDataReductionProxyCallback& callback) override; |
| 35 |
| 36 private: |
| 37 base::WeakPtr<DataReductionProxyConfig> config_; |
| 38 |
| 39 mojo::StrongBinding<mojom::DataReductionProxyHost> binding_; |
| 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyHostImpl); |
| 42 }; |
| 43 |
| 44 } // namespace data_reduction_proxy |
| 45 |
| 46 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_DATA_REDUCTION_PROXY_
HOST_IMPL_H_ |
OLD | NEW |