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

Side by Side Diff: chrome/browser/push_messaging/push_messaging_permission_context.h

Issue 2153133002: Add gesture type value from desktop prompt to permission report (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-user-gesture-to-reporting-part
Patch Set: Created 4 years, 5 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PUSH_MESSAGING_PUSH_MESSAGING_PERMISSION_CONTEXT_H_ 5 #ifndef CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_PERMISSION_CONTEXT_H_
6 #define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_PERMISSION_CONTEXT_H_ 6 #define CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_PERMISSION_CONTEXT_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "chrome/browser/permissions/permission_context_base.h" 10 #include "chrome/browser/permissions/permission_context_base.h"
(...skipping 29 matching lines...) Expand all
40 FRIEND_TEST_ALL_PREFIXES(PushMessagingPermissionContextTest, 40 FRIEND_TEST_ALL_PREFIXES(PushMessagingPermissionContextTest,
41 DecidePushPermission); 41 DecidePushPermission);
42 FRIEND_TEST_ALL_PREFIXES(PushMessagingPermissionContextTest, InsecureOrigin); 42 FRIEND_TEST_ALL_PREFIXES(PushMessagingPermissionContextTest, InsecureOrigin);
43 43
44 // Used to decide the permission for push, once the permission for 44 // Used to decide the permission for push, once the permission for
45 // Notification has been granted/denied. 45 // Notification has been granted/denied.
46 void DecidePushPermission( 46 void DecidePushPermission(
47 const PermissionRequestID& id, 47 const PermissionRequestID& id,
48 const GURL& requesting_origin, 48 const GURL& requesting_origin,
49 const GURL& embedding_origin, 49 const GURL& embedding_origin,
50 bool user_gesture,
50 const BrowserPermissionCallback& callback, 51 const BrowserPermissionCallback& callback,
51 blink::mojom::PermissionStatus notifications_status); 52 blink::mojom::PermissionStatus notifications_status);
52 53
53 Profile* profile_; 54 Profile* profile_;
54 55
55 // Must be the last member, to ensure that it will be 56 // Must be the last member, to ensure that it will be
56 // destroyed first, which will invalidate weak pointers 57 // destroyed first, which will invalidate weak pointers
57 base::WeakPtrFactory<PushMessagingPermissionContext> weak_factory_ui_thread_; 58 base::WeakPtrFactory<PushMessagingPermissionContext> weak_factory_ui_thread_;
58 59
59 DISALLOW_COPY_AND_ASSIGN(PushMessagingPermissionContext); 60 DISALLOW_COPY_AND_ASSIGN(PushMessagingPermissionContext);
60 }; 61 };
61 62
62 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_PERMISSION_CONTEXT_H_ 63 #endif // CHROME_BROWSER_PUSH_MESSAGING_PUSH_MESSAGING_PERMISSION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698