OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 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 "mojo/public/cpp/bindings/strong_binding.h" | |
11 | |
12 namespace net { | |
13 class HostPortPair; | |
14 } | |
15 | |
16 namespace data_reduction_proxy { | |
17 | |
18 class DataReductionProxyConfig; | |
19 class DataReductionProxySettings; | |
20 | |
21 class DataReductionProxyHostImpl : public mojom::DataReductionProxyHost { | |
22 public: | |
23 static void Create(DataReductionProxySettings* settings, | |
24 mojom::DataReductionProxyHostRequest request); | |
25 | |
26 // |settings| may be null. | |
27 DataReductionProxyHostImpl(DataReductionProxySettings* settings, | |
28 mojom::DataReductionProxyHostRequest request); | |
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 // Must outlive |this|. May be null. | |
Anand Mistry (off Chromium)
2016/06/16 09:04:04
How can you guarantee this? The legacy IPC achieve
leonhsl(Using Gerrit)
2016/06/17 08:43:57
Yeah it is, the lifecycle is the difference with b
Sam McNally
2016/06/20 04:57:26
The lifetime in the renderer doesn't directly corr
leonhsl(Using Gerrit)
2016/06/20 10:51:51
Option1, I think the renderer thread will block on
| |
38 DataReductionProxyConfig* config_; | |
39 | |
40 mojo::StrongBinding<mojom::DataReductionProxyHost> binding_; | |
41 | |
42 DISALLOW_COPY_AND_ASSIGN(DataReductionProxyHostImpl); | |
43 }; | |
44 | |
45 } // namespace data_reduction_proxy | |
46 | |
47 #endif // COMPONENTS_DATA_REDUCTION_PROXY_CONTENT_BROWSER_DATA_REDUCTION_PROXY_ HOST_IMPL_H_ | |
OLD | NEW |