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

Side by Side Diff: chrome/browser/ui/tab_contents/core_tab_helper.cc

Issue 8892011: Clean up TCW, make it solely a hub for 1:1 observer/helper objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" 5 #include "chrome/browser/ui/tab_contents/core_tab_helper.h"
6 6
7 #include "chrome/browser/prefs/pref_service.h" 7 #include "chrome/browser/prefs/pref_service.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/renderer_host/web_cache_manager.h" 9 #include "chrome/browser/renderer_host/web_cache_manager.h"
10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 10 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
11 #include "chrome/common/chrome_notification_types.h" 11 #include "chrome/common/chrome_notification_types.h"
12 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
13 #include "content/browser/renderer_host/render_view_host.h" 13 #include "content/browser/renderer_host/render_view_host.h"
14 #include "content/browser/tab_contents/tab_contents.h"
14 #include "content/public/browser/notification_service.h" 15 #include "content/public/browser/notification_service.h"
15 #include "grit/generated_resources.h" 16 #include "grit/generated_resources.h"
16 #include "ui/base/l10n/l10n_util.h" 17 #include "ui/base/l10n/l10n_util.h"
17 18
18 CoreTabHelper::CoreTabHelper(TabContentsWrapper* wrapper) 19 CoreTabHelper::CoreTabHelper(TabContentsWrapper* wrapper)
19 : TabContentsObserver(wrapper->tab_contents()), 20 : TabContentsObserver(wrapper->tab_contents()),
20 delegate_(NULL), 21 delegate_(NULL),
21 wrapper_(wrapper) { 22 wrapper_(wrapper) {
22 PrefService* prefs = wrapper_->profile()->GetPrefs(); 23 PrefService* prefs = wrapper_->profile()->GetPrefs();
23 if (prefs) { 24 if (prefs) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 tab_contents()->GetZoomLevel()); 106 tab_contents()->GetZoomLevel());
106 } else { 107 } else {
107 NOTREACHED() << "unexpected pref change notification" << *pref_name; 108 NOTREACHED() << "unexpected pref change notification" << *pref_name;
108 } 109 }
109 break; 110 break;
110 } 111 }
111 default: 112 default:
112 NOTREACHED(); 113 NOTREACHED();
113 } 114 }
114 } 115 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698