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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 WebIntentPickerController* web_intent_picker_controller() { | 199 WebIntentPickerController* web_intent_picker_controller() { |
200 return web_intent_picker_controller_.get(); | 200 return web_intent_picker_controller_.get(); |
201 } | 201 } |
202 | 202 |
203 // Overrides ----------------------------------------------------------------- | 203 // Overrides ----------------------------------------------------------------- |
204 | 204 |
205 // content::WebContentsObserver overrides: | 205 // content::WebContentsObserver overrides: |
206 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; | 206 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; |
207 | 207 |
208 private: | 208 private: |
209 friend class PrefsTabHelperTest; | |
210 | |
211 // Used to retrieve this object from |web_contents_|, which is placed in | 209 // Used to retrieve this object from |web_contents_|, which is placed in |
212 // its property bag to avoid adding additional interfaces. | 210 // its property bag to avoid adding additional interfaces. |
213 static base::PropertyAccessor<TabContentsWrapper*>* property_accessor(); | 211 static base::PropertyAccessor<TabContentsWrapper*>* property_accessor(); |
214 | 212 |
215 // Tab Helpers --------------------------------------------------------------- | 213 // Tab Helpers --------------------------------------------------------------- |
216 // (These provide API for callers and have a getter function listed in the | 214 // (These provide API for callers and have a getter function listed in the |
217 // "Tab Helpers" section in the member functions area, above.) | 215 // "Tab Helpers" section in the member functions area, above.) |
218 | 216 |
219 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; | 217 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; |
220 scoped_refptr<AutofillManager> autofill_manager_; | 218 scoped_refptr<AutofillManager> autofill_manager_; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 | 281 |
284 // The supporting objects need to outlive the WebContents dtor (as they may | 282 // The supporting objects need to outlive the WebContents dtor (as they may |
285 // be called upon during its execution). As a result, this must come last | 283 // be called upon during its execution). As a result, this must come last |
286 // in the list. | 284 // in the list. |
287 scoped_ptr<content::WebContents> web_contents_; | 285 scoped_ptr<content::WebContents> web_contents_; |
288 | 286 |
289 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 287 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
290 }; | 288 }; |
291 | 289 |
292 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 290 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
OLD | NEW |