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

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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 void 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,
66 bool* was_blocked) OVERRIDE;
66 67
67 // Removes |source| from our internal list of blocked contents. 68 // Removes |source| from our internal list of blocked contents.
68 virtual void CloseContents(content::WebContents* source) OVERRIDE; 69 virtual void CloseContents(content::WebContents* source) OVERRIDE;
69 70
70 // Changes the opening rectangle associated with |source|. 71 // Changes the opening rectangle associated with |source|.
71 virtual void MoveContents(content::WebContents* source, 72 virtual void MoveContents(content::WebContents* source,
72 const gfx::Rect& new_bounds) OVERRIDE; 73 const gfx::Rect& new_bounds) OVERRIDE;
73 74
74 virtual bool IsPopupOrPanel( 75 virtual bool IsPopupOrPanel(
75 const content::WebContents* source) const OVERRIDE; 76 const content::WebContents* source) const OVERRIDE;
(...skipping 14 matching lines...) Expand all
90 // The TabContents that owns and constrains this BlockedContentContainer. 91 // The TabContents that owns and constrains this BlockedContentContainer.
91 TabContents* owner_; 92 TabContents* owner_;
92 93
93 // Information about all blocked contents. 94 // Information about all blocked contents.
94 BlockedContents blocked_contents_; 95 BlockedContents blocked_contents_;
95 96
96 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedContentContainer); 97 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedContentContainer);
97 }; 98 };
98 99
99 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_CONTAINER_H_ 100 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698