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

Side by Side Diff: chrome/browser/chromeos/platform_keys/platform_keys_service.h

Issue 1150373002: platformKeys: Add policy and corporate key tagging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@key_perm
Patch Set: Created 5 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHROMEOS_PLATFORM_KEYS_PLATFORM_KEYS_SERVICE_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_PLATFORM_KEYS_SERVICE_H_
6 #define CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_PLATFORM_KEYS_SERVICE_H_ 6 #define CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_PLATFORM_KEYS_SERVICE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback_forward.h" 12 #include "base/callback_forward.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/linked_ptr.h" 14 #include "base/memory/linked_ptr.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "chrome/browser/chromeos/platform_keys/key_permissions.h" 17 #include "chrome/browser/chromeos/platform_keys/key_permissions.h"
18 #include "chrome/browser/chromeos/platform_keys/platform_keys.h" 18 #include "chrome/browser/chromeos/platform_keys/platform_keys.h"
19 #include "components/keyed_service/core/keyed_service.h" 19 #include "components/keyed_service/core/keyed_service.h"
20 20
21 class PrefService;
22
21 namespace content { 23 namespace content {
22 class BrowserContext; 24 class BrowserContext;
23 class WebContents; 25 class WebContents;
24 } 26 }
25 27
26 namespace base { 28 namespace base {
27 class ListValue; 29 class ListValue;
28 class Value; 30 class Value;
29 } 31 }
30 32
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 content::WebContents* web_contents, 69 content::WebContents* web_contents,
68 content::BrowserContext* context) = 0; 70 content::BrowserContext* context) = 0;
69 71
70 private: 72 private:
71 DISALLOW_ASSIGN(SelectDelegate); 73 DISALLOW_ASSIGN(SelectDelegate);
72 }; 74 };
73 75
74 // Stores registration information in |state_store|, i.e. for each extension 76 // Stores registration information in |state_store|, i.e. for each extension
75 // the list of public keys that are valid to be used for signing. See 77 // the list of public keys that are valid to be used for signing. See
76 // |KeyPermissions| for details. 78 // |KeyPermissions| for details.
77 explicit PlatformKeysService(content::BrowserContext* browser_context, 79 explicit PlatformKeysService(PrefService* profile_prefs,
80 bool profile_is_managed,
81 policy::PolicyService* profile_policies,
82 content::BrowserContext* browser_context,
78 extensions::StateStore* state_store); 83 extensions::StateStore* state_store);
79 84
80 ~PlatformKeysService() override; 85 ~PlatformKeysService() override;
81 86
82 // Sets the delegate which will be used for interactive 87 // Sets the delegate which will be used for interactive
83 // SelectClientCertificates calls. 88 // SelectClientCertificates calls.
84 void SetSelectDelegate(scoped_ptr<SelectDelegate> delegate); 89 void SetSelectDelegate(scoped_ptr<SelectDelegate> delegate);
85 90
86 // If the generation was successful, |public_key_spki_der| will contain the 91 // If the generation was successful, |public_key_spki_der| will contain the
87 // DER encoding of the SubjectPublicKeyInfo of the generated key and 92 // DER encoding of the SubjectPublicKeyInfo of the generated key and
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 scoped_ptr<SelectDelegate> select_delegate_; 211 scoped_ptr<SelectDelegate> select_delegate_;
207 std::queue<linked_ptr<Task>> tasks_; 212 std::queue<linked_ptr<Task>> tasks_;
208 base::WeakPtrFactory<PlatformKeysService> weak_factory_; 213 base::WeakPtrFactory<PlatformKeysService> weak_factory_;
209 214
210 DISALLOW_COPY_AND_ASSIGN(PlatformKeysService); 215 DISALLOW_COPY_AND_ASSIGN(PlatformKeysService);
211 }; 216 };
212 217
213 } // namespace chromeos 218 } // namespace chromeos
214 219
215 #endif // CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_PLATFORM_KEYS_SERVICE_H_ 220 #endif // CHROME_BROWSER_CHROMEOS_PLATFORM_KEYS_PLATFORM_KEYS_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698