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

Unified Diff: native_client_sdk/src/libraries/nacl_io/statuscode.h

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
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/library.dsc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/libraries/nacl_io/statuscode.h
diff --git a/native_client_sdk/src/libraries/nacl_io/statuscode.h b/native_client_sdk/src/libraries/nacl_io/statuscode.h
new file mode 100644
index 0000000000000000000000000000000000000000..6007162369c653c344e50553bfd96a29e5246fee
--- /dev/null
+++ b/native_client_sdk/src/libraries/nacl_io/statuscode.h
@@ -0,0 +1,18 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
Sam Clegg 2016/11/18 17:32:30 New files don't need the (c) here
chanpatorikku 2016/11/21 13:52:27 Done. (c) in other new files were added in other
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef LIBRARIES_NACL_IO_STATUSCODE_H_
+#define LIBRARIES_NACL_IO_STATUSCODE_H_
+
+namespace nacl_io {
+
+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;
Sam Clegg 2016/11/18 17:32:30 Perhaps call this file http_status_codes.h?
chanpatorikku 2016/11/21 13:52:26 The file was renamed to http_status_codes.h.
+
+} // namespace nacl_io
+
+#endif // LIBRARIES_NACL_IO_STATUSCODE_H_
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/library.dsc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698