| 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 // Defines the public interface for the blocked content (including popup) | 5 // Defines the public interface for the blocked content (including popup) |
| 6 // notifications. This interface should only be used by the | 6 // notifications. This interface should only be used by the |
| 7 // BlockedContentTabHelper. Users and subclasses of TabContents/ | 7 // BlockedContentTabHelper. Users and subclasses of TabContents/ |
| 8 // TabContentsWrapper should use the appropriate methods on | 8 // TabContentsWrapper should use the appropriate methods on |
| 9 // BlockedContentTabHelper to access information about blocked content. | 9 // BlockedContentTabHelper to access information about blocked content. |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 // Overridden from TabContentsDelegate: | 57 // Overridden from TabContentsDelegate: |
| 58 | 58 |
| 59 // Forwards OpenURLFromTab to our |owner_|. | 59 // Forwards OpenURLFromTab to our |owner_|. |
| 60 // Deprecated. Please use the two-arguments variant. | 60 // Deprecated. Please use the two-arguments variant. |
| 61 // TODO(adriansc): Remove method once refactoring changed all call sites. | 61 // TODO(adriansc): Remove method once refactoring changed all call sites. |
| 62 virtual TabContents* OpenURLFromTab( | 62 virtual TabContents* OpenURLFromTab( |
| 63 TabContents* source, | 63 TabContents* source, |
| 64 const GURL& url, const GURL& referrer, | 64 const GURL& url, const GURL& referrer, |
| 65 WindowOpenDisposition disposition, | 65 WindowOpenDisposition disposition, |
| 66 PageTransition::Type transition) OVERRIDE; | 66 content::PageTransition transition) OVERRIDE; |
| 67 virtual TabContents* OpenURLFromTab(TabContents* source, | 67 virtual TabContents* OpenURLFromTab(TabContents* source, |
| 68 const OpenURLParams& params); | 68 const OpenURLParams& params); |
| 69 | 69 |
| 70 // Forwards AddNewContents to our |owner_|. | 70 // Forwards AddNewContents to our |owner_|. |
| 71 virtual void AddNewContents(TabContents* source, | 71 virtual void AddNewContents(TabContents* source, |
| 72 TabContents* new_contents, | 72 TabContents* new_contents, |
| 73 WindowOpenDisposition disposition, | 73 WindowOpenDisposition disposition, |
| 74 const gfx::Rect& initial_position, | 74 const gfx::Rect& initial_position, |
| 75 bool user_gesture); | 75 bool user_gesture); |
| 76 | 76 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 99 // The TabContents that owns and constrains this BlockedContentContainer. | 99 // The TabContents that owns and constrains this BlockedContentContainer. |
| 100 TabContentsWrapper* owner_; | 100 TabContentsWrapper* owner_; |
| 101 | 101 |
| 102 // Information about all blocked contents. | 102 // Information about all blocked contents. |
| 103 BlockedContents blocked_contents_; | 103 BlockedContents blocked_contents_; |
| 104 | 104 |
| 105 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedContentContainer); | 105 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedContentContainer); |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_CONTAINER_H_ | 108 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_CONTAINER_H_ |
| OLD | NEW |