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

Unified Diff: headless/public/headless_network.h

Issue 1674263002: headless: Initial headless embedder API implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added navigation test. Created 4 years, 10 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: headless/public/headless_network.h
diff --git a/headless/public/network.h b/headless/public/headless_network.h
similarity index 74%
rename from headless/public/network.h
rename to headless/public/headless_network.h
index efede2becf0e9802163f440c32d3511ac978741c..0d65ce45aa304286d3c8711e08b144046d3d88b0 100644
--- a/headless/public/network.h
+++ b/headless/public/headless_network.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef HEADLESS_PUBLIC_NETWORK_H_
-#define HEADLESS_PUBLIC_NETWORK_H_
+#ifndef HEADLESS_PUBLIC_HEADLESS_NETWORK_H_
+#define HEADLESS_PUBLIC_HEADLESS_NETWORK_H_
#include <base/macros.h>
#include <base/memory/ref_counted.h>
@@ -17,7 +17,8 @@ class HttpTransactionFactory;
namespace headless {
-class Network {
+// Provides helpers for integrating with various types of networking stacks.
+class HeadlessNetwork {
public:
static scoped_refptr<net::URLRequestContextGetter>
pfeldman 2016/02/09 19:49:51 I wonder if there is room for the platform API tha
Sami 2016/02/09 21:40:51 I think the client can be isolated from content/ a
CreateURLRequestContextGetterUsingSocketFactory(
@@ -28,9 +29,9 @@ class Network {
scoped_ptr<net::HttpTransactionFactory> http_transaction_factory);
private:
- Network() = delete;
+ HeadlessNetwork() = delete;
};
} // namespace headless
-#endif // HEADLESS_PUBLIC_NETWORK_H_
+#endif // HEADLESS_PUBLIC_HEADLESS_NETWORK_H_

Powered by Google App Engine
This is Rietveld 408576698