OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
Anand Mistry (off Chromium)
2016/06/24 07:12:28
Ahem! Unless you've got a time machine I can borro
leonhsl(Using Gerrit)
2016/06/24 09:59:21
Ehh,, Done! Thank you ;-)
| |
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 "components/data_reduction_proxy/content/common/data_reduction_proxy.mo jom.h" | |
10 #include "content/public/browser/render_process_host_observer.h" | |
11 #include "mojo/public/cpp/bindings/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 content::RenderProcessHostObserver { | |
23 public: | |
24 // |config| may be null. | |
25 DataReductionProxyHostImpl(DataReductionProxyConfig* config, | |
26 content::RenderProcessHost* host); | |
27 | |
28 ~DataReductionProxyHostImpl() override; | |
29 | |
30 void BindRequest(mojom::DataReductionProxyHostRequest request); | |
31 | |
32 // mojom::DataReductionProxyHost methods: | |
33 void IsDataReductionProxy( | |
34 const net::HostPortPair& proxy_server, | |
35 const IsDataReductionProxyCallback& callback) override; | |
36 | |
37 // content::RenderProcessHostObserver methods: | |
38 void RenderProcessHostDestroyed(content::RenderProcessHost* host) override; | |
39 | |
40 private: | |
41 // Must outlive |this|. May be null. | |
42 DataReductionProxyConfig* config_; | |
43 | |
44 mojo::Binding<mojom::DataReductionProxyHost> binding_; | |
45 | |
46 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyHostImpl); | |
47 }; | |
48 | |
49 } // namespace data_reduction_proxy | |
50 | |
51 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_DATA_REDUCTION_PROXY_ HOST_IMPL_H_ | |
OLD | NEW |