| 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
|
|
|