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

Unified Diff: net/http/http_network_layer.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « net/http/http_log_util_unittest.cc ('k') | net/http/http_network_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_network_layer.h
diff --git a/net/http/http_network_layer.h b/net/http/http_network_layer.h
deleted file mode 100644
index 13b0c79b8c2c96481d58096d35e1dc82e0212c13..0000000000000000000000000000000000000000
--- a/net/http/http_network_layer.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) 2012 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 NET_HTTP_HTTP_NETWORK_LAYER_H_
-#define NET_HTTP_HTTP_NETWORK_LAYER_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "base/power_monitor/power_observer.h"
-#include "base/threading/non_thread_safe.h"
-#include "net/base/net_export.h"
-#include "net/http/http_transaction_factory.h"
-
-namespace net {
-
-class HttpNetworkSession;
-
-class NET_EXPORT HttpNetworkLayer
- : public HttpTransactionFactory,
- public base::PowerObserver,
- NON_EXPORTED_BASE(public base::NonThreadSafe) {
- public:
- // Construct a HttpNetworkLayer with an existing HttpNetworkSession which
- // contains a valid ProxyService.
- explicit HttpNetworkLayer(HttpNetworkSession* session);
- ~HttpNetworkLayer() override;
-
- // Create a transaction factory that instantiate a network layer over an
- // existing network session. Network session contains some valuable
- // information (e.g. authentication data) that we want to share across
- // multiple network layers. This method exposes the implementation details
- // of a network layer, use this method with an existing network layer only
- // when network session is shared.
- static HttpTransactionFactory* CreateFactory(HttpNetworkSession* session);
-
- // Forces an alternate protocol of SPDY/3 on port 443.
- // TODO(rch): eliminate this method.
- static void ForceAlternateProtocol();
-
- // HttpTransactionFactory methods:
- int CreateTransaction(RequestPriority priority,
- scoped_ptr<HttpTransaction>* trans) override;
- HttpCache* GetCache() override;
- HttpNetworkSession* GetSession() override;
-
- // base::PowerObserver methods:
- void OnSuspend() override;
- void OnResume() override;
-
- private:
- const scoped_refptr<HttpNetworkSession> session_;
- bool suspended_;
-
- DISALLOW_COPY_AND_ASSIGN(HttpNetworkLayer);
-};
-
-} // namespace net
-
-#endif // NET_HTTP_HTTP_NETWORK_LAYER_H_
« no previous file with comments | « net/http/http_log_util_unittest.cc ('k') | net/http/http_network_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698