buffet: Remove 'chromeos' namespace and move everything to buffet NS
As discussed, moved all the classes out of chromeos namespace into
'buffet.
Also fixed a number of cpplint's warnings.
BUG=None
TEST=Everything still compiles and unit tests succeed.
Change-Id: Ide864acb2504627404966727f66d353af60e531d
Reviewed-on: https://chromium-review.googlesource.com/198971
Reviewed-by: Christopher Wiley <wiley@chromium.org>
Commit-Queue: Alex Vakulenko <avakulenko@chromium.org>
Tested-by: Alex Vakulenko <avakulenko@chromium.org>
diff --git a/buffet/http_request.cc b/buffet/http_request.cc
index 05860c5..df09ca4 100644
--- a/buffet/http_request.cc
+++ b/buffet/http_request.cc
@@ -12,7 +12,7 @@
#include "buffet/mime_utils.h"
#include "buffet/string_utils.h"
-namespace chromeos {
+namespace buffet {
namespace http {
// request_type
@@ -184,7 +184,7 @@
bool Request::SendRequestIfNeeded(ErrorPtr* error) {
if (transport_) {
if (!connection_) {
- chromeos::http::HeaderList headers = MapToVector(headers_);
+ http::HeaderList headers = MapToVector(headers_);
std::vector<std::string> ranges;
if (method_ != request_type::kHead) {
ranges.reserve(ranges_.size());
@@ -221,7 +221,7 @@
if (connection_)
return true;
} else {
- Error::AddTo(error, chromeos::http::curl::kErrorDomain,
+ Error::AddTo(error, http::curl::kErrorDomain,
"request_already_received", "HTTP response already received");
}
return false;
@@ -294,4 +294,4 @@
}
} // namespace http
-} // namespace chromeos
+} // namespace buffet