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

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

Issue 8879016: Add more per-tab preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CHECK -> DCHECK Created 8 years, 12 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_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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 WebIntentPickerController* web_intent_picker_controller() { 184 WebIntentPickerController* web_intent_picker_controller() {
185 return web_intent_picker_controller_.get(); 185 return web_intent_picker_controller_.get();
186 } 186 }
187 187
188 // Overrides ----------------------------------------------------------------- 188 // Overrides -----------------------------------------------------------------
189 189
190 // content::WebContentsObserver overrides: 190 // content::WebContentsObserver overrides:
191 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE; 191 virtual void WebContentsDestroyed(content::WebContents* tab) OVERRIDE;
192 192
193 private: 193 private:
194 FRIEND_TEST_ALL_PREFIXES( 194 friend class PrefsTabHelperTest;
195 PrefsTabHelperTest, OverridePrefsOnViewCreation);
196 195
197 // Used to retrieve this object from |tab_contents_|, which is placed in 196 // Used to retrieve this object from |tab_contents_|, which is placed in
198 // its property bag to avoid adding additional interfaces. 197 // its property bag to avoid adding additional interfaces.
199 static base::PropertyAccessor<TabContentsWrapper*>* property_accessor(); 198 static base::PropertyAccessor<TabContentsWrapper*>* property_accessor();
200 199
201 // Tab Helpers --------------------------------------------------------------- 200 // Tab Helpers ---------------------------------------------------------------
202 // (These provide API for callers and have a getter function listed in the 201 // (These provide API for callers and have a getter function listed in the
203 // "Tab Helpers" section in the member functions area, above.) 202 // "Tab Helpers" section in the member functions area, above.)
204 203
205 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_; 204 scoped_ptr<AutocompleteHistoryManager> autocomplete_history_manager_;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 266
268 // The supporting objects need to outlive the TabContents dtor (as they may 267 // The supporting objects need to outlive the TabContents dtor (as they may
269 // be called upon during its execution). As a result, this must come last 268 // be called upon during its execution). As a result, this must come last
270 // in the list. 269 // in the list.
271 scoped_ptr<TabContents> tab_contents_; 270 scoped_ptr<TabContents> tab_contents_;
272 271
273 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); 272 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper);
274 }; 273 };
275 274
276 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 275 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/prefs/prefs_tab_helper_unittest.cc ('k') | chrome/browser/ui/toolbar/encoding_menu_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698