summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/web_engine_error.cpp3
-rw-r--r--src/core/web_engine_error.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/src/core/web_engine_error.cpp b/src/core/web_engine_error.cpp
index f53346995..1cf39fdad 100644
--- a/src/core/web_engine_error.cpp
+++ b/src/core/web_engine_error.cpp
@@ -40,6 +40,9 @@
****************************************************************************/
#include "web_engine_error.h"
+#include "net/base/net_errors.h"
+
+const int WebEngineError::UserAbortedError = net::ERR_ABORTED;
namespace {
const int noError = 0;
diff --git a/src/core/web_engine_error.h b/src/core/web_engine_error.h
index 9fd7eb265..5dbc4cd99 100644
--- a/src/core/web_engine_error.h
+++ b/src/core/web_engine_error.h
@@ -58,6 +58,8 @@ public:
DnsErrorDomain
};
+ static const int UserAbortedError;
+
static ErrorDomain toQtErrorDomain(int error_code);
};