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

Side by Side Diff: chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h

Issue 2496653002: Part 2 of base::IDMap refactor to eliminate IDMapOwnPointer/IDMapExternalPointer modes (Closed)
Patch Set: typedefs => using statements, update comments in base/id_map.h Created 4 years 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 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698