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

Unified Diff: sky/viewer/platform/net_constants.h

Issue 935633003: Don't depend on /net for error codes in sky viewer. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Address Adam comment. Created 5 years, 10 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 | « sky/viewer/BUILD.gn ('k') | sky/viewer/platform/platform_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/viewer/platform/net_constants.h
diff --git a/sky/viewer/platform/net_constants.h b/sky/viewer/platform/net_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..15a22704450d9ce1f4e30a0787c88c4a492df076
--- /dev/null
+++ b/sky/viewer/platform/net_constants.h
@@ -0,0 +1,16 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SKY_VIEWER_PLATFORM_NET_CONSTANTS_H_
+#define SKY_VIEWER_PLATFORM_NET_CONSTANTS_H_
+
+namespace sky {
+// This corresponds to ERR_ABORTED in net/base/net_error_list.h.
+// TODO(ppi): declare an enum in the network service mojom so that the clients
+// don't need to hard-code these values.
+const int32_t kNetErrorAborted = -3;
+
+const char kNetErrorDomain[] = "net";
+} // namespace sky
+#endif // SKY_VIEWER_PLATFORM_NET_CONSTANTS_H_
« no previous file with comments | « sky/viewer/BUILD.gn ('k') | sky/viewer/platform/platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698