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

Side by Side Diff: chrome/browser/ui/website_settings/permission_bubble_manager.h

Issue 341833004: [WebsiteSettings] Enable permission bubbles by default. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 | Annotate | Revision Log
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_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_ 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // do so. The request will have RequestFinished executed on it if it is found, 51 // do so. The request will have RequestFinished executed on it if it is found,
52 // at which time the caller is free to delete the request. 52 // at which time the caller is free to delete the request.
53 virtual void CancelRequest(PermissionBubbleRequest* request); 53 virtual void CancelRequest(PermissionBubbleRequest* request);
54 54
55 // Sets the active view for the permission bubble. If this is NULL, it 55 // Sets the active view for the permission bubble. If this is NULL, it
56 // means any existing permission bubble can no longer be shown. Does not 56 // means any existing permission bubble can no longer be shown. Does not
57 // take ownership of the view. 57 // take ownership of the view.
58 virtual void SetView(PermissionBubbleView* view) OVERRIDE; 58 virtual void SetView(PermissionBubbleView* view) OVERRIDE;
59 59
60 private: 60 private:
61 friend class DownloadRequestLimiterTest;
62 friend class GeolocationPermissionContextTests;
63 friend class MediaStreamBrowserTest;
64 friend class NotificationsTest;
61 friend class PermissionBubbleManagerTest; 65 friend class PermissionBubbleManagerTest;
62 friend class DownloadRequestLimiterTest; 66 friend class PermissionContextBaseTests;
67 friend class WebRtcTestBase;
63 friend class content::WebContentsUserData<PermissionBubbleManager>; 68 friend class content::WebContentsUserData<PermissionBubbleManager>;
64 69
65 explicit PermissionBubbleManager(content::WebContents* web_contents); 70 explicit PermissionBubbleManager(content::WebContents* web_contents);
66 71
67 // WebContentsObserver: 72 // WebContentsObserver:
68 virtual void DocumentOnLoadCompletedInMainFrame() OVERRIDE; 73 virtual void DocumentOnLoadCompletedInMainFrame() OVERRIDE;
69 virtual void DocumentLoadedInFrame( 74 virtual void DocumentLoadedInFrame(
70 content::RenderFrameHost* render_frame_host) OVERRIDE; 75 content::RenderFrameHost* render_frame_host) OVERRIDE;
71 76
72 // If a page on which permissions requests are pending is navigated, 77 // If a page on which permissions requests are pending is navigated,
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 GURL request_url_; 129 GURL request_url_;
125 bool request_url_has_loaded_; 130 bool request_url_has_loaded_;
126 131
127 std::vector<bool> accept_states_; 132 std::vector<bool> accept_states_;
128 bool customization_mode_; 133 bool customization_mode_;
129 134
130 base::WeakPtrFactory<PermissionBubbleManager> weak_factory_; 135 base::WeakPtrFactory<PermissionBubbleManager> weak_factory_;
131 }; 136 };
132 137
133 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_ 138 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_PERMISSION_BUBBLE_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698