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

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

Issue 6854035: Move blocked content from TabContents to TabContentsWrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 9 years, 8 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) 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_BROWSER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_
6 #define CHROME_BROWSER_UI_BROWSER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/gtest_prod_util.h" 16 #include "base/gtest_prod_util.h"
17 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
18 #include "base/string16.h" 18 #include "base/string16.h"
19 #include "base/task.h" 19 #include "base/task.h"
20 #include "chrome/browser/command_updater.h" 20 #include "chrome/browser/command_updater.h"
21 #include "chrome/browser/debugger/devtools_toggle_action.h" 21 #include "chrome/browser/debugger/devtools_toggle_action.h"
22 #include "chrome/browser/instant/instant_delegate.h" 22 #include "chrome/browser/instant/instant_delegate.h"
23 #include "chrome/browser/prefs/pref_member.h" 23 #include "chrome/browser/prefs/pref_member.h"
24 #include "chrome/browser/sessions/session_id.h" 24 #include "chrome/browser/sessions/session_id.h"
25 #include "chrome/browser/sessions/tab_restore_service_observer.h" 25 #include "chrome/browser/sessions/tab_restore_service_observer.h"
26 #include "chrome/browser/sync/profile_sync_service_observer.h" 26 #include "chrome/browser/sync/profile_sync_service_observer.h"
27 #include "chrome/browser/tabs/tab_handler.h" 27 #include "chrome/browser/tabs/tab_handler.h"
28 #include "chrome/browser/tabs/tab_strip_model_delegate.h" // TODO(beng): remove 28 #include "chrome/browser/tabs/tab_strip_model_delegate.h" // TODO(beng): remove
29 #include "chrome/browser/tabs/tab_strip_model_observer.h" // TODO(beng): remove 29 #include "chrome/browser/tabs/tab_strip_model_observer.h" // TODO(beng): remove
30 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate. h"
30 #include "chrome/browser/ui/browser_navigator.h" 31 #include "chrome/browser/ui/browser_navigator.h"
31 #include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h" 32 #include "chrome/browser/ui/search_engines/search_engine_tab_helper_delegate.h"
32 #include "chrome/browser/ui/shell_dialogs.h" 33 #include "chrome/browser/ui/shell_dialogs.h"
33 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h" 34 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h"
34 #include "chrome/browser/ui/toolbar/toolbar_model.h" 35 #include "chrome/browser/ui/toolbar/toolbar_model.h"
35 #include "chrome/common/extensions/extension_constants.h" 36 #include "chrome/common/extensions/extension_constants.h"
36 #include "content/browser/tab_contents/page_navigator.h" 37 #include "content/browser/tab_contents/page_navigator.h"
37 #include "content/browser/tab_contents/tab_contents_delegate.h" 38 #include "content/browser/tab_contents/tab_contents_delegate.h"
38 #include "content/common/notification_registrar.h" 39 #include "content/common/notification_registrar.h"
39 #include "content/common/page_transition_types.h" 40 #include "content/common/page_transition_types.h"
(...skipping 15 matching lines...) Expand all
55 class TabStripModel; 56 class TabStripModel;
56 struct WebApplicationInfo; 57 struct WebApplicationInfo;
57 namespace gfx { 58 namespace gfx {
58 class Point; 59 class Point;
59 } 60 }
60 61
61 class Browser : public TabHandlerDelegate, 62 class Browser : public TabHandlerDelegate,
62 public TabContentsDelegate, 63 public TabContentsDelegate,
63 public TabContentsWrapperDelegate, 64 public TabContentsWrapperDelegate,
64 public SearchEngineTabHelperDelegate, 65 public SearchEngineTabHelperDelegate,
66 public BlockedContentTabHelperDelegate,
65 public PageNavigator, 67 public PageNavigator,
66 public CommandUpdater::CommandUpdaterDelegate, 68 public CommandUpdater::CommandUpdaterDelegate,
67 public NotificationObserver, 69 public NotificationObserver,
68 public SelectFileDialog::Listener, 70 public SelectFileDialog::Listener,
69 public TabRestoreServiceObserver, 71 public TabRestoreServiceObserver,
70 public ProfileSyncServiceObserver, 72 public ProfileSyncServiceObserver,
71 public InstantDelegate { 73 public InstantDelegate {
72 public: 74 public:
73 // SessionService::WindowType mirrors these values. If you add to this 75 // SessionService::WindowType mirrors these values. If you add to this
74 // enum, look at SessionService::WindowType to see if it needs to be 76 // enum, look at SessionService::WindowType to see if it needs to be
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 const WebApplicationInfo& app_info) OVERRIDE; 828 const WebApplicationInfo& app_info) OVERRIDE;
827 829
828 // Overridden from SearchEngineTabHelperDelegate: 830 // Overridden from SearchEngineTabHelperDelegate:
829 virtual void ConfirmSetDefaultSearchProvider( 831 virtual void ConfirmSetDefaultSearchProvider(
830 TabContents* tab_contents, 832 TabContents* tab_contents,
831 TemplateURL* template_url, 833 TemplateURL* template_url,
832 TemplateURLModel* template_url_model) OVERRIDE; 834 TemplateURLModel* template_url_model) OVERRIDE;
833 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, 835 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url,
834 Profile* profile) OVERRIDE; 836 Profile* profile) OVERRIDE;
835 837
838 // Overridden from BlockedContentTabHelperDelegate:
839 virtual TabContentsWrapper* GetConstrainingContents(
840 TabContentsWrapper* source) OVERRIDE;
841
836 // Overridden from SelectFileDialog::Listener: 842 // Overridden from SelectFileDialog::Listener:
837 virtual void FileSelected(const FilePath& path, int index, void* params); 843 virtual void FileSelected(const FilePath& path, int index, void* params);
838 844
839 // Overridden from NotificationObserver: 845 // Overridden from NotificationObserver:
840 virtual void Observe(NotificationType type, 846 virtual void Observe(NotificationType type,
841 const NotificationSource& source, 847 const NotificationSource& source,
842 const NotificationDetails& details); 848 const NotificationDetails& details);
843 849
844 // Overridden from ProfileSyncServiceObserver: 850 // Overridden from ProfileSyncServiceObserver:
845 virtual void OnStateChanged(); 851 virtual void OnStateChanged();
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
1178 // Helper which implements the TabRestoreServiceDelegate interface. 1184 // Helper which implements the TabRestoreServiceDelegate interface.
1179 scoped_ptr<BrowserTabRestoreServiceDelegate> tab_restore_service_delegate_; 1185 scoped_ptr<BrowserTabRestoreServiceDelegate> tab_restore_service_delegate_;
1180 1186
1181 scoped_ptr<InstantController> instant_; 1187 scoped_ptr<InstantController> instant_;
1182 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; 1188 scoped_ptr<InstantUnloadHandler> instant_unload_handler_;
1183 1189
1184 DISALLOW_COPY_AND_ASSIGN(Browser); 1190 DISALLOW_COPY_AND_ASSIGN(Browser);
1185 }; 1191 };
1186 1192
1187 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1193 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698