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_PERMISSIONS_PERMISSION_UMA_UTIL_H_ | 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_UMA_UTIL_H_ |
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_UMA_UTIL_H_ | 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_UMA_UTIL_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "chrome/browser/permissions/permission_request.h" | 13 #include "chrome/browser/permissions/permission_request.h" |
| 14 #include "chrome/browser/permissions/permission_result.h" |
14 #include "chrome/browser/permissions/permission_util.h" | 15 #include "chrome/browser/permissions/permission_util.h" |
| 16 #include "content/public/browser/permission_type.h" |
15 | 17 |
16 enum class PermissionRequestGestureType; | 18 enum class PermissionRequestGestureType; |
17 class GURL; | 19 class GURL; |
18 class PermissionRequest; | 20 class PermissionRequest; |
19 class Profile; | 21 class Profile; |
20 | 22 |
21 // This should stay in sync with the SourceUI enum in the permission report | 23 // This should stay in sync with the SourceUI enum in the permission report |
22 // protobuf (src/chrome/common/safe_browsing/permission_report.proto). | 24 // protobuf (src/chrome/common/safe_browsing/permission_report.proto). |
23 enum class PermissionSourceUI { | 25 enum class PermissionSourceUI { |
24 PROMPT = 0, | 26 PROMPT = 0, |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // for a single origin using |prefix| for the metric. | 211 // for a single origin using |prefix| for the metric. |
210 static void RecordPermissionPromptPriorCount( | 212 static void RecordPermissionPromptPriorCount( |
211 ContentSettingsType permission, | 213 ContentSettingsType permission, |
212 const std::string& prefix, | 214 const std::string& prefix, |
213 int count); | 215 int count); |
214 | 216 |
215 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionUmaUtil); | 217 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionUmaUtil); |
216 }; | 218 }; |
217 | 219 |
218 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UMA_UTIL_H_ | 220 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UMA_UTIL_H_ |
OLD | NEW |