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

Side by Side Diff: chrome/browser/ui/webui/options/browser_options_handler.h

Issue 7342009: Show a different banner in chrome://settings for extension-controlled settings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 5 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_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h" 9 #include "chrome/browser/autocomplete/autocomplete_controller_delegate.h"
10 #include "chrome/browser/prefs/pref_change_registrar.h" 10 #include "chrome/browser/prefs/pref_change_registrar.h"
11 #include "chrome/browser/prefs/pref_member.h" 11 #include "chrome/browser/prefs/pref_member.h"
12 #include "chrome/browser/search_engines/template_url_service_observer.h" 12 #include "chrome/browser/search_engines/template_url_service_observer.h"
13 #include "chrome/browser/shell_integration.h" 13 #include "chrome/browser/shell_integration.h"
14 #include "chrome/browser/ui/webui/options/options_ui.h" 14 #include "chrome/browser/ui/webui/options/options_ui.h"
15 #include "ui/base/models/table_model_observer.h" 15 #include "ui/base/models/table_model_observer.h"
16 16
17 class AutocompleteController; 17 class AutocompleteController;
18 class CustomHomePagesTableModel; 18 class CustomHomePagesTableModel;
19 class OptionsManagedBannerHandler;
20 class TemplateURLService; 19 class TemplateURLService;
21 20
22 // Chrome browser options page UI handler. 21 // Chrome browser options page UI handler.
23 class BrowserOptionsHandler : public OptionsPageUIHandler, 22 class BrowserOptionsHandler : public OptionsPageUIHandler,
24 public AutocompleteControllerDelegate, 23 public AutocompleteControllerDelegate,
25 public ShellIntegration::DefaultWebClientObserver, 24 public ShellIntegration::DefaultWebClientObserver,
26 public TemplateURLServiceObserver, 25 public TemplateURLServiceObserver,
27 public ui::TableModelObserver { 26 public ui::TableModelObserver {
28 public: 27 public:
29 BrowserOptionsHandler(); 28 BrowserOptionsHandler();
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Used to observe updates to the preference of the list of URLs to load 118 // Used to observe updates to the preference of the list of URLs to load
120 // on startup, which can be updated via sync. 119 // on startup, which can be updated via sync.
121 PrefChangeRegistrar pref_change_registrar_; 120 PrefChangeRegistrar pref_change_registrar_;
122 121
123 TemplateURLService* template_url_service_; // Weak. 122 TemplateURLService* template_url_service_; // Weak.
124 123
125 // TODO(stuartmorgan): Once there are no other clients of 124 // TODO(stuartmorgan): Once there are no other clients of
126 // CustomHomePagesTableModel, consider changing it to something more like 125 // CustomHomePagesTableModel, consider changing it to something more like
127 // TemplateURLService. 126 // TemplateURLService.
128 scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_; 127 scoped_ptr<CustomHomePagesTableModel> startup_custom_pages_table_model_;
129 scoped_ptr<OptionsManagedBannerHandler> banner_handler_;
130 128
131 scoped_ptr<AutocompleteController> autocomplete_controller_; 129 scoped_ptr<AutocompleteController> autocomplete_controller_;
132 130
133 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler); 131 DISALLOW_COPY_AND_ASSIGN(BrowserOptionsHandler);
134 }; 132 };
135 133
136 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_ 134 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_BROWSER_OPTIONS_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698