| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // 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_ |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 // Ignored; BlockedPopupContainer doesn't display a toolbar. | 170 // Ignored; BlockedPopupContainer doesn't display a toolbar. |
| 171 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) { } | 171 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) { } |
| 172 | 172 |
| 173 // Ignored; BlockedPopupContainer doesn't display a bookmarking star. | 173 // Ignored; BlockedPopupContainer doesn't display a bookmarking star. |
| 174 virtual void URLStarredChanged(TabContents* source, bool starred) { } | 174 virtual void URLStarredChanged(TabContents* source, bool starred) { } |
| 175 | 175 |
| 176 // Ignored; BlockedPopupContainer doesn't display a URL bar. | 176 // Ignored; BlockedPopupContainer doesn't display a URL bar. |
| 177 virtual void UpdateTargetURL(TabContents* source, const GURL& url) { } | 177 virtual void UpdateTargetURL(TabContents* source, const GURL& url) { } |
| 178 | 178 |
| 179 // Creates an ExtensionFunctionDispatcher that has no browser | |
| 180 virtual ExtensionFunctionDispatcher* CreateExtensionFunctionDispatcher( | |
| 181 RenderViewHost* render_view_host, | |
| 182 const std::string& extension_id); | |
| 183 | |
| 184 // A number larger than the internal popup count on the Renderer; meant for | 179 // A number larger than the internal popup count on the Renderer; meant for |
| 185 // preventing a compromised renderer from exhausting GDI memory by spawning | 180 // preventing a compromised renderer from exhausting GDI memory by spawning |
| 186 // infinite windows. | 181 // infinite windows. |
| 187 static const size_t kImpossibleNumberOfPopups = 30; | 182 static const size_t kImpossibleNumberOfPopups = 30; |
| 188 | 183 |
| 189 protected: | 184 protected: |
| 190 struct BlockedPopup { | 185 struct BlockedPopup { |
| 191 BlockedPopup(TabContents* tab_contents, | 186 BlockedPopup(TabContents* tab_contents, |
| 192 const gfx::Rect& bounds, | 187 const gfx::Rect& bounds, |
| 193 const std::string& host) | 188 const std::string& host) |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // Information about all popup hosts. | 260 // Information about all popup hosts. |
| 266 PopupHosts popup_hosts_; | 261 PopupHosts popup_hosts_; |
| 267 | 262 |
| 268 // Our platform specific view. | 263 // Our platform specific view. |
| 269 BlockedPopupContainerView* view_; | 264 BlockedPopupContainerView* view_; |
| 270 | 265 |
| 271 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer); | 266 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer); |
| 272 }; | 267 }; |
| 273 | 268 |
| 274 #endif // CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ | 269 #endif // CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ |
| OLD | NEW |