Chromium Code Reviews| Index: chrome/browser/extensions/activity_log/activity_log.h |
| diff --git a/chrome/browser/extensions/activity_log/activity_log.h b/chrome/browser/extensions/activity_log/activity_log.h |
| index 19813c28e3a23867231dc4aa9b41985d0914b880..3ec01df384acce60ec4da919b615d15d099b0266 100644 |
| --- a/chrome/browser/extensions/activity_log/activity_log.h |
| +++ b/chrome/browser/extensions/activity_log/activity_log.h |
| @@ -17,7 +17,6 @@ |
| #include "chrome/browser/extensions/activity_log/activity_actions.h" |
| #include "chrome/browser/extensions/activity_log/activity_database.h" |
| #include "chrome/browser/extensions/activity_log/activity_log_policy.h" |
| -#include "chrome/browser/extensions/activity_log/api_actions.h" |
| #include "chrome/browser/extensions/install_observer.h" |
| #include "chrome/browser/extensions/install_tracker.h" |
| #include "chrome/browser/extensions/tab_helper.h" |
| @@ -66,6 +65,18 @@ class ActivityLog : public BrowserContextKeyedService, |
| void AddObserver(Observer* observer); |
| void RemoveObserver(Observer* observer); |
| + // Logs an extension action: passes it to any installed policy to be logged |
| + // to the database, to any observers, and logs to the console if in testing |
| + // mode. |
| + // |
| + // The convenience Log*Action methods below can be used as well if the caller |
| + // does not which to construct the Action object itself, however those |
|
felt
2013/07/23 17:07:17
*does not wish
mvrable
2013/07/23 18:16:56
Done.
|
| + // methods are somewhat deprecated. |
| + void LogAction(scoped_refptr<Action> action); |
|
felt
2013/07/23 17:07:17
I'm not entirely sure how I feel about forcing the
mvrable
2013/07/23 18:16:56
I haven't noticed cases where the caller wouldn't
felt
2013/07/23 19:06:33
Well, I'm worried about a few things, another one
mvrable
2013/07/23 19:17:55
The current plan is to keep URL scanning through t
felt
2013/07/23 19:22:33
Ah, OK. I am happy with this plan, where the objec
felt
2013/07/23 19:22:33
We want to send along incognito URLs to the API an
mvrable
2013/07/23 21:54:03
I think this answers my question. I think we don'
|
| + |
| + // TODO(mvrable): The calls below take args as a raw pointer Document the |
| + // ownership transfer: either make it const or a scoped_ptr. |
|
felt
2013/07/23 17:07:17
I'm confused, maybe there is a word missing in thi
mvrable
2013/07/23 18:16:56
Reworded. I understand the code a bit better sinc
|
| + |
| // Log a successful API call made by an extension. |
| // This will create an APIAction for storage in the database. |
| // (Note: implemented as a wrapper for LogAPIActionInternal.) |