| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 popup notifications. This | 5 // Defines the public interface for the blocked popup notifications. This |
| 6 // interface should only be used by TabContents. Users and subclasses of | 6 // interface should only be used by TabContents. Users and subclasses of |
| 7 // TabContents should use the appropriate methods on TabContents to access | 7 // TabContents should use the appropriate methods on TabContents to access |
| 8 // information about blocked popups. | 8 // information about blocked popups. |
| 9 | 9 |
| 10 #ifndef CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ | 10 #ifndef CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ |
| 11 #define CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ | 11 #define CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ |
| 12 #pragma once | 12 #pragma once |
| 13 | 13 |
| 14 #include <vector> |
| 15 |
| 14 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 16 #include "chrome/browser/tab_contents/tab_contents_delegate.h" |
| 15 | 17 |
| 16 // Takes ownership of TabContents that are unrequested popup windows. | 18 // Takes ownership of TabContents that are unrequested popup windows. |
| 17 class BlockedPopupContainer : public TabContentsDelegate { | 19 class BlockedPopupContainer : public TabContentsDelegate { |
| 18 public: | 20 public: |
| 19 typedef std::vector<TabContents*> BlockedContents; | 21 typedef std::vector<TabContents*> BlockedContents; |
| 20 | 22 |
| 21 // Creates a container for a certain TabContents: | 23 // Creates a container for a certain TabContents: |
| 22 explicit BlockedPopupContainer(TabContents* owner); | 24 explicit BlockedPopupContainer(TabContents* owner); |
| 23 | 25 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 // The TabContents that owns and constrains this BlockedPopupContainer. | 108 // The TabContents that owns and constrains this BlockedPopupContainer. |
| 107 TabContents* owner_; | 109 TabContents* owner_; |
| 108 | 110 |
| 109 // Information about all blocked popups. | 111 // Information about all blocked popups. |
| 110 BlockedPopups blocked_popups_; | 112 BlockedPopups blocked_popups_; |
| 111 | 113 |
| 112 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer); | 114 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer); |
| 113 }; | 115 }; |
| 114 | 116 |
| 115 #endif // CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ | 117 #endif // CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ |
| OLD | NEW |