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

Unified Diff: trunk/src/chrome/browser/guestview/webview/webview_guest.h

Issue 65043018: Revert 235647 "Add UMA for <webview> APIs: a. ClearData, b. when..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: trunk/src/chrome/browser/guestview/webview/webview_guest.h
===================================================================
--- trunk/src/chrome/browser/guestview/webview/webview_guest.h (revision 235667)
+++ trunk/src/chrome/browser/guestview/webview/webview_guest.h (working copy)
@@ -122,20 +122,6 @@
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,
@@ -189,6 +175,15 @@
// 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_;

Powered by Google App Engine
This is Rietveld 408576698