OLD | NEW |
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_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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 WebIntentPickerController* web_intent_picker_controller() { | 187 WebIntentPickerController* web_intent_picker_controller() { |
188 return web_intent_picker_controller_.get(); | 188 return web_intent_picker_controller_.get(); |
189 } | 189 } |
190 | 190 |
191 // Overrides ----------------------------------------------------------------- | 191 // Overrides ----------------------------------------------------------------- |
192 | 192 |
193 // TabContentsObserver overrides: | 193 // TabContentsObserver overrides: |
194 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; | 194 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; |
195 | 195 |
196 private: | 196 private: |
197 FRIEND_TEST_ALL_PREFIXES( | 197 friend class PrefsTabHelperTest; |
198 PrefsTabHelperTest, OverridePrefsOnViewCreation); | |
199 | 198 |
200 // Used to retrieve this object from |tab_contents_|, which is placed in | 199 // Used to retrieve this object from |tab_contents_|, which is placed in |
201 // its property bag to avoid adding additional interfaces. | 200 // its property bag to avoid adding additional interfaces. |
202 static base::PropertyAccessor<TabContentsWrapper*>* property_accessor(); | 201 static base::PropertyAccessor<TabContentsWrapper*>* property_accessor(); |
203 | 202 |
204 // Tab Helpers --------------------------------------------------------------- | 203 // Tab Helpers --------------------------------------------------------------- |
205 // (These provide API for callers and have a getter function listed in the | 204 // (These provide API for callers and have a getter function listed in the |
206 // "Tab Helpers" section in the member functions area, above.) | 205 // "Tab Helpers" section in the member functions area, above.) |
207 | 206 |
208 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; | 207 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 269 |
271 // The supporting objects need to outlive the TabContents dtor (as they may | 270 // The supporting objects need to outlive the TabContents dtor (as they may |
272 // be called upon during its execution). As a result, this must come last | 271 // be called upon during its execution). As a result, this must come last |
273 // in the list. | 272 // in the list. |
274 scoped_ptr<TabContents> tab_contents_; | 273 scoped_ptr<TabContents> tab_contents_; |
275 | 274 |
276 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); | 275 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); |
277 }; | 276 }; |
278 | 277 |
279 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ | 278 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ |
OLD | NEW |