Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 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 CONTENT_PUBLIC_BROWSER_NETWORK_SERVICE_INSTANCE_H_ | |
| 6 #define CONTENT_PUBLIC_BROWSER_NETWORK_SERVICE_INSTANCE_H_ | |
| 7 | |
| 8 #include "content/common/content_export.h" | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 namespace mojom { | |
| 13 class NetworkService; | |
| 14 } | |
| 15 | |
| 16 // Returns a pointer to the NetworkService, creating / re-creating it as needed. | |
| 17 // 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.
| |
| 18 // NetworkService is disabled. | |
| 19 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
| |
| 20 | |
| 21 } // namespace content | |
| 22 | |
| 23 #endif // CONTENT_PUBLIC_BROWSER_NETWORK_SERVICE_INSTANCE_H_ | |
| OLD | NEW |