Index: chrome/browser/guestview/webview/webview_guest.h |
diff --git a/chrome/browser/guestview/webview/webview_guest.h b/chrome/browser/guestview/webview/webview_guest.h |
index 386d0f6f03f4f4d3a876ba71fa2038db1de89b65..8354db7c057389d17dcebc50e939ea2efb34a21b 100644 |
--- a/chrome/browser/guestview/webview/webview_guest.h |
+++ b/chrome/browser/guestview/webview/webview_guest.h |
@@ -122,6 +122,20 @@ class WebViewGuest : public GuestView, |
private: |
virtual ~WebViewGuest(); |
+ // A map to store the callback for a request keyed by the request's id. |
+ struct PermissionResponseInfo { |
+ PermissionResponseCallback callback; |
+ BrowserPluginPermissionType permission_type; |
+ bool allowed_by_default; |
+ PermissionResponseInfo(); |
+ PermissionResponseInfo(const PermissionResponseCallback& callback, |
+ BrowserPluginPermissionType permission_type, |
+ bool allowed_by_default); |
+ ~PermissionResponseInfo(); |
+ }; |
+ |
+ static void RecordUserInitiatedUMA(const PermissionResponseInfo& info, |
+ bool allow); |
// WebContentsObserver implementation. |
virtual void DidCommitProvisionalLoadForFrame( |
int64 frame_id, |
@@ -175,15 +189,6 @@ class WebViewGuest : public GuestView, |
// We only need the ids to be unique for a given WebViewGuest. |
int next_permission_request_id_; |
- // A map to store the callback for a request keyed by the request's id. |
- struct PermissionResponseInfo { |
- PermissionResponseCallback callback; |
- bool allowed_by_default; |
- PermissionResponseInfo(); |
- PermissionResponseInfo(const PermissionResponseCallback& callback, |
- bool allowed_by_default); |
- ~PermissionResponseInfo(); |
- }; |
typedef std::map<int, PermissionResponseInfo> RequestMap; |
RequestMap pending_permission_requests_; |