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

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

Issue 9706012: Add abstractions that let embedders drive tests of WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove CONTENT_EXPORT on statically linked functions. Merge to head for commit. Created 8 years, 9 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) 2011 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 TabContents/ 7 // BlockedContentTabHelper. Users and subclasses of TabContents/
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 TabContents;
22 class TabContentsWrapper; 21 class TabContentsWrapper;
23 22
24 // Takes ownership of TabContents that are unrequested popup windows. 23 // Takes ownership of TabContents that are unrequested popup windows.
25 class BlockedContentContainer : public BlockedContentTabHelperDelegate, 24 class BlockedContentContainer : public BlockedContentTabHelperDelegate,
26 public content::WebContentsDelegate { 25 public content::WebContentsDelegate {
27 public: 26 public:
28 // Creates a container for a certain TabContents: 27 // Creates a container for a certain TabContents:
29 explicit BlockedContentContainer(TabContentsWrapper* owner); 28 explicit BlockedContentContainer(TabContentsWrapper* owner);
30 virtual ~BlockedContentContainer(); 29 virtual ~BlockedContentContainer();
31 30
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // The TabContents that owns and constrains this BlockedContentContainer. 93 // The TabContents that owns and constrains this BlockedContentContainer.
95 TabContentsWrapper* owner_; 94 TabContentsWrapper* owner_;
96 95
97 // Information about all blocked contents. 96 // Information about all blocked contents.
98 BlockedContents blocked_contents_; 97 BlockedContents blocked_contents_;
99 98
100 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedContentContainer); 99 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedContentContainer);
101 }; 100 };
102 101
103 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_CONTAINER_H_ 102 #endif // CHROME_BROWSER_UI_BLOCKED_CONTENT_BLOCKED_CONTENT_CONTAINER_H_
OLDNEW
« no previous file with comments | « chrome/browser/translate/translate_manager_browsertest.cc ('k') | chrome/browser/ui/browser_dialogs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698