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 "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_set.h" | |
12 | |
13 namespace net { | |
14 class HostPortPair; | |
15 } | |
16 | |
17 namespace data_reduction_proxy { | |
18 | |
19 class DataReductionProxyConfig; | |
20 class DataReductionProxySettings; | |
21 | |
22 class DataReductionProxyHostImpl : public mojom::DataReductionProxyHost, | |
23 public content::RenderProcessHostObserver { | |
24 public: | |
25 // |config| may be null. | |
tbansal1
2016/07/13 17:35:18
Did you mean |settings|?
leonhsl(Using Gerrit)
2016/07/14 14:54:53
Done.
| |
26 DataReductionProxyHostImpl(DataReductionProxySettings* settings, | |
27 content::RenderProcessHost* host); | |
tbansal1
2016/07/13 17:35:18
Forward declare RenderProcessHost.
leonhsl(Using Gerrit)
2016/07/14 14:54:53
Done.
| |
28 | |
29 ~DataReductionProxyHostImpl() override; | |
30 | |
31 void BindRequest(mojom::DataReductionProxyHostRequest request); | |
32 | |
33 // mojom::DataReductionProxyHost methods: | |
34 void IsDataReductionProxy( | |
35 const net::HostPortPair& proxy_server, | |
36 const IsDataReductionProxyCallback& callback) override; | |
37 | |
38 // content::RenderProcessHostObserver methods: | |
39 void RenderProcessExited(content::RenderProcessHost* host, | |
40 base::TerminationStatus status, | |
41 int exit_code) override; | |
42 | |
43 private: | |
44 // Must outlive |this|. May be null. | |
45 DataReductionProxyConfig* config_; | |
46 | |
47 mojo::BindingSet<mojom::DataReductionProxyHost> bindings_; | |
48 | |
49 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyHostImpl); | |
50 }; | |
51 | |
52 } // namespace data_reduction_proxy | |
53 | |
54 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_DATA_REDUCTION_PROXY_ HOST_IMPL_H_ | |
OLD | NEW |