Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/engine/Updater.h

Issue 10800092: Use libadblockplus update checker (Closed)
Patch Set: Addressed review comments Created June 7, 2013, 5:27 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/engine/Updater.h
===================================================================
new file mode 100644
--- /dev/null
+++ b/src/engine/Updater.h
@@ -0,0 +1,23 @@
+#ifndef UPDATER_H
+#define UPDATER_H
+
+#include <string>
+#include <Windows.h>
+#include <AdblockPlus/JsEngine.h>
+
+class Updater
+{
+public:
+ Updater(AdblockPlus::JsEnginePtr jsEngine, const std::string& url);
+ void Update();
+private:
+ AdblockPlus::JsEnginePtr jsEngine;
+ std::string url;
+ std::wstring tempFile;
+ HWND dialog;
+
+ void StartDownload(HWND dialog);
+ void RunDownload();
+};
+
+#endif // UPDATER_H
« no previous file with comments | « src/engine/Resource.h ('k') | src/engine/Updater.cpp » ('j') | src/engine/Updater.cpp » ('J')

Powered by Google App Engine
This is Rietveld