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

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

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 const std::string& page_url, 80 const std::string& page_url,
81 const std::string& arg_url, 81 const std::string& arg_url,
82 const int days_ago, 82 const int days_ago,
83 const base::Callback 83 const base::Callback
84 <void(scoped_ptr<std::vector<scoped_refptr<Action> > >)>& callback); 84 <void(scoped_ptr<std::vector<scoped_refptr<Action> > >)>& callback);
85 85
86 // ExtensionRegistryObserver. 86 // ExtensionRegistryObserver.
87 // We keep track of whether the whitelisted extension is installed; if it is, 87 // We keep track of whether the whitelisted extension is installed; if it is,
88 // we want to recompute whether to have logging enabled. 88 // we want to recompute whether to have logging enabled.
89 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, 89 virtual void OnExtensionLoaded(content::BrowserContext* browser_context,
90 const Extension* extension) OVERRIDE; 90 const Extension* extension) override;
91 virtual void OnExtensionUnloaded( 91 virtual void OnExtensionUnloaded(
92 content::BrowserContext* browser_context, 92 content::BrowserContext* browser_context,
93 const Extension* extension, 93 const Extension* extension,
94 UnloadedExtensionInfo::Reason reason) OVERRIDE; 94 UnloadedExtensionInfo::Reason reason) override;
95 virtual void OnExtensionUninstalled( 95 virtual void OnExtensionUninstalled(
96 content::BrowserContext* browser_context, 96 content::BrowserContext* browser_context,
97 const Extension* extension, 97 const Extension* extension,
98 extensions::UninstallReason reason) OVERRIDE; 98 extensions::UninstallReason reason) override;
99 99
100 // ApiActivityMonitor. 100 // ApiActivityMonitor.
101 virtual void OnApiEventDispatched( 101 virtual void OnApiEventDispatched(
102 const std::string& extension_id, 102 const std::string& extension_id,
103 const std::string& event_name, 103 const std::string& event_name,
104 scoped_ptr<base::ListValue> event_args) OVERRIDE; 104 scoped_ptr<base::ListValue> event_args) override;
105 virtual void OnApiFunctionCalled( 105 virtual void OnApiFunctionCalled(
106 const std::string& extension_id, 106 const std::string& extension_id,
107 const std::string& api_name, 107 const std::string& api_name,
108 scoped_ptr<base::ListValue> event_args) OVERRIDE; 108 scoped_ptr<base::ListValue> event_args) override;
109 109
110 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); 110 static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
111 111
112 // Remove actions from the activity log database which IDs specified in the 112 // Remove actions from the activity log database which IDs specified in the
113 // action_ids array. 113 // action_ids array.
114 void RemoveActions(const std::vector<int64>& action_ids); 114 void RemoveActions(const std::vector<int64>& action_ids);
115 115
116 // Clean up URLs from the activity log database. 116 // Clean up URLs from the activity log database.
117 // If restrict_urls is empty then all URLs in the activity log database are 117 // If restrict_urls is empty then all URLs in the activity log database are
118 // removed, otherwise only those in restrict_urls are removed. 118 // removed, otherwise only those in restrict_urls are removed.
(...skipping 26 matching lines...) Expand all
145 145
146 // Delayed initialization of ExtensionRegistry which waits until after the 146 // Delayed initialization of ExtensionRegistry which waits until after the
147 // ExtensionSystem/ExtensionService are done with their own setup. 147 // ExtensionSystem/ExtensionService are done with their own setup.
148 void StartObserving(); 148 void StartObserving();
149 149
150 // ScriptExecutionObserver implementation. 150 // ScriptExecutionObserver implementation.
151 // Fires when a ContentScript is executed. 151 // Fires when a ContentScript is executed.
152 virtual void OnScriptsExecuted( 152 virtual void OnScriptsExecuted(
153 const content::WebContents* web_contents, 153 const content::WebContents* web_contents,
154 const ExecutingScriptsMap& extension_ids, 154 const ExecutingScriptsMap& extension_ids,
155 const GURL& on_url) OVERRIDE; 155 const GURL& on_url) override;
156 156
157 // At the moment, ActivityLog will use only one policy for summarization. 157 // At the moment, ActivityLog will use only one policy for summarization.
158 // These methods are used to choose and set the most appropriate policy. 158 // These methods are used to choose and set the most appropriate policy.
159 // Changing policies at runtime is not recommended, and likely only should be 159 // Changing policies at runtime is not recommended, and likely only should be
160 // done for unit tests. 160 // done for unit tests.
161 void ChooseDatabasePolicy(); 161 void ChooseDatabasePolicy();
162 void SetDatabasePolicy(ActivityLogPolicy::PolicyType policy_type); 162 void SetDatabasePolicy(ActivityLogPolicy::PolicyType policy_type);
163 163
164 // BrowserContextKeyedAPI implementation. 164 // BrowserContextKeyedAPI implementation.
165 static const char* service_name() { return "ActivityLog"; } 165 static const char* service_name() { return "ActivityLog"; }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 FRIEND_TEST_ALL_PREFIXES(ActivityLogEnabledTest, WatchdogSwitch); 217 FRIEND_TEST_ALL_PREFIXES(ActivityLogEnabledTest, WatchdogSwitch);
218 DISALLOW_COPY_AND_ASSIGN(ActivityLog); 218 DISALLOW_COPY_AND_ASSIGN(ActivityLog);
219 }; 219 };
220 220
221 template <> 221 template <>
222 void BrowserContextKeyedAPIFactory<ActivityLog>::DeclareFactoryDependencies(); 222 void BrowserContextKeyedAPIFactory<ActivityLog>::DeclareFactoryDependencies();
223 223
224 } // namespace extensions 224 } // namespace extensions
225 225
226 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_ 226 #endif // CHROME_BROWSER_EXTENSIONS_ACTIVITY_LOG_ACTIVITY_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698