Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_ |
| 6 #define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "components/content_settings/core/browser/host_content_settings_map.h" | |
|
mlamouri (slow - plz ping)
2015/06/22 22:10:57
I think you could forward declare instead of inclu
keenanb
2015/06/24 22:26:11
forward declaring causes "member access into incom
| |
| 9 #include "components/content_settings/core/common/content_settings_types.h" | 10 #include "components/content_settings/core/common/content_settings_types.h" |
| 10 | 11 |
| 11 class GURL; | 12 class GURL; |
| 12 | 13 |
| 13 // Provides a convenient way of logging UMA for permission related | 14 // Provides a convenient way of logging UMA for permission related |
| 14 // operations. | 15 // operations. |
| 15 class PermissionContextUmaUtil { | 16 class PermissionContextUmaUtil { |
| 16 public: | 17 public: |
| 18 static void PermissionRequested( | |
|
jww
2015/06/23 05:32:58
Is there a particular reason you reordered this?
keenanb
2015/06/24 22:26:11
a permission request is different from a user's pe
| |
| 19 ContentSettingsType permission, | |
| 20 HostContentSettingsMap* hostContentSettingsMap, | |
|
mlamouri (slow - plz ping)
2015/06/22 22:10:57
style: host_content_settings_map
keenanb
2015/06/24 22:26:11
Done.
| |
| 21 const GURL& requesting_origin, | |
| 22 const GURL& embedding_origin); | |
| 17 static void PermissionGranted(ContentSettingsType permission, | 23 static void PermissionGranted(ContentSettingsType permission, |
| 18 const GURL& requesting_origin); | 24 const GURL& requesting_origin); |
| 19 static void PermissionDenied(ContentSettingsType permission, | 25 static void PermissionDenied(ContentSettingsType permission, |
| 20 const GURL& requesting_origin); | 26 const GURL& requesting_origin); |
| 21 static void PermissionDismissed(ContentSettingsType permission, | 27 static void PermissionDismissed(ContentSettingsType permission, |
| 22 const GURL& requesting_origin); | 28 const GURL& requesting_origin); |
| 23 static void PermissionRequested(ContentSettingsType permission, | |
| 24 const GURL& requesting_origin); | |
| 25 static void PermissionIgnored(ContentSettingsType permission, | 29 static void PermissionIgnored(ContentSettingsType permission, |
| 26 const GURL& requesting_origin); | 30 const GURL& requesting_origin); |
| 27 | 31 |
| 28 private: | 32 private: |
| 29 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionContextUmaUtil); | 33 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionContextUmaUtil); |
| 30 }; | 34 }; |
| 31 | 35 |
| 32 #endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_ | 36 #endif // CHROME_BROWSER_CONTENT_SETTINGS_PERMISSION_CONTEXT_UMA_UTIL_H_ |
| OLD | NEW |