Chromium Code Reviews| 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..1807e6db9fa04099d1bf70ee1d117ef8c69dc794 |
| --- /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 OOP |
|
jam
2017/07/08 01:30:08
nit: "OOP" unnecessary?
mmenke
2017/07/10 15:52:22
Done.
|
| +// NetworkService is disabled. |
| +CONTENT_EXPORT mojom::NetworkService* GetNetworkService(); |
|
mmenke
2017/07/07 20:51:53
Not sure if there's a better way to do this - basi
mmenke
2017/07/07 20:56:55
Sorry, that should be "chrome needs to be able to
|
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_PUBLIC_BROWSER_NETWORK_SERVICE_INSTANCE_H_ |