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

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

Issue 2715623003: Split out PermissionResult and PermissionStatusSource into a new cc/h file. (Closed)
Patch Set: Re-re-rebase Created 3 years, 9 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 #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
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_
OLDNEW
« no previous file with comments | « chrome/browser/permissions/permission_result.cc ('k') | chrome/browser/permissions/permission_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698