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

Unified Diff: chrome/browser/managed_mode/managed_mode.h

Issue 12033021: Add UMA metrics and histograms for locally managed users. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/history/url_database.cc ('k') | chrome/browser/managed_mode/managed_mode.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/managed_mode/managed_mode.h
===================================================================
--- chrome/browser/managed_mode/managed_mode.h (revision 177135)
+++ chrome/browser/managed_mode/managed_mode.h (working copy)
@@ -13,6 +13,7 @@
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
+#include "base/time.h"
#include "chrome/browser/extensions/management_policy.h"
#include "chrome/browser/ui/browser_list_observer.h"
#include "content/public/browser/notification_observer.h"
@@ -28,7 +29,7 @@
class PrefServiceSyncable;
class Profile;
-namespace policy{
+namespace policy {
class URLBlacklist;
}
@@ -94,6 +95,9 @@
// Returns the profile blacklist.
static scoped_ptr<base::ListValue> GetBlacklist();
+ // Returns the URL's category (ID number).
+ static int GetCategory(const GURL& url);
+
// ExtensionManagementPolicy::Provider implementation:
virtual std::string GetDebugPolicyProviderName() const OVERRIDE;
virtual bool UserMayLoad(const extensions::Extension* extension,
@@ -131,6 +135,12 @@
virtual void InitImpl(Profile* profile);
+ // Collect statistics about URLs and categories in the history database.
+ // The |description| will be used in the name of the UMA histogram.
+ void CollectDetailedHistoryMetrics(Profile* profile,
+ base::Time start_time,
+ std::string description);
+
// Internal implementation for ExtensionManagementPolicy::Delegate methods.
// If |error| is not NULL, it will be filled with an error message if the
// requested extension action (install, modify status, etc.) is not permitted.
@@ -141,6 +151,8 @@
const ManagedModeURLFilter* GetURLFilterForIOThreadImpl();
const ManagedModeURLFilter* GetURLFilterForUIThreadImpl();
+ int GetCategoryImpl(const GURL& url);
+
void FinalizeEnter(bool result);
// Platform-specific methods that confirm whether we can enter or leave
« no previous file with comments | « chrome/browser/history/url_database.cc ('k') | chrome/browser/managed_mode/managed_mode.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698