| Index: chrome/browser/dom_ui/core_options_handler.h
 | 
| ===================================================================
 | 
| --- chrome/browser/dom_ui/core_options_handler.h	(revision 0)
 | 
| +++ chrome/browser/dom_ui/core_options_handler.h	(revision 0)
 | 
| @@ -0,0 +1,53 @@
 | 
| +// Copyright (c) 2010 The Chromium Authors. All rights reserved.
 | 
| +// Use of this source code is governed by a BSD-style license that can be
 | 
| +// found in the LICENSE file.
 | 
| +
 | 
| +#ifndef CHROME_BROWSER_DOM_UI_CORE_OPTIONS_HANDLER_H_
 | 
| +#define CHROME_BROWSER_DOM_UI_CORE_OPTIONS_HANDLER_H_
 | 
| +
 | 
| +#include "base/values.h"
 | 
| +#include "chrome/browser/dom_ui/options_ui.h"
 | 
| +
 | 
| +// Core options UI handler.
 | 
| +// Handles resource and JS calls common to all options sub-pages.
 | 
| +class CoreOptionsHandler : public OptionsPageUIHandler {
 | 
| + public:
 | 
| +  CoreOptionsHandler();
 | 
| +
 | 
| +  // OptionsUIHandler implementation.
 | 
| +  virtual void GetLocalizedValues(DictionaryValue* localized_strings);
 | 
| +
 | 
| +  // NotificationObserver implementation.
 | 
| +  virtual void Observe(NotificationType type,
 | 
| +                       const NotificationSource& source,
 | 
| +                       const NotificationDetails& details);
 | 
| +
 | 
| +  // DOMMessageHandler implementation.
 | 
| +  virtual void RegisterMessages();
 | 
| +
 | 
| + private:
 | 
| +  // Callback for the "fetchPrefs" message. This message accepts the list of
 | 
| +  // preference names passed as |value| parameter (ListValue). It passes results
 | 
| +  // dictionary of preference values by calling prefsFetched() JS method on the
 | 
| +  // page.
 | 
| +  void HandleFetchPrefs(const Value* value);
 | 
| +
 | 
| +  // Callback for the "observePrefs" message. This message initiates
 | 
| +  // notification observing for given array of preference names.
 | 
| +  void HandleObservePefs(const Value* value);
 | 
| +
 | 
| +  // Callbacks for the "set<type>Pref" message. This message saves the new
 | 
| +  // preference value. The input value is an array of strings representing
 | 
| +  // name-value preference pair.
 | 
| +  void HandleSetBooleanPref(const Value* value);
 | 
| +  void HandleSetIntegerPref(const Value* value);
 | 
| +  void HandleSetStringPref(const Value* value);
 | 
| +
 | 
| +  void HandleSetPref(const Value* value, Value::ValueType type);
 | 
| +
 | 
| +  void NotifyPrefChanged(const std::wstring* pref_name);
 | 
| +
 | 
| +  DISALLOW_COPY_AND_ASSIGN(CoreOptionsHandler);
 | 
| +};
 | 
| +
 | 
| +#endif  // CHROME_BROWSER_DOM_UI_CORE_OPTIONS_HANDLER_H_
 | 
| 
 | 
| Property changes on: chrome/browser/dom_ui/core_options_handler.h
 | 
| ___________________________________________________________________
 | 
| Added: svn:eol-style
 | 
|    + LF
 | 
| 
 | 
| 
 |