summaryrefslogtreecommitdiff
path: root/src/Sqlite3CookieParser.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-28 00:25:06 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-29 23:09:09 +0900
commit5a223115e09cd568169fe2efd71d09689a980335 (patch)
tree61250fc5f89229e4ecc63d70ae2069207388fea0 /src/Sqlite3CookieParser.h
parent0b1e05b13bfd7cfbf75b299c1f32cdd6e6aed953 (diff)
Rewrite CookieStorage
Diffstat (limited to 'src/Sqlite3CookieParser.h')
-rw-r--r--src/Sqlite3CookieParser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Sqlite3CookieParser.h b/src/Sqlite3CookieParser.h
index 24b590df..b83a2175 100644
--- a/src/Sqlite3CookieParser.h
+++ b/src/Sqlite3CookieParser.h
@@ -39,6 +39,7 @@
#include <string>
#include <vector>
+#include <memory>
#include <sqlite3.h>
@@ -55,7 +56,7 @@ public:
// Loads cookies from sqlite3 database and stores them in cookies.
// When loading is successful, cookies stored in cookies initially
// are removed. Otherwise, the content of cookies is unchanged.
- void parse(std::vector<Cookie>& cookies);
+ std::vector<std::unique_ptr<Cookie>> parse();
protected:
// Returns SQL select statement to get 1 record of cookie. The sql
// must return 6 columns in the following order: host, path,