Searched refs:policy (Results 126 - 150 of 1194) sorted by relevance

1234567891011>>

/external/chromium_org/components/policy/tools/
H A Dgenerate_policy_source.py11 template is the path to a .json policy template file.'''
28 """Parses a policy template and caches all its details."""
30 # Maps policy types to a tuple with 3 other types:
31 # - the equivalent base::Value::Type or 'TYPE_EXTERNAL' if the policy
34 # - the name of one of the protobufs for shared policy types
54 def __init__(self, policy, os, is_chromium_os):
55 self.id = policy['id']
56 self.name = policy['name']
57 features = policy.get('features', {})
60 self.is_deprecated = policy
[all...]
/external/chromium_org/chrome/browser/ui/search/
H A Dsearch_ipc_router_unittest.cc153 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
154 EXPECT_CALL(*policy, ShouldSendSetDisplayInstantResults()).Times(1)
212 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
213 EXPECT_CALL(*policy, ShouldProcessNavigateToURL(is_active_tab)).Times(0);
225 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
227 EXPECT_CALL(*(policy), ShouldProcessSetVoiceSearchSupport()).Times(1)
241 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
242 EXPECT_CALL(*policy, ShouldProcessSetVoiceSearchSupport()).Times(1)
255 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
261 EXPECT_CALL(*policy, ShouldProcessFocusOmnibo
274 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
320 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
341 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
355 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
370 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
385 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
404 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
423 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
438 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
454 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
470 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
486 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
502 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
518 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
533 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
548 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
610 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
635 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
647 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
658 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
703 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
716 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
730 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
744 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
756 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
768 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
781 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
794 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
806 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
818 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
832 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
846 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
858 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
870 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
882 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
894 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
906 MockSearchIPCRouterPolicy* policy = GetSearchIPCRouterPolicy(); local
[all...]
/external/chromium_org/chrome/browser/chromeos/policy/
H A Ddevice_cloud_policy_store_chromeos_unittest.cc5 #include "chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos.h"
15 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h"
16 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h"
24 #include "policy/policy_constants.h"
27 namespace policy { namespace
83 EXPECT_TRUE(store_->policy());
158 store_->Store(device_policy_.policy());
165 device_policy_.policy().clear_policy_data_signature();
166 store_->Store(device_policy_.policy());
175 device_policy_.policy()
[all...]
H A Ddevice_policy_decoder_chromeos.cc5 #include "chrome/browser/chromeos/policy/device_policy_decoder_chromeos.h"
15 #include "chrome/browser/chromeos/policy/device_local_account.h"
16 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h"
17 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h"
21 #include "components/policy/core/browser/browser_policy_connector.h"
22 #include "components/policy/core/common/external_data_fetcher.h"
23 #include "components/policy/core/common/policy_map.h"
24 #include "components/policy/core/common/schema.h"
25 #include "policy/policy_constants.h"
33 namespace policy { namespace
111 DecodeLoginPolicies(const em::ChromeDeviceSettingsProto& policy, PolicyMap* policies) argument
276 DecodeKioskPolicies(const em::ChromeDeviceSettingsProto& policy, PolicyMap* policies, EnterpriseInstallAttributes* install_attributes) argument
360 DecodeNetworkPolicies(const em::ChromeDeviceSettingsProto& policy, PolicyMap* policies, EnterpriseInstallAttributes* install_attributes) argument
416 DecodeReportingPolicies(const em::ChromeDeviceSettingsProto& policy, PolicyMap* policies) argument
470 DecodeAutoUpdatePolicies(const em::ChromeDeviceSettingsProto& policy, PolicyMap* policies) argument
574 DecodeAccessibilityPolicies(const em::ChromeDeviceSettingsProto& policy, PolicyMap* policies) argument
631 DecodeGenericPolicies(const em::ChromeDeviceSettingsProto& policy, PolicyMap* policies) argument
800 DecodeDevicePolicy(const em::ChromeDeviceSettingsProto& policy, PolicyMap* policies, EnterpriseInstallAttributes* install_attributes) argument
[all...]
H A Duser_policy_token_loader.cc5 #include "chrome/browser/chromeos/policy/user_policy_token_loader.h"
13 #include "components/policy/core/common/cloud/enterprise_metrics.h"
14 #include "policy/proto/device_management_local.pb.h"
16 namespace policy { namespace
53 UMA_HISTOGRAM_ENUMERATION(policy::kMetricToken,
55 policy::kMetricTokenSize);
57 UMA_HISTOGRAM_ENUMERATION(policy::kMetricToken,
59 policy::kMetricTokenSize);
78 } // namespace policy
H A Dpower_policy_browsertest.cc20 #include "chrome/browser/chromeos/policy/device_policy_builder.h"
21 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h"
22 #include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h"
23 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h"
24 #include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.h"
27 #include "chrome/browser/policy/profile_policy_connector.h"
28 #include "chrome/browser/policy/profile_policy_connector_factory.h"
39 #include "chromeos/dbus/power_manager/policy.pb.h"
42 #include "components/policy/core/common/cloud/cloud_policy_core.h"
43 #include "components/policy/cor
65 namespace policy { namespace
245 GetDebugString( const pm::PowerManagementPolicy& policy) argument
488 pm::PowerManagementPolicy policy = baseline_policy; local
[all...]
H A Dcloud_external_data_store.h12 #include "components/policy/core/common/cloud/cloud_external_data_manager.h"
18 namespace policy { namespace
22 // Stores external data referenced by policies. Data is keyed by (policy, hash),
23 // the name of the policy referencing it and its SHA1 hash. Outdated entries are
24 // removed by calling Prune() with the list of (policy, hash) entries that are
39 // Removes all entries from the store whose (policy, hash) pair is not found
43 // Stores |data| under (policy, hash). Returns true if the store succeeded.
44 bool Store(const std::string& policy,
48 // Loads the entry at (policy, hash) into |data|, verifies that it does not
50 // Returns false if no entry is found at (policy, has
[all...]
/external/chromium_org/chrome/browser/chromeos/login/enrollment/
H A Dauto_enrollment_controller.cc13 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
14 #include "chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos.h"
15 #include "chrome/browser/chromeos/policy/server_backed_state_keys_broker.h"
17 #include "components/policy/core/common/cloud/device_management_service.h"
42 if (int_value > policy::AutoEnrollmentClient::kMaximumPower) {
44 << policy::AutoEnrollmentClient::kMaximumPower << ". Using "
45 << policy::AutoEnrollmentClient::kMaximumPower;
46 return policy::AutoEnrollmentClient::kMaximumPower;
84 : state_(policy::AUTO_ENROLLMENT_STATE_IDLE),
107 UpdateState(policy
[all...]
/external/chromium_org/content/common/sandbox_linux/
H A Dsandbox_seccomp_bpf_linux.cc58 void StartSandboxWithPolicy(sandbox::SandboxBPFPolicy* policy);
112 // If a BPF policy is engaged for |process_type|, run a few sanity checks.
142 // This function takes ownership of |policy|.
143 void StartSandboxWithPolicy(sandbox::SandboxBPFPolicy* policy) { argument
145 // us to unload a sandbox policy after it has been started. Nonetheless,
150 sandbox.SetSandboxPolicy(policy);
177 scoped_ptr<SandboxBPFBasePolicy> policy; local
180 policy.reset(GetGpuProcessSandbox().release());
182 policy.reset(new RendererProcessPolicy);
184 policy
274 StartSandboxWithExternalPolicy( scoped_ptr<sandbox::bpf_dsl::SandboxBPFDSLPolicy> policy) argument
[all...]
/external/chromium_org/chrome/browser/chromeos/settings/
H A Ddevice_settings_provider.cc16 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
17 #include "chrome/browser/chromeos/policy/device_local_account.h"
18 #include "chrome/browser/chromeos/policy/enterprise_install_attributes.h"
27 #include "policy/proto/device_management_backend.pb.h"
92 const em::ChromeDeviceSettingsProto& policy,
101 if (policy.has_allow_new_users() &&
102 policy.allow_new_users().has_allow_new_users()) {
103 if (policy.allow_new_users().allow_new_users()) {
109 !policy.has_user_whitelist());
115 policy
91 DecodeLoginPolicies( const em::ChromeDeviceSettingsProto& policy, PrefValueMap* new_values_cache) argument
235 DecodeKioskPolicies( const em::ChromeDeviceSettingsProto& policy, PrefValueMap* new_values_cache) argument
298 DecodeNetworkPolicies( const em::ChromeDeviceSettingsProto& policy, PrefValueMap* new_values_cache) argument
309 DecodeAutoUpdatePolicies( const em::ChromeDeviceSettingsProto& policy, PrefValueMap* new_values_cache) argument
330 DecodeReportingPolicies( const em::ChromeDeviceSettingsProto& policy, PrefValueMap* new_values_cache) argument
364 DecodeGenericPolicies( const em::ChromeDeviceSettingsProto& policy, PrefValueMap* new_values_cache) argument
[all...]
/external/chromium_org/chrome/browser/ui/webui/
H A Dpolicy_ui.cc20 #include "chrome/browser/policy/profile_policy_connector.h"
21 #include "chrome/browser/policy/profile_policy_connector_factory.h"
22 #include "chrome/browser/policy/schema_registry_service.h"
23 #include "chrome/browser/policy/schema_registry_service_factory.h"
26 #include "components/policy/core/browser/browser_policy_connector.h"
27 #include "components/policy/core/browser/cloud/message_util.h"
28 #include "components/policy/core/browser/configuration_policy_handler_list.h"
29 #include "components/policy/core/browser/policy_error_map.h"
30 #include "components/policy/core/common/cloud/cloud_policy_client.h"
31 #include "components/policy/cor
174 const em::PolicyData* policy = store->policy(); local
[all...]
/external/chromium_org/chrome/browser/extensions/api/messaging/
H A Dnative_messaging_policy_handler.cc12 #include "components/policy/core/browser/policy_error_map.h"
13 #include "components/policy/core/common/policy_map.h"
15 #include "policy/policy_constants.h"
23 : policy::TypeCheckingPolicyHandler(policy_name, base::Value::TYPE_LIST),
30 const policy::PolicyMap& policies,
31 policy::PolicyErrorMap* errors) {
36 const policy::PolicyMap& policies,
39 policy::PolicyErrorMap errors;
49 const policy::PolicyMap& policies,
50 policy
[all...]
/external/chromium_org/third_party/WebKit/Source/core/frame/csp/
H A DMediaListDirective.cpp16 MediaListDirective::MediaListDirective(const String& name, const String& value, ContentSecurityPolicy* policy) argument
17 : CSPDirective(name, value, policy)
35 policy()->reportInvalidPluginTypes(String());
51 policy()->reportInvalidPluginTypes(String(begin, position - begin));
60 policy()->reportInvalidPluginTypes(String(begin, position - begin));
68 policy()->reportInvalidPluginTypes(String(begin, position - begin));
77 policy()->reportInvalidPluginTypes(String(begin, position - begin));
/external/chromium_org/third_party/libsrtp/srtp/test/
H A Drtpw.c161 srtp_policy_t policy; local
325 /* set up the srtp policy and master key */
328 * create policy structure, using the default mechanisms but
334 crypto_policy_set_rtp_default(&policy.rtp);
335 crypto_policy_set_rtcp_default(&policy.rtcp);
338 crypto_policy_set_aes_cm_128_null_auth(&policy.rtp);
339 crypto_policy_set_rtcp_default(&policy.rtcp);
342 crypto_policy_set_null_cipher_hmac_sha1_80(&policy.rtp);
343 crypto_policy_set_rtcp_default(&policy.rtcp);
349 policy
[all...]
H A Dsrtp_driver.c78 srtp_bits_per_second(int msg_len_octets, const srtp_policy_t *policy);
81 srtp_rejections_per_second(int msg_len_octets, const srtp_policy_t *policy);
84 srtp_do_timing(const srtp_policy_t *policy);
87 srtp_do_rejection_timing(const srtp_policy_t *policy);
90 srtp_test(const srtp_policy_t *policy);
93 srtcp_test(const srtp_policy_t *policy);
99 srtp_print_policy(const srtp_policy_t *policy);
122 * The policy_array is a null-terminated array of policy structs. it
227 const srtp_policy_t **policy = policy_array; local
230 /* loop over policy arra
317 const srtp_policy_t **policy = policy_array; local
328 const srtp_policy_t **policy = policy_array; local
339 srtp_policy_t policy; local
445 srtp_do_timing(const srtp_policy_t *policy) argument
467 srtp_do_rejection_timing(const srtp_policy_t *policy) argument
491 srtp_bits_per_second(int msg_len_octets, const srtp_policy_t *policy) argument
559 srtp_rejections_per_second(int msg_len_octets, const srtp_policy_t *policy) argument
614 srtp_test(const srtp_policy_t *policy) argument
820 srtcp_test(const srtp_policy_t *policy) argument
1096 srtp_print_policy(const srtp_policy_t *policy) argument
1224 srtp_policy_t policy; local
1332 srtp_policy_t policy; local
1447 srtp_policy_t *policy_list, policy; local
[all...]
/external/srtp/test/
H A Dsrtp_driver.c72 srtp_bits_per_second(int msg_len_octets, const srtp_policy_t *policy);
75 srtp_rejections_per_second(int msg_len_octets, const srtp_policy_t *policy);
78 srtp_do_timing(const srtp_policy_t *policy);
81 srtp_do_rejection_timing(const srtp_policy_t *policy);
84 srtp_test(const srtp_policy_t *policy);
87 srtcp_test(const srtp_policy_t *policy);
93 srtp_print_policy(const srtp_policy_t *policy);
116 * The policy_array is a null-terminated array of policy structs. it
221 const srtp_policy_t **policy = policy_array; local
224 /* loop over policy arra
293 const srtp_policy_t **policy = policy_array; local
304 const srtp_policy_t **policy = policy_array; local
315 srtp_policy_t policy; local
415 srtp_do_timing(const srtp_policy_t *policy) argument
437 srtp_do_rejection_timing(const srtp_policy_t *policy) argument
461 srtp_bits_per_second(int msg_len_octets, const srtp_policy_t *policy) argument
521 srtp_rejections_per_second(int msg_len_octets, const srtp_policy_t *policy) argument
570 srtp_test(const srtp_policy_t *policy) argument
769 srtcp_test(const srtp_policy_t *policy) argument
1041 srtp_print_policy(const srtp_policy_t *policy) argument
1175 srtp_policy_t policy; local
[all...]
/external/chromium_org/chrome/browser/policy/
H A Dmanaged_bookmarks_policy_handler_unittest.cc6 #include "chrome/browser/policy/managed_bookmarks_policy_handler.h"
8 #include "components/policy/core/browser/configuration_policy_pref_store.h"
9 #include "components/policy/core/browser/configuration_policy_pref_store_test.h"
10 #include "components/policy/core/common/policy_map.h"
11 #include "components/policy/core/common/schema.h"
12 #include "policy/policy_constants.h"
18 namespace policy { namespace
33 PolicyMap policy; local
34 policy.Set(key::kManagedBookmarks,
71 UpdateProviderPolicy(policy);
111 PolicyMap policy; local
131 PolicyMap policy; local
162 PolicyMap policy; local
[all...]
/external/chromium_org/tools/metrics/histograms/
H A Dupdate_policies.py5 """Updates EnterprisePolicies enum in histograms.xml file with policy
27 '../../../components/policy/resources/policy_templates.json')
44 policy_definitions: A list of policy definitions and groups, as in
46 policy_list: A list that has policy definitions appended to it.
48 for policy in policy_definitions:
49 if policy['type'] == 'group':
50 FlattenPolicies(policy['policies'], policy_list)
52 policy_list.append(policy)
75 values generated from policy ids contained in |policy_templates|.
78 policy_templates: A list of dictionaries, defining policies or policy
[all...]
/external/chromium_org/chrome/browser/
H A Dbrowser_process_platform_part_chromeos.cc15 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h"
84 policy::BrowserPolicyConnectorChromeOS*
86 return static_cast<policy::BrowserPolicyConnectorChromeOS*>(
94 scoped_ptr<policy::BrowserPolicyConnector>
96 return scoped_ptr<policy::BrowserPolicyConnector>(
97 new policy::BrowserPolicyConnectorChromeOS());
/external/chromium_org/components/policy/core/common/
H A Dpolicy_map.h14 #include "components/policy/core/common/external_data_fetcher.h"
15 #include "components/policy/core/common/policy_types.h"
16 #include "components/policy/policy_export.h"
18 namespace policy { namespace
20 // A mapping of policy names to policy values for a given policy namespace.
23 // Each policy maps to an Entry which keeps the policy value as well as other
24 // relevant data about the policy
[all...]
H A Dpolicy_test_utils.cc5 #include "components/policy/core/common/policy_test_utils.h"
16 #include "components/policy/core/common/policy_bundle.h"
24 namespace policy { namespace
34 void PolicyDetailsMap::SetDetails(const std::string& policy, argument
36 map_[policy] = details;
39 const PolicyDetails* PolicyDetailsMap::Lookup(const std::string& policy) const {
40 PolicyDetailsMapping::const_iterator it = map_.find(policy);
140 // because there's no equivalent JSON type, and policy values can only
149 } // namespace policy
152 const policy
[all...]
H A Dexternal_data_fetcher.cc5 #include "components/policy/core/common/external_data_fetcher.h"
8 #include "components/policy/core/common/external_data_manager.h"
10 namespace policy { namespace
14 const std::string& policy)
16 policy_(policy) {
45 } // namespace policy
12 ExternalDataFetcher( base::WeakPtr<ExternalDataManager> manager, const std::string& policy) argument
/external/chromium_org/third_party/WebKit/Source/core/dom/
H A DSandboxFlags.cpp35 SandboxFlags parseSandboxPolicy(const String& policy, String& invalidTokensErrorMessage) argument
40 unsigned length = policy.length();
45 while (start < length && isHTMLSpace<UChar>(policy[start]))
50 while (end < length && !isHTMLSpace<UChar>(policy[end]))
54 String sandboxToken = policy.substring(start, end - start);
/external/chromium_org/chrome/browser/chromeos/extensions/
H A Ddevice_local_account_management_policy_provider.cc82 policy::DeviceLocalAccount::Type account_type)
103 if (account_type_ == policy::DeviceLocalAccount::TYPE_PUBLIC_SESSION) {
120 } else if (account_type_ == policy::DeviceLocalAccount::TYPE_KIOSK_APP) {
/external/chromium_org/components/policy/core/browser/
H A Dconfiguration_policy_pref_store_test.cc5 #include "components/policy/core/browser/configuration_policy_pref_store_test.h"
12 #include "components/policy/core/browser/configuration_policy_handler_parameters.h"
13 #include "components/policy/core/browser/configuration_policy_pref_store.h"
14 #include "components/policy/core/common/policy_details.h"
15 #include "components/policy/core/common/policy_map.h"
16 #include "components/policy/core/common/policy_service_impl.h"
22 namespace policy { namespace
48 const PolicyMap& policy) {
49 provider_.UpdateChromePolicy(policy);
54 } // namespace policy
47 UpdateProviderPolicy( const PolicyMap& policy) argument
[all...]

Completed in 1083 milliseconds

1234567891011>>