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

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

Issue 8603015: Get rid of a bunch of view_messages.h includes from chrome by making the TabContentsObserver inte... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux and try to fix mac again Created 9 years, 1 month 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) 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 #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 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/find_bar/find_bar_controller.h" 9 #include "chrome/browser/ui/find_bar/find_bar_controller.h"
10 #include "chrome/browser/ui/find_bar/find_notification_details.h" 10 #include "chrome/browser/ui/find_bar/find_notification_details.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 size_t GetBlockedContentsCount() const; 51 size_t GetBlockedContentsCount() const;
52 52
53 // Returns the blocked TabContentsWrappers. |blocked_contents| must 53 // Returns the blocked TabContentsWrappers. |blocked_contents| must
54 // be non-NULL. 54 // be non-NULL.
55 void GetBlockedContents( 55 void GetBlockedContents(
56 std::vector<TabContentsWrapper*>* blocked_contents) const; 56 std::vector<TabContentsWrapper*>* blocked_contents) const;
57 57
58 // TabContentsObserver overrides: 58 // TabContentsObserver overrides:
59 virtual void DidNavigateMainFrame( 59 virtual void DidNavigateMainFrame(
60 const content::LoadCommittedDetails& details, 60 const content::LoadCommittedDetails& details,
61 const ViewHostMsg_FrameNavigate_Params& params) OVERRIDE; 61 const content::FrameNavigateParams& params) OVERRIDE;
62 62
63 private: 63 private:
64 // Called when the blocked popup notification is shown or hidden. 64 // Called when the blocked popup notification is shown or hidden.
65 void PopupNotificationVisibilityChanged(bool visible); 65 void PopupNotificationVisibilityChanged(bool visible);
66 66
67 // Object that holds any blocked TabContents spawned from this TabContents. 67 // Object that holds any blocked TabContents spawned from this TabContents.
68 scoped_ptr<BlockedContentContainer> blocked_contents_; 68 scoped_ptr<BlockedContentContainer> blocked_contents_;
69 69
70 // Should we block all child TabContents this attempts to spawn. 70 // Should we block all child TabContents this attempts to spawn.
71 bool all_contents_blocked_; 71 bool all_contents_blocked_;
72 72
73 // Owning TabContentsWrapper. 73 // Owning TabContentsWrapper.
74 TabContentsWrapper* tab_contents_wrapper_; 74 TabContentsWrapper* tab_contents_wrapper_;
75 75
76 // Delegate for notifying our owner (usually Browser) about stuff. Not owned 76 // Delegate for notifying our owner (usually Browser) about stuff. Not owned
77 // by us. 77 // by us.
78 BlockedContentTabHelperDelegate* delegate_; 78 BlockedContentTabHelperDelegate* delegate_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(BlockedContentTabHelper); 80 DISALLOW_COPY_AND_ASSIGN(BlockedContentTabHelper);
81 }; 81 };
82 82
83 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_ 83 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/translate/translate_tab_helper.cc ('k') | chrome/browser/ui/blocked_content/blocked_content_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698