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

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

Issue 10528002: TabContentsWrapper -> TabContents, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/ 7 // BlockedContentTabHelper. Users and subclasses of WebContents/
8 // TabContentsWrapper should use the appropriate methods on 8 // TabContentsWrapper should use the appropriate methods on
9 // BlockedContentTabHelper to access information about blocked content. 9 // BlockedContentTabHelper to access information about blocked content.
10 10
11 #ifndef CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_CONTAINER_H_ 11 #ifndef CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_CONTAINER_H_
12 #define CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_CONTAINER_H_ 12 #define CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_CONTAINER_H_
13 #pragma once 13 #pragma once
14 14
15 #include <vector> 15 #include <vector>
16 16
17 #include "base/compiler_specific.h" 17 #include "base/compiler_specific.h"
18 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate. h" 18 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate. h"
19 #include "content/public/browser/web_contents_delegate.h" 19 #include "content/public/browser/web_contents_delegate.h"
20 20
21 class TabContentsWrapper; 21 class TabContents;
22 typedef TabContents TabContentsWrapper;
22 23
23 // Takes ownership of TabContentsWrappers that are unrequested popup windows. 24 // Takes ownership of TabContentsWrappers that are unrequested popup windows.
24 class BlockedContentContainer : public BlockedContentTabHelperDelegate, 25 class BlockedContentContainer : public BlockedContentTabHelperDelegate,
25 public content::WebContentsDelegate { 26 public content::WebContentsDelegate {
26 public: 27 public:
27 // Creates a container for a certain TabContentsWrapper: 28 // Creates a container for a certain TabContentsWrapper:
28 explicit BlockedContentContainer(TabContentsWrapper* owner); 29 explicit BlockedContentContainer(TabContentsWrapper* owner);
29 virtual ~BlockedContentContainer(); 30 virtual ~BlockedContentContainer();
30 31
31 // Adds a TabContentsWrapper to this container. |bounds| are the window bounds 32 // Adds a TabContentsWrapper to this container. |bounds| are the window bounds
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // BlockedContentContainer. 95 // BlockedContentContainer.
95 TabContentsWrapper* owner_; 96 TabContentsWrapper* owner_;
96 97
97 // Information about all blocked contents. 98 // Information about all blocked contents.
98 BlockedContents blocked_contents_; 99 BlockedContents blocked_contents_;
99 100
100 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedContentContainer); 101 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedContentContainer);
101 }; 102 };
102 103
103 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_CONTAINER_H_ 104 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_CONTAINER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698