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. |
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
|
+ 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_ |