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

Side by Side Diff: chrome/browser/guestview/webview/plugin_permission_helper.h

Issue 69913002: Add UMA for <webview> APIs: a. ClearData, b. when Permission request is allowed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refine by permission granularity. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_GUESTVIEW_WEBVIEW_PLUGIN_PERMISSION_HELPER_H_ 5 #ifndef CHROME_BROWSER_GUESTVIEW_WEBVIEW_PLUGIN_PERMISSION_HELPER_H_
6 #define CHROME_BROWSER_GUESTVIEW_WEBVIEW_PLUGIN_PERMISSION_HELPER_H_ 6 #define CHROME_BROWSER_GUESTVIEW_WEBVIEW_PLUGIN_PERMISSION_HELPER_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "content/public/browser/web_contents_observer.h" 9 #include "content/public/browser/web_contents_observer.h"
10 #include "content/public/browser/web_contents_user_data.h" 10 #include "content/public/browser/web_contents_user_data.h"
(...skipping 20 matching lines...) Expand all
31 void OnNPAPINotSupported(const std::string& identifier); 31 void OnNPAPINotSupported(const std::string& identifier);
32 void OnOpenAboutPlugins(); 32 void OnOpenAboutPlugins();
33 #if defined(ENABLE_PLUGIN_INSTALLATION) 33 #if defined(ENABLE_PLUGIN_INSTALLATION)
34 void OnFindMissingPlugin(int placeholder_id, const std::string& mime_type); 34 void OnFindMissingPlugin(int placeholder_id, const std::string& mime_type);
35 35
36 void OnRemovePluginPlaceholderHost(int placeholder_id); 36 void OnRemovePluginPlaceholderHost(int placeholder_id);
37 #endif 37 #endif
38 38
39 void OnPermissionResponse(const std::string& identifier, 39 void OnPermissionResponse(const std::string& identifier,
40 bool allow, 40 bool allow,
41 const std::string& user_input); 41 const std::string& user_input,
42 bool user_initiated);
42 43
43 base::WeakPtrFactory<PluginPermissionHelper> weak_factory_; 44 base::WeakPtrFactory<PluginPermissionHelper> weak_factory_;
44 45
45 DISALLOW_COPY_AND_ASSIGN(PluginPermissionHelper); 46 DISALLOW_COPY_AND_ASSIGN(PluginPermissionHelper);
46 }; 47 };
47 48
48 #endif // CHROME_BROWSER_GUESTVIEW_WEBVIEW_PLUGIN_PERMISSION_HELPER_H_ 49 #endif // CHROME_BROWSER_GUESTVIEW_WEBVIEW_PLUGIN_PERMISSION_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698