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

Unified Diff: chrome/browser/chromeos/network_settings/onc_utils.h

Issue 11299236: This moves the ONC parsing code into chromeos/network/onc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix unit tests Created 8 years 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/chromeos/network_settings/onc_utils.h
diff --git a/chrome/browser/chromeos/network_settings/onc_utils.h b/chrome/browser/chromeos/network_settings/onc_utils.h
deleted file mode 100644
index 1d98081168d8283138e6dea7c21fd5a5300ebb5c..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/network_settings/onc_utils.h
+++ /dev/null
@@ -1,38 +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_CHROMEOS_NETWORK_SETTINGS_ONC_UTILS_H_
-#define CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_UTILS_H_
-
-#include <string>
-
-#include "base/memory/scoped_ptr.h"
-
-namespace base {
-class DictionaryValue;
-}
-
-namespace chromeos {
-namespace onc {
-
-// Parses |json| according to the JSON format. If |json| is a JSON formatted
-// dictionary, the function returns the dictionary as a DictionaryValue and
-// doesn't modify |error|. Otherwise returns NULL and sets |error| to a
-// translated error message.
-scoped_ptr<base::DictionaryValue> ReadDictionaryFromJson(
- const std::string& json,
- std::string* error);
-
-// Decrypt the given EncryptedConfiguration |onc| (see the ONC specification)
-// using |passphrase|. The resulting UnencryptedConfiguration is returned and
-// |error| is not modified. If an error occurs, returns NULL and if additionally
-// |error| is not NULL, |error| is set to a user readable error message.
-scoped_ptr<base::DictionaryValue> Decrypt(const std::string& passphrase,
- const base::DictionaryValue& onc,
- std::string* error);
-
-} // chromeos
-} // onc
-
-#endif // CHROME_BROWSER_CHROMEOS_NETWORK_SETTINGS_ONC_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698