| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 9 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
| 10 #include "chrome/browser/ui/find_bar/find_notification_details.h" | 10 #include "chrome/browser/ui/find_bar/find_notification_details.h" |
| 11 #include "content/public/browser/notification_registrar.h" | 11 #include "content/public/browser/notification_registrar.h" |
| 12 #include "content/public/browser/web_contents_observer.h" | 12 #include "content/public/browser/web_contents_observer.h" |
| 13 #include "webkit/glue/window_open_disposition.h" | 13 #include "webkit/glue/window_open_disposition.h" |
| 14 | 14 |
| 15 class BlockedContentContainer; | 15 class BlockedContentContainer; |
| 16 class BlockedContentTabHelperDelegate; | 16 class BlockedContentTabHelperDelegate; |
| 17 class TabContentsWrapper; | 17 class TabContents; |
| 18 typedef TabContents TabContentsWrapper; |
| 18 | 19 |
| 19 // Per-tab class to manage blocked popups. | 20 // Per-tab class to manage blocked popups. |
| 20 class BlockedContentTabHelper : public content::WebContentsObserver { | 21 class BlockedContentTabHelper : public content::WebContentsObserver { |
| 21 public: | 22 public: |
| 22 explicit BlockedContentTabHelper(TabContentsWrapper* tab_contents); | 23 explicit BlockedContentTabHelper(TabContentsWrapper* tab_contents); |
| 23 virtual ~BlockedContentTabHelper(); | 24 virtual ~BlockedContentTabHelper(); |
| 24 | 25 |
| 25 BlockedContentTabHelperDelegate* delegate() const { return delegate_; } | 26 BlockedContentTabHelperDelegate* delegate() const { return delegate_; } |
| 26 void set_delegate(BlockedContentTabHelperDelegate* d) { delegate_ = d; } | 27 void set_delegate(BlockedContentTabHelperDelegate* d) { delegate_ = d; } |
| 27 | 28 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 TabContentsWrapper* tab_contents_wrapper_; | 80 TabContentsWrapper* tab_contents_wrapper_; |
| 80 | 81 |
| 81 // Delegate for notifying our owner (usually Browser) about stuff. Not owned | 82 // Delegate for notifying our owner (usually Browser) about stuff. Not owned |
| 82 // by us. | 83 // by us. |
| 83 BlockedContentTabHelperDelegate* delegate_; | 84 BlockedContentTabHelperDelegate* delegate_; |
| 84 | 85 |
| 85 DISALLOW_COPY_AND_ASSIGN(BlockedContentTabHelper); | 86 DISALLOW_COPY_AND_ASSIGN(BlockedContentTabHelper); |
| 86 }; | 87 }; |
| 87 | 88 |
| 88 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_ | 89 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_ |
| OLD | NEW |