OLD | NEW |
---|---|
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_WRAPPER_H_ | 5 #ifndef CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 6 #define CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
44 class RestoreTabHelper; | 44 class RestoreTabHelper; |
45 class SadTabObserver; | 45 class SadTabObserver; |
46 class SearchEngineTabHelper; | 46 class SearchEngineTabHelper; |
47 class SnapshotTabHelper; | 47 class SnapshotTabHelper; |
48 class TabContentsSSLHelper; | 48 class TabContentsSSLHelper; |
49 class TabSpecificContentSettings; | 49 class TabSpecificContentSettings; |
50 class ThumbnailGenerator; | 50 class ThumbnailGenerator; |
51 class TranslateTabHelper; | 51 class TranslateTabHelper; |
52 class WebIntentPickerController; | 52 class WebIntentPickerController; |
53 | 53 |
54 #if defined(ENABLE_ONE_CLICK_SIGNIN) | |
55 class OneClickSigninHelper; | |
56 #endif | |
57 | |
54 namespace browser_sync { | 58 namespace browser_sync { |
55 class SyncedTabDelegate; | 59 class SyncedTabDelegate; |
56 } | 60 } |
57 | 61 |
58 namespace prerender { | 62 namespace prerender { |
59 class PrerenderTabHelper; | 63 class PrerenderTabHelper; |
60 } | 64 } |
61 | 65 |
62 namespace printing { | 66 namespace printing { |
63 class PrintViewManager; | 67 class PrintViewManager; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
180 } | 184 } |
181 | 185 |
182 TranslateTabHelper* translate_tab_helper() { | 186 TranslateTabHelper* translate_tab_helper() { |
183 return translate_tab_helper_.get(); | 187 return translate_tab_helper_.get(); |
184 } | 188 } |
185 | 189 |
186 WebIntentPickerController* web_intent_picker_controller() { | 190 WebIntentPickerController* web_intent_picker_controller() { |
187 return web_intent_picker_controller_.get(); | 191 return web_intent_picker_controller_.get(); |
188 } | 192 } |
189 | 193 |
194 #if defined(ENABLE_ONE_CLICK_SIGNIN) | |
195 OneClickSigninHelper* one_click_signin_helper() { | |
196 return one_click_signin_helper_.get(); | |
197 } | |
198 #endif | |
Avi (use Gerrit)
2012/03/03 02:50:28
25 items are already in alphabetical order; let's
Roger Tawa OOO till Jul 10th
2012/03/03 03:45:27
Done. I did look to see if they were in alphabeti
| |
199 | |
190 // Overrides ----------------------------------------------------------------- | 200 // Overrides ----------------------------------------------------------------- |
191 | 201 |
192 // content::WebContentsObserver overrides: | 202 // content::WebContentsObserver overrides: |
193 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; | 203 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; |
194 | 204 |
195 private: | 205 private: |
196 friend class PrefsTabHelperTest; | 206 friend class PrefsTabHelperTest; |
197 | 207 |
198 // Used to retrieve this object from |web_contents_|, which is placed in | 208 // Used to retrieve this object from |web_contents_|, which is placed in |
199 // its property bag to avoid adding additional interfaces. | 209 // its property bag to avoid adding additional interfaces. |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
254 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; | 264 scoped_ptr<ExternalProtocolObserver> external_protocol_observer_; |
255 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; | 265 scoped_ptr<OmniboxSearchHint> omnibox_search_hint_; |
256 scoped_ptr<PDFTabObserver> pdf_tab_observer_; | 266 scoped_ptr<PDFTabObserver> pdf_tab_observer_; |
257 scoped_ptr<PluginObserver> plugin_observer_; | 267 scoped_ptr<PluginObserver> plugin_observer_; |
258 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; | 268 scoped_ptr<printing::PrintPreviewMessageHandler> print_preview_; |
259 scoped_ptr<SadTabObserver> sad_tab_observer_; | 269 scoped_ptr<SadTabObserver> sad_tab_observer_; |
260 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> | 270 scoped_ptr<safe_browsing::SafeBrowsingTabObserver> |
261 safe_browsing_tab_observer_; | 271 safe_browsing_tab_observer_; |
262 scoped_ptr<ThumbnailGenerator> thumbnail_generation_observer_; | 272 scoped_ptr<ThumbnailGenerator> thumbnail_generation_observer_; |
263 | 273 |
274 #if defined(ENABLE_ONE_CLICK_SIGNIN) | |
275 scoped_ptr<OneClickSigninHelper> one_click_signin_helper_; | |
276 #endif | |
Avi (use Gerrit)
2012/03/03 02:50:28
ditto
Roger Tawa OOO till Jul 10th
2012/03/03 03:45:27
ditto.
| |
277 | |
264 // TabContents (MUST BE LAST) ------------------------------------------------ | 278 // TabContents (MUST BE LAST) ------------------------------------------------ |
265 | 279 |
266 // If true, we're running the destructor. | 280 // If true, we're running the destructor. |
267 bool in_destructor_; | 281 bool in_destructor_; |
268 | 282 |
269 // The supporting objects need to outlive the WebContents dtor (as they may | 283 // The supporting objects need to outlive the WebContents dtor (as they may |
270 // be called upon during its execution). As a result, this must come last | 284 // be called upon during its execution). As a result, this must come last |
271 // in the list. | 285 // in the list. |
272 scoped_ptr<content::WebContents> web_contents_; | 286 scoped_ptr<content::WebContents> web_contents_; |
273 | 287 |
274 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 288 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
275 }; | 289 }; |
276 | 290 |
277 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 291 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
OLD | NEW |