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

Side by Side Diff: chrome/browser/permissions/permission_context_base.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: nit: 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 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_CONTEXT_BASE_H_ 5 #ifndef CHROME_BROWSER_PERMISSIONS_PERMISSION_CONTEXT_BASE_H_
6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_CONTEXT_BASE_H_ 6 #define CHROME_BROWSER_PERMISSIONS_PERMISSION_CONTEXT_BASE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 const PermissionRequestID& id, 109 const PermissionRequestID& id,
110 const GURL& requesting_origin, 110 const GURL& requesting_origin,
111 const GURL& embedding_origin, 111 const GURL& embedding_origin,
112 bool user_gesture, 112 bool user_gesture,
113 const BrowserPermissionCallback& callback); 113 const BrowserPermissionCallback& callback);
114 114
115 // Called when permission is granted without interactively asking the user. 115 // Called when permission is granted without interactively asking the user.
116 void PermissionDecided(const PermissionRequestID& id, 116 void PermissionDecided(const PermissionRequestID& id,
117 const GURL& requesting_origin, 117 const GURL& requesting_origin,
118 const GURL& embedding_origin, 118 const GURL& embedding_origin,
119 bool user_gesture,
119 const BrowserPermissionCallback& callback, 120 const BrowserPermissionCallback& callback,
120 bool persist, 121 bool persist,
121 ContentSetting content_setting); 122 ContentSetting content_setting);
122 123
123 virtual void NotifyPermissionSet(const PermissionRequestID& id, 124 virtual void NotifyPermissionSet(const PermissionRequestID& id,
124 const GURL& requesting_origin, 125 const GURL& requesting_origin,
125 const GURL& embedding_origin, 126 const GURL& embedding_origin,
126 const BrowserPermissionCallback& callback, 127 const BrowserPermissionCallback& callback,
127 bool persist, 128 bool persist,
128 ContentSetting content_setting); 129 ContentSetting content_setting);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 #endif 169 #endif
169 base::ScopedPtrHashMap<std::string, std::unique_ptr<PermissionBubbleRequest>> 170 base::ScopedPtrHashMap<std::string, std::unique_ptr<PermissionBubbleRequest>>
170 pending_bubbles_; 171 pending_bubbles_;
171 172
172 // Must be the last member, to ensure that it will be 173 // Must be the last member, to ensure that it will be
173 // destroyed first, which will invalidate weak pointers 174 // destroyed first, which will invalidate weak pointers
174 base::WeakPtrFactory<PermissionContextBase> weak_factory_; 175 base::WeakPtrFactory<PermissionContextBase> weak_factory_;
175 }; 176 };
176 177
177 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_CONTEXT_BASE_H_ 178 #endif // CHROME_BROWSER_PERMISSIONS_PERMISSION_CONTEXT_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698