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

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: Add pak file generation. 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 71%
rename from headless/public/network.h
rename to headless/public/headless_network.h
index efede2becf0e9802163f440c32d3511ac978741c..8be616eb521641f4e23c2879bfc9cf4b153840c9 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>
CreateURLRequestContextGetterUsingSocketFactory(
@@ -28,9 +29,11 @@ class Network {
scoped_ptr<net::HttpTransactionFactory> http_transaction_factory);
private:
- Network() = delete;
+ HeadlessNetwork() = delete;
+
+ DISALLOW_COPY_AND_ASSIGN(HeadlessNetwork);
};
} // namespace headless
-#endif // HEADLESS_PUBLIC_NETWORK_H_
+#endif // HEADLESS_PUBLIC_HEADLESS_NETWORK_H_

Powered by Google App Engine
This is Rietveld 408576698