OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 size_t GetBlockedContentsCount() const; | 51 size_t GetBlockedContentsCount() const; |
52 | 52 |
53 // Returns the blocked TabContentsWrappers. |blocked_contents| must | 53 // Returns the blocked TabContentsWrappers. |blocked_contents| must |
54 // be non-NULL. | 54 // be non-NULL. |
55 void GetBlockedContents( | 55 void GetBlockedContents( |
56 std::vector<TabContentsWrapper*>* blocked_contents) const; | 56 std::vector<TabContentsWrapper*>* blocked_contents) const; |
57 | 57 |
58 // TabContentsObserver overrides: | 58 // TabContentsObserver overrides: |
59 virtual void DidNavigateMainFrame( | 59 virtual void DidNavigateMainFrame( |
60 const content::LoadCommittedDetails& details, | 60 const content::LoadCommittedDetails& details, |
61 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; | 61 const content::FrameNavigateParams& params) OVERRIDE; |
62 | 62 |
63 private: | 63 private: |
64 // Called when the blocked popup notification is shown or hidden. | 64 // Called when the blocked popup notification is shown or hidden. |
65 void PopupNotificationVisibilityChanged(bool visible); | 65 void PopupNotificationVisibilityChanged(bool visible); |
66 | 66 |
67 // Object that holds any blocked TabContents spawned from this TabContents. | 67 // Object that holds any blocked TabContents spawned from this TabContents. |
68 scoped_ptr<BlockedContentContainer> blocked_contents_; | 68 scoped_ptr<BlockedContentContainer> blocked_contents_; |
69 | 69 |
70 // Should we block all child TabContents this attempts to spawn. | 70 // Should we block all child TabContents this attempts to spawn. |
71 bool all_contents_blocked_; | 71 bool all_contents_blocked_; |
72 | 72 |
73 // Owning TabContentsWrapper. | 73 // Owning TabContentsWrapper. |
74 TabContentsWrapper* tab_contents_wrapper_; | 74 TabContentsWrapper* tab_contents_wrapper_; |
75 | 75 |
76 // Delegate for notifying our owner (usually Browser) about stuff. Not owned | 76 // Delegate for notifying our owner (usually Browser) about stuff. Not owned |
77 // by us. | 77 // by us. |
78 BlockedContentTabHelperDelegate* delegate_; | 78 BlockedContentTabHelperDelegate* delegate_; |
79 | 79 |
80 DISALLOW_COPY_AND_ASSIGN(BlockedContentTabHelper); | 80 DISALLOW_COPY_AND_ASSIGN(BlockedContentTabHelper); |
81 }; | 81 }; |
82 | 82 |
83 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_ | 83 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_ |
OLD | NEW |