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

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

Issue 8747015: Apply per-tab preference after RenderViewImpl creation. (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
« no previous file with comments | « chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.cc ('k') | no next file » | 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) 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 virtual void DidBecomeSelected() OVERRIDE; 229 virtual void DidBecomeSelected() OVERRIDE;
230 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 230 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
231 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE; 231 virtual void TabContentsDestroyed(TabContents* tab) OVERRIDE;
232 232
233 // content::NotificationObserver overrides: 233 // content::NotificationObserver overrides:
234 virtual void Observe(int type, 234 virtual void Observe(int type,
235 const content::NotificationSource& source, 235 const content::NotificationSource& source,
236 const content::NotificationDetails& details) OVERRIDE; 236 const content::NotificationDetails& details) OVERRIDE;
237 237
238 private: 238 private:
239 friend class PerTabPrefsTabHelper; // for UpdateWebPreferences
Avi (use Gerrit) 2011/11/30 15:15:18 This doesn't make me happy, but I'm not sure I hav
mnaganov (inactive) 2011/11/30 15:19:35 An alternative arrangement is to put a call to Upd
240
239 // Internal helpers ---------------------------------------------------------- 241 // Internal helpers ----------------------------------------------------------
240 242
241 // Message handlers. 243 // Message handlers.
242 void OnSnapshot(const SkBitmap& bitmap); 244 void OnSnapshot(const SkBitmap& bitmap);
243 void OnPDFHasUnsupportedFeature(); 245 void OnPDFHasUnsupportedFeature();
244 246
245 // Returns the server that can provide alternate error pages. If the returned 247 // Returns the server that can provide alternate error pages. If the returned
246 // URL is empty, the default error page built into WebKit will be used. 248 // URL is empty, the default error page built into WebKit will be used.
247 GURL GetAlternateErrorPageURL() const; 249 GURL GetAlternateErrorPageURL() const;
248 250
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 343
342 // The supporting objects need to outlive the TabContents dtor (as they may 344 // The supporting objects need to outlive the TabContents dtor (as they may
343 // be called upon during its execution). As a result, this must come last 345 // be called upon during its execution). As a result, this must come last
344 // in the list. 346 // in the list.
345 scoped_ptr<TabContents> tab_contents_; 347 scoped_ptr<TabContents> tab_contents_;
346 348
347 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper); 349 DISALLOW_COPY_AND_ASSIGN(TabContentsWrapper);
348 }; 350 };
349 351
350 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_ 352 #endif // CHROME_BROWSER_UI_TAB_CONTENTS_TAB_CONTENTS_WRAPPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/tab_contents/per_tab_prefs_tab_helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698