| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BLOCKED_CONTENT_TAB_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_ |
| 6 #define CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_ | 6 #define CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 8 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
| 9 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 9 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
| 10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 bool all_contents_blocked() const { return all_contents_blocked_; } | 33 bool all_contents_blocked() const { return all_contents_blocked_; } |
| 34 | 34 |
| 35 // Adds the incoming |new_contents| to the |blocked_contents_| container. | 35 // Adds the incoming |new_contents| to the |blocked_contents_| container. |
| 36 void AddTabContents(TabContents* new_contents, | 36 void AddTabContents(TabContents* new_contents, |
| 37 WindowOpenDisposition disposition, | 37 WindowOpenDisposition disposition, |
| 38 const gfx::Rect& initial_pos, | 38 const gfx::Rect& initial_pos, |
| 39 bool user_gesture); | 39 bool user_gesture); |
| 40 | 40 |
| 41 // Adds the incoming |new_contents| to the |blocked_contents_| container. | 41 // Adds the incoming |new_contents| to the |blocked_contents_| container. |
| 42 void AddPopup(TabContents* new_contents, | 42 void AddPopup(TabContents* new_contents, |
| 43 WindowOpenDisposition disposition, |
| 43 const gfx::Rect& initial_pos, | 44 const gfx::Rect& initial_pos, |
| 44 bool user_gesture); | 45 bool user_gesture); |
| 45 | 46 |
| 46 // Shows the blocked TabContents |tab_contents|. | 47 // Shows the blocked TabContents |tab_contents|. |
| 47 void LaunchForContents(TabContents* tab_contents); | 48 void LaunchForContents(TabContents* tab_contents); |
| 48 | 49 |
| 49 // Returns the number of blocked contents. | 50 // Returns the number of blocked contents. |
| 50 size_t GetBlockedContentsCount() const; | 51 size_t GetBlockedContentsCount() const; |
| 51 | 52 |
| 52 // Returns the blocked TabContentss. |blocked_contents| must be non-NULL. | 53 // Returns the blocked TabContentss. |blocked_contents| must be non-NULL. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 75 TabContents* tab_contents_; | 76 TabContents* tab_contents_; |
| 76 | 77 |
| 77 // Delegate for notifying our owner (usually Browser) about stuff. Not owned | 78 // Delegate for notifying our owner (usually Browser) about stuff. Not owned |
| 78 // by us. | 79 // by us. |
| 79 BlockedContentTabHelperDelegate* delegate_; | 80 BlockedContentTabHelperDelegate* delegate_; |
| 80 | 81 |
| 81 DISALLOW_COPY_AND_ASSIGN(BlockedContentTabHelper); | 82 DISALLOW_COPY_AND_ASSIGN(BlockedContentTabHelper); |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_ | 85 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_ |
| OLD | NEW |