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

Unified Diff: chromeos/network/client_cert_resolver.h

Issue 421113002: Use correct slot id for client certs in network config. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/cert_loader_unittest.cc ('k') | chromeos/network/client_cert_resolver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/client_cert_resolver.h
diff --git a/chromeos/network/client_cert_resolver.h b/chromeos/network/client_cert_resolver.h
index 9e70a57a31c052c191e3daf2a55d7bdd81b7e5e4..b8ded781fae57a1aebe42a3da066fb3bd8242a0b 100644
--- a/chromeos/network/client_cert_resolver.h
+++ b/chromeos/network/client_cert_resolver.h
@@ -14,6 +14,7 @@
#include "base/memory/weak_ptr.h"
#include "chromeos/cert_loader.h"
#include "chromeos/chromeos_export.h"
+#include "chromeos/network/client_cert_util.h"
#include "chromeos/network/network_policy_observer.h"
#include "chromeos/network/network_state_handler.h"
#include "chromeos/network/network_state_handler_observer.h"
@@ -47,6 +48,15 @@ class CHROMEOS_EXPORT ClientCertResolver : public NetworkStateHandlerObserver,
void SetSlowTaskRunnerForTest(
const scoped_refptr<base::TaskRunner>& task_runner);
+ // Returns true and sets the Shill properties that have to be configured in
+ // |shill_properties| if the certificate pattern |pattern| could be resolved.
+ // Returns false otherwise and sets empty Shill properties to clear the
+ // certificate configuration.
+ static bool ResolveCertificatePatternSync(
+ const client_cert::ConfigType client_cert_type,
+ const CertificatePattern& pattern,
+ base::DictionaryValue* shill_properties);
+
private:
// NetworkStateHandlerObserver overrides
virtual void NetworkListChanged() OVERRIDE;
« no previous file with comments | « chromeos/cert_loader_unittest.cc ('k') | chromeos/network/client_cert_resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698