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

Side by Side Diff: chrome/browser/permissions/permission_uma_util.h

Issue 1689513002: [Abandoned] rename PermissionBubbleRequest to PermissionRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@permission-request-manager-rename
Patch Set: browser_tests compiles Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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 12
13 class GURL; 13 class GURL;
14 class Profile; 14 class Profile;
15 15
16 namespace content { 16 namespace content {
17 enum class PermissionType; 17 enum class PermissionType;
18 } // namespace content 18 } // namespace content
19 19
20 class PermissionBubbleRequest; 20 class PermissionRequest;
21 21
22 // Enum for UMA purposes, make sure you update histograms.xml if you add new 22 // Enum for UMA purposes, make sure you update histograms.xml if you add new
23 // permission actions. Never delete or reorder an entry; only add new entries 23 // permission actions. Never delete or reorder an entry; only add new entries
24 // immediately before PERMISSION_NUM 24 // immediately before PERMISSION_NUM
25 enum PermissionAction { 25 enum PermissionAction {
26 GRANTED = 0, 26 GRANTED = 0,
27 DENIED = 1, 27 DENIED = 1,
28 DISMISSED = 2, 28 DISMISSED = 2,
29 IGNORED = 3, 29 IGNORED = 3,
30 REVOKED = 4, 30 REVOKED = 4,
(...skipping 25 matching lines...) Expand all
56 // UMA specifically for when permission prompts are shown. This should be 56 // UMA specifically for when permission prompts are shown. This should be
57 // roughly equivalent to the metrics above, however it is 57 // roughly equivalent to the metrics above, however it is
58 // useful to have separate UMA to a few reasons: 58 // useful to have separate UMA to a few reasons:
59 // - to account for, and get data on coalesced permission bubbles 59 // - to account for, and get data on coalesced permission bubbles
60 // - there are other types of permissions prompts (e.g. download limiting) 60 // - there are other types of permissions prompts (e.g. download limiting)
61 // which don't go through PermissionContext 61 // which don't go through PermissionContext
62 // - the above metrics don't always add up (e.g. sum of 62 // - the above metrics don't always add up (e.g. sum of
63 // granted+denied+dismissed+ignored is not equal to requested), so it is 63 // granted+denied+dismissed+ignored is not equal to requested), so it is
64 // unclear from those metrics alone how many prompts are seen by users. 64 // unclear from those metrics alone how many prompts are seen by users.
65 static void PermissionPromptShown( 65 static void PermissionPromptShown(
66 const std::vector<PermissionBubbleRequest*>& requests); 66 const std::vector<PermissionRequest*>& requests);
67 67
68 private: 68 private:
69 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionUmaUtil); 69 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionUmaUtil);
70 }; 70 };
71 71
72 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UMA_UTIL_H_ 72 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_UMA_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/permissions/permission_request_manager_unittest.cc ('k') | chrome/browser/permissions/permission_uma_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698