summaryrefslogtreecommitdiffstats
path: root/src/core/web_engine_library_info.h
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@digia.com>2014-06-17 16:15:35 +0200
committerPierre Rossi <pierre.rossi@gmail.com>2014-08-04 17:22:42 +0200
commit7d90b44187cfa8f93df6a6341da41cf8192d18ad (patch)
tree47384a6837549df6c80759ae270bbd8651477bde /src/core/web_engine_library_info.h
parent35d66ce48248f07759cbe2a17437198e8e1948ed (diff)
Expose better error information in loadRequest.
Use the chromium localized error strings for that purpose, otherwise the error description is always empty. While we're at it, let's tap into the chromium error pages, which should hopefully make sense for most errors, and add some static asserts to check that the qt quick enum and the core one are in sync. Change-Id: Icf8fa7c3bf4a674c60a10950422135fb6930447a Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src/core/web_engine_library_info.h')
-rw-r--r--src/core/web_engine_library_info.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/web_engine_library_info.h b/src/core/web_engine_library_info.h
index 84fee12af..4ce760dc4 100644
--- a/src/core/web_engine_library_info.h
+++ b/src/core/web_engine_library_info.h
@@ -43,6 +43,7 @@
#define WEB_ENGINE_LIBRARY_INFO_H
#include "base/files/file_path.h"
+#include "base/strings/string16.h"
enum {
QT_RESOURCES_PAK = 5000
};
@@ -50,6 +51,8 @@ enum {
class WebEngineLibraryInfo {
public:
static base::FilePath getPath(int key);
+ // Called by localized_error in our custom chrome layer
+ static base::string16 getApplicationName();
};