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

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

Issue 10916309: [Android] Remove the dependency on TabContents. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove friend decl from TabContents 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
« no previous file with comments | « android_webview/lib/aw_browser_dependency_factory_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TAB_CONTENTS_TAB_CONTENTS_H_ 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 class WebIntentPickerCocoa; 69 class WebIntentPickerCocoa;
70 class WebIntentPickerController; 70 class WebIntentPickerController;
71 class WebIntentPickerGtk; 71 class WebIntentPickerGtk;
72 class WebUITestContentsCreator; 72 class WebUITestContentsCreator;
73 class ZoomController; 73 class ZoomController;
74 74
75 #if defined(ENABLE_ONE_CLICK_SIGNIN) 75 #if defined(ENABLE_ONE_CLICK_SIGNIN)
76 class OneClickSigninHelper; 76 class OneClickSigninHelper;
77 #endif 77 #endif
78 78
79 namespace android_webview {
80 class AwBrowserDependencyFactoryImpl;
81 }
82
83 namespace browser_sync { 79 namespace browser_sync {
84 class SyncedTabDelegate; 80 class SyncedTabDelegate;
85 } 81 }
86 82
87 namespace captive_portal { 83 namespace captive_portal {
88 class CaptivePortalTabHelper; 84 class CaptivePortalTabHelper;
89 } 85 }
90 86
91 namespace chrome { 87 namespace chrome {
92 namespace search { 88 namespace search {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // may makes sense to push down into WebContents and make configurable, or at 134 // may makes sense to push down into WebContents and make configurable, or at
139 // least to make easy for other WebContents hosts to include and support. 135 // least to make easy for other WebContents hosts to include and support.
140 class TabContents : public content::WebContentsObserver { 136 class TabContents : public content::WebContentsObserver {
141 public: 137 public:
142 class Factory { 138 class Factory {
143 private: 139 private:
144 // TabContents is going away <http://crbug.com/107201> so don't allow any 140 // TabContents is going away <http://crbug.com/107201> so don't allow any
145 // more code to construct instances. Explicitly befriend those who currently 141 // more code to construct instances. Explicitly befriend those who currently
146 // do so. 142 // do so.
147 143
148 friend class android_webview::AwBrowserDependencyFactoryImpl;
149 friend class BasePanelBrowserTest; 144 friend class BasePanelBrowserTest;
150 friend class Browser; 145 friend class Browser;
151 friend class BrowserCommandsTabContentsCreator; 146 friend class BrowserCommandsTabContentsCreator;
152 friend class BrowserLauncherItemControllerContentsCreator; 147 friend class BrowserLauncherItemControllerContentsCreator;
153 friend class BrowserTabstripTabContentsCreator; 148 friend class BrowserTabstripTabContentsCreator;
154 friend class chromeos::SimpleWebViewDialog; 149 friend class chromeos::SimpleWebViewDialog;
155 friend class chromeos::WebUILoginView; 150 friend class chromeos::WebUILoginView;
156 friend class ChromeWebContentsHandler; 151 friend class ChromeWebContentsHandler;
157 friend class ConstrainedWebDialogDelegateBase; 152 friend class ConstrainedWebDialogDelegateBase;
158 friend class extensions::WebAuthFlow; 153 friend class extensions::WebAuthFlow;
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 392
398 // The supporting objects need to outlive the WebContents dtor (as they may 393 // The supporting objects need to outlive the WebContents dtor (as they may
399 // be called upon during its execution). As a result, this must come last 394 // be called upon during its execution). As a result, this must come last
400 // in the list. 395 // in the list.
401 scoped_ptr<content::WebContents> web_contents_; 396 scoped_ptr<content::WebContents> web_contents_;
402 397
403 DISALLOW_COPY_AND_ASSIGN(TabContents); 398 DISALLOW_COPY_AND_ASSIGN(TabContents);
404 }; 399 };
405 400
406 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_ 401 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_H_
OLDNEW
« no previous file with comments | « android_webview/lib/aw_browser_dependency_factory_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698