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

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

Issue 9838050: Remove per-tab preference machinery. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: should be kWebKitGlobalJavascriptEnabled Created 8 years, 9 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
« no previous file with comments | « chrome/browser/ui/prefs/prefs_tab_helper_unittest.cc ('k') | chrome/chrome_tests.gypi » ('j') | 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_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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/prefs/prefs_tab_helper_unittest.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698