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

Unified Diff: chrome/browser/ui/website_settings/permission_bubble_view.h

Issue 1913413002: [WIP][POC] Base URL: https://chromium.googlesource.com/chromium/src.git@permission-request-rename
Patch Set: rebase Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/tab_helpers.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/website_settings/permission_bubble_view.h
diff --git a/chrome/browser/ui/website_settings/permission_bubble_view.h b/chrome/browser/ui/website_settings/permission_bubble_view.h
index 2beeacbbde2ddbc2151ebba1691dcf3e84e3d3db..910e7425031c1e5929896a79d669fb7a0e767101 100644
--- a/chrome/browser/ui/website_settings/permission_bubble_view.h
+++ b/chrome/browser/ui/website_settings/permission_bubble_view.h
@@ -11,7 +11,10 @@
#include "base/callback.h"
#include "ui/gfx/native_widget_types.h"
-class Browser;
+namespace content {
+class WebContents;
+} // namespace content
+
class PermissionRequestManager;
class PermissionRequest;
@@ -33,11 +36,12 @@ class PermissionBubbleView {
virtual void Closing() = 0;
};
- typedef base::Callback<std::unique_ptr<PermissionBubbleView>(Browser*)>
- Factory;
+ using Factory = base::Callback<
+ std::unique_ptr<PermissionBubbleView>(content::WebContents*)>;
// Create a platform specific instance.
- static std::unique_ptr<PermissionBubbleView> Create(Browser* browser);
+ static std::unique_ptr<PermissionBubbleView> Create(
+ content::WebContents* web_contents);
virtual ~PermissionBubbleView() {}
// Sets the delegate which will receive UI events forwarded from the bubble.
« no previous file with comments | « chrome/browser/ui/tab_helpers.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698