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

Side by Side Diff: chrome/browser/dom_ui/options/options_managed_banner_handler.h

Issue 3859003: FBTF: Even more ctor/virtual deinlining. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_DOM_UI_OPTIONS_OPTIONS_MANAGED_BANNER_HANDLER_H_ 5 #ifndef CHROME_BROWSER_DOM_UI_OPTIONS_OPTIONS_MANAGED_BANNER_HANDLER_H_
6 #define CHROME_BROWSER_DOM_UI_OPTIONS_OPTIONS_MANAGED_BANNER_HANDLER_H_ 6 #define CHROME_BROWSER_DOM_UI_OPTIONS_OPTIONS_MANAGED_BANNER_HANDLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h"
9 #include "chrome/browser/policy/managed_prefs_banner_base.h" 10 #include "chrome/browser/policy/managed_prefs_banner_base.h"
10 #include "chrome/browser/options_window.h" 11 #include "chrome/browser/options_window.h"
11 12
12 class DOMUI; 13 class DOMUI;
13 14
14 // Managed options banner handler. 15 // Managed options banner handler.
15 // Controls the display of a banner if an options panel contains options 16 // Controls the display of a banner if an options panel contains options
16 // that are under administator control. 17 // that are under administator control.
17 class OptionsManagedBannerHandler : public policy::ManagedPrefsBannerBase { 18 class OptionsManagedBannerHandler : public policy::ManagedPrefsBannerBase {
18 public: 19 public:
19 OptionsManagedBannerHandler(DOMUI* dom_ui, const string16& page_name, 20 OptionsManagedBannerHandler(DOMUI* dom_ui, const string16& page_name,
20 OptionsPage page); 21 OptionsPage page);
21 virtual ~OptionsManagedBannerHandler() { } 22 virtual ~OptionsManagedBannerHandler();
22 23
23 protected: 24 protected:
24 // ManagedPrefsBannerBase implementation. 25 // ManagedPrefsBannerBase implementation.
25 virtual void OnUpdateVisibility(); 26 virtual void OnUpdateVisibility();
26 27
27 private: 28 private:
28 // Set the managed options banner to be visible or invisible. 29 // Set the managed options banner to be visible or invisible.
29 void SetupBannerVisibilty(); 30 void SetupBannerVisibilty();
30 31
31 DOMUI* dom_ui_; // weak reference to the dom-ui. 32 DOMUI* dom_ui_; // weak reference to the dom-ui.
32 string16 page_name_; // current options page name. 33 string16 page_name_; // current options page name.
33 OptionsPage page_; // current options page value. 34 OptionsPage page_; // current options page value.
34 35
35 DISALLOW_COPY_AND_ASSIGN(OptionsManagedBannerHandler); 36 DISALLOW_COPY_AND_ASSIGN(OptionsManagedBannerHandler);
36 }; 37 };
37 38
38 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_OPTIONS_MANAGED_BANNER_HANDLER_H_ 39 #endif // CHROME_BROWSER_DOM_UI_OPTIONS_OPTIONS_MANAGED_BANNER_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698