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

Side by Side Diff: chrome/browser/ui/alternate_error_tab_observer.h

Issue 10828345: Extract PrefServiceBase into chrome/browser/api. Use in api and autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 4 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) 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_ALTERNATE_ERROR_TAB_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_UI_ALTERNATE_ERROR_TAB_OBSERVER_H_
6 #define CHROME_BROWSER_UI_ALTERNATE_ERROR_TAB_OBSERVER_H_ 6 #define CHROME_BROWSER_UI_ALTERNATE_ERROR_TAB_OBSERVER_H_
7 7
8 #include "chrome/browser/api/prefs/pref_change_registrar.h" 8 #include "chrome/browser/api/prefs/pref_change_registrar.h"
9 #include "chrome/browser/prefs/pref_service.h"
9 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h" 11 #include "content/public/browser/notification_registrar.h"
11 #include "content/public/browser/web_contents_observer.h" 12 #include "content/public/browser/web_contents_observer.h"
12 13
13 class Profile; 14 class Profile;
14 15
15 // Per-tab class to implement alternate error page functionality. 16 // Per-tab class to implement alternate error page functionality.
16 class AlternateErrorPageTabObserver : public content::WebContentsObserver, 17 class AlternateErrorPageTabObserver : public content::WebContentsObserver,
17 public content::NotificationObserver { 18 public content::NotificationObserver {
18 public: 19 public:
(...skipping 23 matching lines...) Expand all
42 void UpdateAlternateErrorPageURL(content::RenderViewHost* rvh); 43 void UpdateAlternateErrorPageURL(content::RenderViewHost* rvh);
43 44
44 Profile* profile_; 45 Profile* profile_;
45 content::NotificationRegistrar registrar_; 46 content::NotificationRegistrar registrar_;
46 PrefChangeRegistrar pref_change_registrar_; 47 PrefChangeRegistrar pref_change_registrar_;
47 48
48 DISALLOW_COPY_AND_ASSIGN(AlternateErrorPageTabObserver); 49 DISALLOW_COPY_AND_ASSIGN(AlternateErrorPageTabObserver);
49 }; 50 };
50 51
51 #endif // CHROME_BROWSER_UI_ALTERNATE_ERROR_TAB_OBSERVER_H_ 52 #endif // CHROME_BROWSER_UI_ALTERNATE_ERROR_TAB_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_host.cc ('k') | chrome/browser/ui/browser_instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698