Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(700)

Unified Diff: content/browser/loader/network_service_interface.h

Issue 1953593002: Move DevToolsNetLogObserver to c/b/loader and create stub of network service interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/loader/network_service_interface.h
diff --git a/content/browser/loader/network_service_interface.h b/content/browser/loader/network_service_interface.h
new file mode 100644
index 0000000000000000000000000000000000000000..db1cd8f39392242306eca4cc4bf25474d2a86d6f
--- /dev/null
+++ b/content/browser/loader/network_service_interface.h
@@ -0,0 +1,30 @@
+// Copyright 2016 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_BROWSER_LOADER_NETWORK_SERVICE_INTERFACE_H_
+#define CONTENT_BROWSER_LOADER_NETWORK_SERVICE_INTERFACE_H_
+
+#include "base/macros.h"
+
+namespace content {
+
+// This is a placeholder for what will eventually become a Mojo-exposed
+// interface to the network service. See https://crbug.com/598073.
+class NetworkServiceInterface {
+ public:
+ NetworkServiceInterface();
+
+ static NetworkServiceInterface* GetInstance();
+
+ // APIs available from content-side.
+ void EnableNetLogObserver();
+ void DisableNetLogObserver();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(NetworkServiceInterface);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_LOADER_NETWORK_SERVICE_INTERFACE_H_

Powered by Google App Engine
This is Rietveld 408576698