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

Side by Side Diff: chrome/browser/webdata/web_database.h

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ 5 #ifndef CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_
6 #define CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ 6 #define CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "sql/connection.h" 10 #include "sql/connection.h"
11 #include "sql/init_status.h" 11 #include "sql/init_status.h"
12 #include "sql/meta_table.h" 12 #include "sql/meta_table.h"
13 13
14 class AutofillTable;
14 class FilePath; 15 class FilePath;
15 class NotificationService;
16
17 class AutofillTable;
18 class KeywordTable; 16 class KeywordTable;
19 class LoginsTable; 17 class LoginsTable;
20 class TokenServiceTable; 18 class TokenServiceTable;
21 class WebAppsTable; 19 class WebAppsTable;
22 class WebIntentsTable; 20 class WebIntentsTable;
23 21
22 namespace content {
23 class NotificationService;
24 }
25
24 // This class manages a SQLite database that stores various web page meta data. 26 // This class manages a SQLite database that stores various web page meta data.
25 class WebDatabase { 27 class WebDatabase {
26 public: 28 public:
27 WebDatabase(); 29 WebDatabase();
28 virtual ~WebDatabase(); 30 virtual ~WebDatabase();
29 31
30 // Initialize the database given a name. The name defines where the SQLite 32 // Initialize the database given a name. The name defines where the SQLite
31 // file is. If this returns an error code, no other method should be called. 33 // file is. If this returns an error code, no other method should be called.
32 sql::InitStatus Init(const FilePath& db_name); 34 sql::InitStatus Init(const FilePath& db_name);
33 35
(...skipping 19 matching lines...) Expand all
53 sql::Connection db_; 55 sql::Connection db_;
54 sql::MetaTable meta_table_; 56 sql::MetaTable meta_table_;
55 57
56 scoped_ptr<AutofillTable> autofill_table_; 58 scoped_ptr<AutofillTable> autofill_table_;
57 scoped_ptr<KeywordTable> keyword_table_; 59 scoped_ptr<KeywordTable> keyword_table_;
58 scoped_ptr<LoginsTable> logins_table_; 60 scoped_ptr<LoginsTable> logins_table_;
59 scoped_ptr<TokenServiceTable> token_service_table_; 61 scoped_ptr<TokenServiceTable> token_service_table_;
60 scoped_ptr<WebAppsTable> web_apps_table_; 62 scoped_ptr<WebAppsTable> web_apps_table_;
61 scoped_ptr<WebIntentsTable> web_intents_table_; 63 scoped_ptr<WebIntentsTable> web_intents_table_;
62 64
63 scoped_ptr<NotificationService> notification_service_; 65 scoped_ptr<content::NotificationService> notification_service_;
64 66
65 DISALLOW_COPY_AND_ASSIGN(WebDatabase); 67 DISALLOW_COPY_AND_ASSIGN(WebDatabase);
66 }; 68 };
67 69
68 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ 70 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/webdata/web_data_service_unittest.cc ('k') | chrome/browser/webdata/web_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698