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

Unified Diff: net/http/http_basic_state.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_auth_unittest.cc ('k') | net/http/http_basic_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_basic_state.h
diff --git a/net/http/http_basic_state.h b/net/http/http_basic_state.h
deleted file mode 100644
index 259c5022252181288030e3585b8a0d601250ab1b..0000000000000000000000000000000000000000
--- a/net/http/http_basic_state.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright 2013 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.
-//
-// A class that stores the common state between HttpBasicStream and
-// WebSocketBasicHandshakeStream.
-
-#ifndef NET_HTTP_HTTP_BASIC_STATE_H_
-#define NET_HTTP_HTTP_BASIC_STATE_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "net/base/completion_callback.h"
-#include "net/base/net_export.h"
-#include "net/base/request_priority.h"
-
-namespace net {
-
-class BoundNetLog;
-class ClientSocketHandle;
-class GrowableIOBuffer;
-class HttpStreamParser;
-struct HttpRequestInfo;
-
-class NET_EXPORT_PRIVATE HttpBasicState {
- public:
- HttpBasicState(ClientSocketHandle* connection, bool using_proxy);
- ~HttpBasicState();
-
- // Initialize() must be called before using any of the other methods.
- int Initialize(const HttpRequestInfo* request_info,
- RequestPriority priority,
- const BoundNetLog& net_log,
- const CompletionCallback& callback);
-
- HttpStreamParser* parser() const { return parser_.get(); }
-
- bool using_proxy() const { return using_proxy_; }
-
- // Deletes |parser_| and sets it to NULL.
- void DeleteParser();
-
- ClientSocketHandle* connection() const { return connection_.get(); }
-
- scoped_ptr<ClientSocketHandle> ReleaseConnection();
-
- scoped_refptr<GrowableIOBuffer> read_buf() const;
-
- // Generates a string of the form "METHOD PATH HTTP/1.1\r\n", based on the
- // values of request_info_ and using_proxy_.
- std::string GenerateRequestLine() const;
-
- private:
- scoped_refptr<GrowableIOBuffer> read_buf_;
-
- scoped_ptr<HttpStreamParser> parser_;
-
- scoped_ptr<ClientSocketHandle> connection_;
-
- const bool using_proxy_;
-
- const HttpRequestInfo* request_info_;
-
- DISALLOW_COPY_AND_ASSIGN(HttpBasicState);
-};
-
-} // namespace net
-
-#endif // NET_HTTP_HTTP_BASIC_STATE_H_
« no previous file with comments | « net/http/http_auth_unittest.cc ('k') | net/http/http_basic_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698