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

Unified Diff: chrome/browser/policy/configuration_policy_handler_chromeos.h

Issue 12189011: Split up chrome/browser/policy subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, add chrome/browser/chromeos/policy/OWNERS Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/configuration_policy_handler_chromeos.h
diff --git a/chrome/browser/policy/configuration_policy_handler_chromeos.h b/chrome/browser/policy/configuration_policy_handler_chromeos.h
deleted file mode 100644
index a965cd9b9381e1d436989885d4e9c900d1d9f28c..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/configuration_policy_handler_chromeos.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright (c) 2012 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_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_H_
-#define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_H_
-
-#include "chrome/browser/chromeos/cros/network_ui_data.h"
-#include "chrome/browser/policy/configuration_policy_handler.h"
-#include "chromeos/network/onc/onc_constants.h"
-
-namespace base {
-class DictionaryValue;
-class Value;
-}
-
-namespace policy {
-
-// ConfigurationPolicyHandler for validation of the network configuration
-// policies. These actually don't set any preferences, but the handler just
-// generates error messages.
-class NetworkConfigurationPolicyHandler : public TypeCheckingPolicyHandler {
- public:
- NetworkConfigurationPolicyHandler(
- const char* policy_name,
- chromeos::onc::ONCSource onc_source);
- virtual ~NetworkConfigurationPolicyHandler();
-
- // ConfigurationPolicyHandler methods:
- virtual bool CheckPolicySettings(const PolicyMap& policies,
- PolicyErrorMap* errors) OVERRIDE;
- virtual void ApplyPolicySettings(const PolicyMap& policies,
- PrefValueMap* prefs) OVERRIDE;
- virtual void PrepareForDisplaying(PolicyMap* policies) const OVERRIDE;
-
- private:
- // Takes network policy in Value representation and produces an output Value
- // that contains a pretty-printed and sanitized version. In particular, we
- // remove any Passphrases that may be contained in the JSON. Ownership of the
- // return value is transferred to the caller.
- static base::Value* SanitizeNetworkConfig(const base::Value* config);
-
- // Filters a network dictionary to remove all sensitive fields and replace
- // their values with placeholders.
- static void MaskSensitiveValues(base::DictionaryValue* network_dict);
-
- chromeos::onc::ONCSource onc_source_;
-
- DISALLOW_COPY_AND_ASSIGN(NetworkConfigurationPolicyHandler);
-};
-
-// Maps the PinnedLauncherApps policy to the corresponding pref.
-class PinnedLauncherAppsPolicyHandler : public ExtensionListPolicyHandler {
- public:
- PinnedLauncherAppsPolicyHandler();
- virtual ~PinnedLauncherAppsPolicyHandler();
-
- // ExtensionListPolicyHandler methods:
- virtual void ApplyPolicySettings(const PolicyMap& policies,
- PrefValueMap* prefs) OVERRIDE;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(PinnedLauncherAppsPolicyHandler);
-};
-
-} // namespace policy
-
-#endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_CHROMEOS_H_

Powered by Google App Engine
This is Rietveld 408576698