Index: content/public/browser/network_service_instance.h |
diff --git a/content/public/browser/network_service_instance.h b/content/public/browser/network_service_instance.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0de5b4db98359f99616d50cf70c86d28d02dc1df |
--- /dev/null |
+++ b/content/public/browser/network_service_instance.h |
@@ -0,0 +1,23 @@ |
+// Copyright 2017 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 CONTENT_PUBLIC_BROWSER_NETWORK_SERVICE_INSTANCE_H_ |
+#define CONTENT_PUBLIC_BROWSER_NETWORK_SERVICE_INSTANCE_H_ |
+ |
+#include "content/common/content_export.h" |
+ |
+namespace content { |
+ |
+namespace mojom { |
+class NetworkService; |
+} |
+ |
+// Returns a pointer to the NetworkService, creating / re-creating it as needed. |
+// Must only be called on the UI thread. Must not be called if the network |
+// service is disabled. |
+CONTENT_EXPORT mojom::NetworkService* GetNetworkService(); |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_BROWSER_NETWORK_SERVICE_INSTANCE_H_ |