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

Unified Diff: native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc

Issue 2518593002: [NaCl SDK] Refactor STATUSCODE_* (Closed)
Patch Set: Created 4 years, 1 month 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
Index: native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc
diff --git a/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc b/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc
index 6952b0181dab5e0ea9697452e2b88cfcecf57c3b..dc0dccc1aa64f18a6818224b0352776a08bd9599 100644
--- a/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc
+++ b/native_client_sdk/src/libraries/nacl_io/httpfs/http_fs_node.cc
@@ -12,6 +12,7 @@
#include <ppapi/c/pp_errors.h>
#include "nacl_io/httpfs/http_fs.h"
+#include "nacl_io/http_status_codes.h"
#include "nacl_io/kernel_handle.h"
#include "nacl_io/osinttypes.h"
@@ -27,11 +28,6 @@ namespace {
// request, we need to read all of the data up to the start of our partial
// request into a dummy buffer. This is the maximum size of that buffer.
const int MAX_READ_BUFFER_SIZE = 64 * 1024;
-const int32_t STATUSCODE_OK = 200;
-const int32_t STATUSCODE_PARTIAL_CONTENT = 206;
-const int32_t STATUSCODE_FORBIDDEN = 403;
-const int32_t STATUSCODE_NOT_FOUND = 404;
-const int32_t STATUSCODE_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
StringMap_t ParseHeaders(const char* headers, int32_t headers_length) {
enum State {
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/http_status_codes.h ('k') | native_client_sdk/src/libraries/nacl_io/library.dsc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698