Chromium Code Reviews

Side by Side Diff: chrome/browser/browsing_data_database_helper.h

Issue 2370001: Store blocked cookies in the tab contents. (Closed)
Patch Set: updates Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_BROWSING_DATA_DATABASE_HELPER_H_ 5 #ifndef CHROME_BROWSER_BROWSING_DATA_DATABASE_HELPER_H_
6 #define CHROME_BROWSER_BROWSING_DATA_DATABASE_HELPER_H_ 6 #define CHROME_BROWSER_BROWSING_DATA_DATABASE_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 103 matching lines...)
114 class CannedBrowsingDataDatabaseHelper : public BrowsingDataDatabaseHelper { 114 class CannedBrowsingDataDatabaseHelper : public BrowsingDataDatabaseHelper {
115 public: 115 public:
116 explicit CannedBrowsingDataDatabaseHelper(Profile* profile); 116 explicit CannedBrowsingDataDatabaseHelper(Profile* profile);
117 117
118 // Add a database to the set of canned databases that is returned by this 118 // Add a database to the set of canned databases that is returned by this
119 // helper. 119 // helper.
120 void AddDatabase(const GURL& origin, 120 void AddDatabase(const GURL& origin,
121 const std::string& name, 121 const std::string& name,
122 const std::string& description); 122 const std::string& description);
123 123
124 // Clear the list of canned databases.
125 void Reset();
126
124 // BrowsingDataDatabaseHelper methods. 127 // BrowsingDataDatabaseHelper methods.
125 virtual void StartFetching( 128 virtual void StartFetching(
126 Callback1<const std::vector<DatabaseInfo>& >::Type* callback); 129 Callback1<const std::vector<DatabaseInfo>& >::Type* callback);
127 virtual void CancelNotification() {} 130 virtual void CancelNotification() {}
128 131
129 private: 132 private:
130 virtual ~CannedBrowsingDataDatabaseHelper() {} 133 virtual ~CannedBrowsingDataDatabaseHelper() {}
131 134
132 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataDatabaseHelper); 135 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataDatabaseHelper);
133 }; 136 };
134 137
135 #endif // CHROME_BROWSER_BROWSING_DATA_DATABASE_HELPER_H_ 138 #endif // CHROME_BROWSER_BROWSING_DATA_DATABASE_HELPER_H_
OLDNEW

Powered by Google App Engine