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

Unified Diff: chrome/browser/net/sqlite_persistent_cookie_store.h

Issue 201099: Convert the sqlite cookie database and web database to use the new sqlite... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
Index: chrome/browser/net/sqlite_persistent_cookie_store.h
===================================================================
--- chrome/browser/net/sqlite_persistent_cookie_store.h (revision 26016)
+++ chrome/browser/net/sqlite_persistent_cookie_store.h (working copy)
@@ -1,27 +1,28 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 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.
// A sqlite implementation of a cookie monster persistent store.
-#ifndef CHROME_COMMON_NET_COOKIE_MONSTER_SQLITE_H__
-#define CHROME_COMMON_NET_COOKIE_MONSTER_SQLITE_H__
+#ifndef CHROME_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_
+#define CHROME_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_
#include <string>
#include <vector>
+#include "app/sql/connection.h"
+#include "app/sql/meta_table.h"
+#include "base/file_path.h"
#include "base/ref_counted.h"
-#include "chrome/browser/meta_table_helper.h"
#include "net/base/cookie_monster.h"
-struct sqlite3;
-
+class FilePath;
class MessageLoop;
class SQLitePersistentCookieStore
: public net::CookieMonster::PersistentCookieStore {
public:
- SQLitePersistentCookieStore(const std::wstring& path,
+ SQLitePersistentCookieStore(const FilePath& path,
MessageLoop* background_loop);
~SQLitePersistentCookieStore();
@@ -37,17 +38,17 @@
class Backend;
// Database upgrade statements.
- bool EnsureDatabaseVersion(sqlite3* db);
+ bool EnsureDatabaseVersion(sql::Connection* db);
- std::wstring path_;
+ FilePath path_;
scoped_refptr<Backend> backend_;
// Background MessageLoop on which to access the backend_;
MessageLoop* background_loop_;
- MetaTableHelper meta_table_;
+ sql::MetaTable meta_table_;
DISALLOW_COPY_AND_ASSIGN(SQLitePersistentCookieStore);
};
-#endif // CHROME_COMMON_NET_COOKIE_MONSTER_SQLITE_H__
+#endif // CHROME_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_
Property changes on: chrome/browser/net/sqlite_persistent_cookie_store.h
___________________________________________________________________
Added: svn:mergeinfo
Merged /branches/chrome_webkit_merge_branch/chrome/common/net/cookie_monster_sqlite.h:r69-2775
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/browser/net/sqlite_persistent_cookie_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698