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

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

Issue 12871006: Second try at splitting WebDataService (minus ownership changes) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head for commit. Created 7 years, 9 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/scoped_vector.h" 9 #include "base/memory/scoped_vector.h"
10 #include "sql/connection.h" 10 #include "sql/connection.h"
(...skipping 12 matching lines...) Expand all
23 class FilePath; 23 class FilePath;
24 } 24 }
25 25
26 namespace content { 26 namespace content {
27 class NotificationService; 27 class NotificationService;
28 } 28 }
29 29
30 // This class manages a SQLite database that stores various web page meta data. 30 // This class manages a SQLite database that stores various web page meta data.
31 class WebDatabase { 31 class WebDatabase {
32 public: 32 public:
33 enum State {
34 COMMIT_NOT_NEEDED,
35 COMMIT_NEEDED
36 };
33 // Exposed publicly so the keyword table can access it. 37 // Exposed publicly so the keyword table can access it.
34 static const int kCurrentVersionNumber; 38 static const int kCurrentVersionNumber;
35 39
36 WebDatabase(); 40 WebDatabase();
37 virtual ~WebDatabase(); 41 virtual ~WebDatabase();
38 42
39 // Initialize the database given a name. The name defines where the SQLite 43 // Initialize the database given a name. The name defines where the SQLite
40 // file is. If this returns an error code, no other method should be called. 44 // file is. If this returns an error code, no other method should be called.
41 // Requires the |app_locale| to be passed as a parameter as the locale can 45 // Requires the |app_locale| to be passed as a parameter as the locale can
42 // only safely be queried on the UI thread. 46 // only safely be queried on the UI thread.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Owns all the different database tables that have been added to 83 // Owns all the different database tables that have been added to
80 // this object. 84 // this object.
81 ScopedVector<WebDatabaseTable> tables_; 85 ScopedVector<WebDatabaseTable> tables_;
82 86
83 scoped_ptr<content::NotificationService> notification_service_; 87 scoped_ptr<content::NotificationService> notification_service_;
84 88
85 DISALLOW_COPY_AND_ASSIGN(WebDatabase); 89 DISALLOW_COPY_AND_ASSIGN(WebDatabase);
86 }; 90 };
87 91
88 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_ 92 #endif // CHROME_BROWSER_WEBDATA_WEB_DATABASE_H_
OLDNEW
« no previous file with comments | « chrome/browser/webdata/web_data_service_win.cc ('k') | chrome/browser/webdata/web_database_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698