| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_UI_BLOCKED_CONTENT_POPUP_BLOCKER_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_BLOCKED_CONTENT_POPUP_BLOCKER_TAB_HELPER_H_ |
| 6 #define CHROME_BROWSER_UI_BLOCKED_CONTENT_POPUP_BLOCKER_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_UI_BLOCKED_CONTENT_POPUP_BLOCKER_TAB_HELPER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 friend class content::WebContentsUserData<PopupBlockerTabHelper>; | 62 friend class content::WebContentsUserData<PopupBlockerTabHelper>; |
| 63 | 63 |
| 64 explicit PopupBlockerTabHelper(content::WebContents* web_contents); | 64 explicit PopupBlockerTabHelper(content::WebContents* web_contents); |
| 65 | 65 |
| 66 void AddBlockedPopup(const chrome::NavigateParams& params, | 66 void AddBlockedPopup(const chrome::NavigateParams& params, |
| 67 const blink::WebWindowFeatures& window_features); | 67 const blink::WebWindowFeatures& window_features); |
| 68 | 68 |
| 69 // Called when the blocked popup notification is shown or hidden. | 69 // Called when the blocked popup notification is shown or hidden. |
| 70 void PopupNotificationVisibilityChanged(bool visible); | 70 void PopupNotificationVisibilityChanged(bool visible); |
| 71 | 71 |
| 72 IDMap<BlockedRequest, IDMapOwnPointer> blocked_popups_; | 72 IDMap<std::unique_ptr<BlockedRequest>> blocked_popups_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(PopupBlockerTabHelper); | 74 DISALLOW_COPY_AND_ASSIGN(PopupBlockerTabHelper); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_POPUP_BLOCKER_TAB_HELPER_H_ | 77 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_POPUP_BLOCKER_TAB_HELPER_H_ |
| OLD | NEW |