Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(264)

Side by Side Diff: chrome/browser/ui/blocked_content/blocked_content_container.h

Issue 10868116: Pass result of blockage across content API when new tab blocked. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WebContents/TabContents 7 // BlockedContentTabHelper. Users and subclasses of WebContents/TabContents
8 // should use the appropriate methods on BlockedContentTabHelper to access 8 // should use the appropriate methods on BlockedContentTabHelper to access
9 // information about blocked content. 9 // information about blocked content.
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual TabContents* GetConstrainingTabContents(TabContents* source) OVERRIDE; 51 virtual TabContents* GetConstrainingTabContents(TabContents* source) OVERRIDE;
52 52
53 // Overridden from content::WebContentsDelegate: 53 // Overridden from content::WebContentsDelegate:
54 54
55 // Forwards OpenURLFromTab to our |owner_|. 55 // Forwards OpenURLFromTab to our |owner_|.
56 virtual content::WebContents* OpenURLFromTab( 56 virtual content::WebContents* OpenURLFromTab(
57 content::WebContents* source, 57 content::WebContents* source,
58 const content::OpenURLParams& params) OVERRIDE; 58 const content::OpenURLParams& params) OVERRIDE;
59 59
60 // Forwards AddNewContents to our |owner_|. 60 // Forwards AddNewContents to our |owner_|.
61 virtual void AddNewContents(content::WebContents* source, 61 virtual bool AddNewContents(content::WebContents* source,
62 content::WebContents* new_contents, 62 content::WebContents* new_contents,
63 WindowOpenDisposition disposition, 63 WindowOpenDisposition disposition,
64 const gfx::Rect& initial_position, 64 const gfx::Rect& initial_position,
65 bool user_gesture) OVERRIDE; 65 bool user_gesture) OVERRIDE;
66 66
67 // Removes |source| from our internal list of blocked contents. 67 // Removes |source| from our internal list of blocked contents.
68 virtual void CloseContents(content::WebContents* source) OVERRIDE; 68 virtual void CloseContents(content::WebContents* source) OVERRIDE;
69 69
70 // Changes the opening rectangle associated with |source|. 70 // Changes the opening rectangle associated with |source|.
71 virtual void MoveContents(content::WebContents* source, 71 virtual void MoveContents(content::WebContents* source,
(...skipping 18 matching lines...) Expand all
90 // The TabContents that owns and constrains this BlockedContentContainer. 90 // The TabContents that owns and constrains this BlockedContentContainer.
91 TabContents* owner_; 91 TabContents* owner_;
92 92
93 // Information about all blocked contents. 93 // Information about all blocked contents.
94 BlockedContents blocked_contents_; 94 BlockedContents blocked_contents_;
95 95
96 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedContentContainer); 96 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedContentContainer);
97 }; 97 };
98 98
99 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_CONTAINER_H_ 99 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698