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_ |