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 TabContents. Users and | 6 // notifications. This interface should only be used by TabContents. Users and |
7 // subclasses of TabContents should use the appropriate methods on TabContents | 7 // subclasses of TabContents should use the appropriate methods on TabContents |
8 // to access information about blocked content. | 8 // to access information about blocked content. |
9 | 9 |
10 #ifndef CHROME_BROWSER_BLOCKED_CONTENT_CONTAINER_H_ | 10 #ifndef CHROME_BROWSER_BLOCKED_CONTENT_CONTAINER_H_ |
11 #define CHROME_BROWSER_BLOCKED_CONTENT_CONTAINER_H_ | 11 #define CHROME_BROWSER_BLOCKED_CONTENT_CONTAINER_H_ |
12 #pragma once | 12 #pragma once |
13 | 13 |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "chrome/browser/tab_contents/tab_contents_delegate.h" | 16 #include "content/browser/tab_contents/tab_contents_delegate.h" |
17 | 17 |
18 // Takes ownership of TabContents that are unrequested popup windows. | 18 // Takes ownership of TabContents that are unrequested popup windows. |
19 class BlockedContentContainer : public TabContentsDelegate { | 19 class BlockedContentContainer : public TabContentsDelegate { |
20 public: | 20 public: |
21 // Creates a container for a certain TabContents: | 21 // Creates a container for a certain TabContents: |
22 explicit BlockedContentContainer(TabContents* owner); | 22 explicit BlockedContentContainer(TabContents* owner); |
23 virtual ~BlockedContentContainer(); | 23 virtual ~BlockedContentContainer(); |
24 | 24 |
25 // Adds a TabContents to this container. |bounds| are the window bounds | 25 // Adds a TabContents to this container. |bounds| are the window bounds |
26 // requested for the TabContents. | 26 // requested for the TabContents. |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // The TabContents that owns and constrains this BlockedContentContainer. | 100 // The TabContents that owns and constrains this BlockedContentContainer. |
101 TabContents* owner_; | 101 TabContents* owner_; |
102 | 102 |
103 // Information about all blocked contents. | 103 // Information about all blocked contents. |
104 BlockedContents blocked_contents_; | 104 BlockedContents blocked_contents_; |
105 | 105 |
106 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedContentContainer); | 106 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedContentContainer); |
107 }; | 107 }; |
108 | 108 |
109 #endif // CHROME_BROWSER_BLOCKED_CONTENT_CONTAINER_H_ | 109 #endif // CHROME_BROWSER_BLOCKED_CONTENT_CONTAINER_H_ |
OLD | NEW |