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

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

Issue 2651163002: Add UMA for autoblocking and embargoing. (Closed)
Patch Set: Created 3 years, 10 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_DECISION_AUTO_BLOCKER_H_ 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_DECISION_AUTO_BLOCKER_H_
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_DECISION_AUTO_BLOCKER_H_ 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_DECISION_AUTO_BLOCKER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 #include "base/time/default_clock.h" 12 #include "base/time/default_clock.h"
13 #include "chrome/browser/permissions/permission_uma_util.h"
dominickn 2017/01/27 06:05:47 Remove this include (move it to the cc file).
meredithl 2017/01/29 23:48:29 Done.
13 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 14 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
14 #include "components/keyed_service/core/keyed_service.h" 15 #include "components/keyed_service/core/keyed_service.h"
15 #include "content/public/browser/permission_type.h" 16 #include "content/public/browser/permission_type.h"
16 #include "url/gurl.h" 17 #include "url/gurl.h"
17 18
18 class GURL; 19 class GURL;
19 class Profile; 20 class Profile;
20 21
21 namespace content { 22 namespace content {
22 class WebContents; 23 class WebContents;
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager> db_manager_; 131 scoped_refptr<safe_browsing::SafeBrowsingDatabaseManager> db_manager_;
131 132
132 // Timeout in ms. 133 // Timeout in ms.
133 int safe_browsing_timeout_; 134 int safe_browsing_timeout_;
134 135
135 std::unique_ptr<base::Clock> clock_; 136 std::unique_ptr<base::Clock> clock_;
136 137
137 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionDecisionAutoBlocker); 138 DISALLOW_IMPLICIT_CONSTRUCTORS(PermissionDecisionAutoBlocker);
138 }; 139 };
139 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_DECISION_AUTO_BLOCKER_H_ 140 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_DECISION_AUTO_BLOCKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698