| 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" |
| 11 #include "content/public/browser/web_contents_observer.h" | 11 #include "content/public/browser/web_contents_observer.h" |
| 12 #include "content/public/browser/web_contents_user_data.h" | 12 #include "content/public/browser/web_contents_user_data.h" |
| 13 #include "webkit/glue/window_open_disposition.h" | 13 #include "ui/base/window_open_disposition.h" |
| 14 | 14 |
| 15 class BlockedContentContainer; | 15 class BlockedContentContainer; |
| 16 class BlockedContentTabHelperDelegate; | 16 class BlockedContentTabHelperDelegate; |
| 17 | 17 |
| 18 // Per-tab class to manage blocked popups. | 18 // Per-tab class to manage blocked popups. |
| 19 class BlockedContentTabHelper | 19 class BlockedContentTabHelper |
| 20 : public content::WebContentsObserver, | 20 : public content::WebContentsObserver, |
| 21 public content::WebContentsUserData<BlockedContentTabHelper> { | 21 public content::WebContentsUserData<BlockedContentTabHelper> { |
| 22 public: | 22 public: |
| 23 virtual ~BlockedContentTabHelper(); | 23 virtual ~BlockedContentTabHelper(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 bool all_contents_blocked_; | 78 bool all_contents_blocked_; |
| 79 | 79 |
| 80 // Delegate for notifying our owner (usually Browser) about stuff. Not owned | 80 // Delegate for notifying our owner (usually Browser) about stuff. Not owned |
| 81 // by us. | 81 // by us. |
| 82 BlockedContentTabHelperDelegate* delegate_; | 82 BlockedContentTabHelperDelegate* delegate_; |
| 83 | 83 |
| 84 DISALLOW_COPY_AND_ASSIGN(BlockedContentTabHelper); | 84 DISALLOW_COPY_AND_ASSIGN(BlockedContentTabHelper); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_ | 87 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_ |
| OLD | NEW |