OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |