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

Side by Side Diff: chrome/browser/ui/blocked_content/blocked_content_tab_helper.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 #ifndef CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_ 5 #ifndef CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_
6 #define CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_ 6 #define CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_
7 7
8 #include "chrome/browser/ui/find_bar/find_bar_controller.h" 8 #include "chrome/browser/ui/find_bar/find_bar_controller.h"
9 #include "chrome/browser/ui/find_bar/find_notification_details.h" 9 #include "chrome/browser/ui/find_bar/find_notification_details.h"
10 #include "content/public/browser/notification_registrar.h" 10 #include "content/public/browser/notification_registrar.h"
(...skipping 22 matching lines...) Expand all
33 bool all_contents_blocked() const { return all_contents_blocked_; } 33 bool all_contents_blocked() const { return all_contents_blocked_; }
34 34
35 // Adds the incoming |new_contents| to the |blocked_contents_| container. 35 // Adds the incoming |new_contents| to the |blocked_contents_| container.
36 void AddTabContents(TabContents* new_contents, 36 void AddTabContents(TabContents* new_contents,
37 WindowOpenDisposition disposition, 37 WindowOpenDisposition disposition,
38 const gfx::Rect& initial_pos, 38 const gfx::Rect& initial_pos,
39 bool user_gesture); 39 bool user_gesture);
40 40
41 // Adds the incoming |new_contents| to the |blocked_contents_| container. 41 // Adds the incoming |new_contents| to the |blocked_contents_| container.
42 void AddPopup(TabContents* new_contents, 42 void AddPopup(TabContents* new_contents,
43 WindowOpenDisposition disposition,
43 const gfx::Rect& initial_pos, 44 const gfx::Rect& initial_pos,
44 bool user_gesture); 45 bool user_gesture);
45 46
46 // Shows the blocked TabContents |tab_contents|. 47 // Shows the blocked TabContents |tab_contents|.
47 void LaunchForContents(TabContents* tab_contents); 48 void LaunchForContents(TabContents* tab_contents);
48 49
49 // Returns the number of blocked contents. 50 // Returns the number of blocked contents.
50 size_t GetBlockedContentsCount() const; 51 size_t GetBlockedContentsCount() const;
51 52
52 // Returns the blocked TabContentss. |blocked_contents| must be non-NULL. 53 // Returns the blocked TabContentss. |blocked_contents| must be non-NULL.
(...skipping 22 matching lines...) Expand all
75 TabContents* tab_contents_; 76 TabContents* tab_contents_;
76 77
77 // Delegate for notifying our owner (usually Browser) about stuff. Not owned 78 // Delegate for notifying our owner (usually Browser) about stuff. Not owned
78 // by us. 79 // by us.
79 BlockedContentTabHelperDelegate* delegate_; 80 BlockedContentTabHelperDelegate* delegate_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(BlockedContentTabHelper); 82 DISALLOW_COPY_AND_ASSIGN(BlockedContentTabHelper);
82 }; 83 };
83 84
84 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_ 85 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698