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

Side by Side Diff: chrome/browser/extensions/activity_log/activity_log.h

Issue 18878009: Add functions to clean URLs from the activity log (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix some comments Created 7 years, 5 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_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_
6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ 6 #define CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 int percent_downloaded) OVERRIDE {} 138 int percent_downloaded) OVERRIDE {}
139 virtual void OnInstallFailure(const std::string& extension_id) OVERRIDE {} 139 virtual void OnInstallFailure(const std::string& extension_id) OVERRIDE {}
140 virtual void OnAppsReordered() OVERRIDE {} 140 virtual void OnAppsReordered() OVERRIDE {}
141 virtual void OnAppInstalledToAppList( 141 virtual void OnAppInstalledToAppList(
142 const std::string& extension_id) OVERRIDE {} 142 const std::string& extension_id) OVERRIDE {}
143 virtual void OnShutdown() OVERRIDE {} 143 virtual void OnShutdown() OVERRIDE {}
144 144
145 // BrowserContextKeyedService 145 // BrowserContextKeyedService
146 virtual void Shutdown() OVERRIDE; 146 virtual void Shutdown() OVERRIDE;
147 147
148 // Clean up URLs from the activity log database.
149 // If gurls is empty then all URLs in the activity log database are removed.
150 virtual void RemoveURLs(const std::vector<GURL>& gurls);
151 virtual void RemoveURLs(const std::set<GURL>& gurls);
152 virtual void RemoveURL(const GURL& gurl);
153
148 private: 154 private:
149 friend class ActivityLogFactory; 155 friend class ActivityLogFactory;
150 friend class ActivityLogTest; 156 friend class ActivityLogTest;
151 friend class RenderViewActivityLogTest; 157 friend class RenderViewActivityLogTest;
152 158
153 explicit ActivityLog(Profile* profile); 159 explicit ActivityLog(Profile* profile);
154 virtual ~ActivityLog(); 160 virtual ~ActivityLog();
155 161
156 // Some setup needs to wait until after the ExtensionSystem/ExtensionService 162 // Some setup needs to wait until after the ExtensionSystem/ExtensionService
157 // are done with their own setup. 163 // are done with their own setup.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 virtual content::BrowserContext* GetBrowserContextToUse( 246 virtual content::BrowserContext* GetBrowserContextToUse(
241 content::BrowserContext* context) const OVERRIDE; 247 content::BrowserContext* context) const OVERRIDE;
242 248
243 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory); 249 DISALLOW_COPY_AND_ASSIGN(ActivityLogFactory);
244 }; 250 };
245 251
246 252
247 } // namespace extensions 253 } // namespace extensions
248 254
249 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ 255 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698