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

Unified Diff: webrtc/rtc_base/httpbase.h

Issue 2877023002: Move webrtc/{base => rtc_base} (Closed)
Patch Set: update presubmit.py and DEPS include rules Created 3 years, 6 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 | « webrtc/rtc_base/helpers_unittest.cc ('k') | webrtc/rtc_base/httpbase.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/rtc_base/httpbase.h
diff --git a/webrtc/base/httpbase.h b/webrtc/rtc_base/httpbase.h
similarity index 98%
copy from webrtc/base/httpbase.h
copy to webrtc/rtc_base/httpbase.h
index 4b834a4e5bcc6de6ec71d2d1b83223004f2ddbc7..d5730ba92734046a212897559b9f7568b96fa993 100644
--- a/webrtc/base/httpbase.h
+++ b/webrtc/rtc_base/httpbase.h
@@ -9,8 +9,8 @@
*/
-#ifndef WEBRTC_BASE_HTTPBASE_H__
-#define WEBRTC_BASE_HTTPBASE_H__
+#ifndef WEBRTC_RTC_BASE_HTTPBASE_H_
+#define WEBRTC_RTC_BASE_HTTPBASE_H_
#include "webrtc/base/httpcommon.h"
@@ -30,13 +30,13 @@ public:
enum ProcessResult { PR_CONTINUE, PR_BLOCK, PR_COMPLETE };
HttpParser();
virtual ~HttpParser();
-
+
void reset();
ProcessResult Process(const char* buffer, size_t len, size_t* processed,
HttpError* error);
bool is_valid_end_of_input() const;
void complete(HttpError err);
-
+
size_t GetDataRemaining() const { return data_size_; }
protected:
@@ -53,7 +53,7 @@ protected:
virtual ProcessResult ProcessData(const char* data, size_t len, size_t& read,
HttpError* error) = 0;
virtual void OnComplete(HttpError err) = 0;
-
+
private:
enum State {
ST_LEADER, ST_HEADERS,
@@ -184,4 +184,4 @@ private:
} // namespace rtc
-#endif // WEBRTC_BASE_HTTPBASE_H__
+#endif // WEBRTC_RTC_BASE_HTTPBASE_H_
« no previous file with comments | « webrtc/rtc_base/helpers_unittest.cc ('k') | webrtc/rtc_base/httpbase.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698