/external/chromium_org/content/public/common/ |
H A D | referrer.h | 15 // This struct holds a referrer URL, as well as the referrer policy to be 19 Referrer(const GURL& url, blink::WebReferrerPolicy policy) : url(url), argument 20 policy(policy) { 22 Referrer() : policy(blink::WebReferrerPolicyDefault) { 26 blink::WebReferrerPolicy policy; member in struct:content::Referrer 30 Referrer sanitized_referrer(referrer.url.GetAsReferrer(), referrer.policy); 38 switch (sanitized_referrer.policy) {
|
/external/chromium_org/chrome/browser/extensions/activity_log/ |
H A D | uma_policy_unittest.cc | 25 ActivityLogPolicy* policy = new UmaPolicy(profile_.get()); local 26 policy->Close(); 30 UmaPolicy* policy = new UmaPolicy(profile_.get()); local 34 ASSERT_EQ(UmaPolicy::NONE, policy->MatchActionToStatus(action)); 39 (1 << UmaPolicy::CONTENT_SCRIPT), policy->MatchActionToStatus(action)); 44 (1 << UmaPolicy::CONTENT_SCRIPT) & policy->MatchActionToStatus(action)); 46 (1 << UmaPolicy::CONTENT_SCRIPT), policy->MatchActionToStatus(action)); 52 ASSERT_TRUE((1 << UmaPolicy::READ_DOM) & policy->MatchActionToStatus(action)); 53 ASSERT_EQ((1 << UmaPolicy::READ_DOM), policy->MatchActionToStatus(action)); 58 (1 << UmaPolicy::MODIFIED_DOM) & policy 90 UmaPolicy* policy = new UmaPolicy(profile_.get()); local 130 UmaPolicy* policy = new UmaPolicy(profile_.get()); local [all...] |
H A D | counting_policy_unittest.cc | 79 ActivityLogDatabasePolicy* policy, 84 policy, extension_id, Action::ACTION_ANY, "", "", "", day, checker); 87 // A helper function to call ReadFilteredData on a policy object and wait for 90 ActivityLogDatabasePolicy* policy, 98 // Submit a request to the policy to read back some data, and call the 101 policy->ReadFilteredData( 128 static void CheckStringTableSizes(CountingPolicy* policy, argument 131 sql::Connection* db = policy->GetDatabaseConnection(); 145 static void CheckQueueSize(CountingPolicy* policy) { argument 148 ASSERT_LE(policy 78 CheckReadData( ActivityLogDatabasePolicy* policy, const std::string& extension_id, int day, const base::Callback<void(scoped_ptr<Action::ActionVector>)>& checker) argument 89 CheckReadFilteredData( ActivityLogDatabasePolicy* policy, const std::string& extension_id, const Action::ActionType type, const std::string& api_name, const std::string& page_url, const std::string& arg_url, int day, const base::Callback<void(scoped_ptr<Action::ActionVector>)>& checker) argument 411 CheckRemoveActions( ActivityLogDatabasePolicy* policy, const std::vector<int64>& action_ids, const base::Callback<void(scoped_ptr<Action::ActionVector>)>& checker) argument 539 ActivityLogDatabasePolicy* policy = new CountingPolicy(profile_.get()); local 560 ActivityLogDatabasePolicy* policy = new CountingPolicy(profile_.get()); local 589 CountingPolicy* policy = new CountingPolicy(profile_.get()); local 651 CountingPolicy* policy = new CountingPolicy(profile_.get()); local 706 ActivityLogDatabasePolicy* policy = new CountingPolicy(profile_.get()); local 806 CountingPolicy* policy = new CountingPolicy(profile_.get()); local 876 CountingPolicy* policy = new CountingPolicy(profile_.get()); local 931 CountingPolicy* policy = new CountingPolicy(profile_.get()); local 1007 CountingPolicy* policy = new CountingPolicy(profile_.get()); local 1026 CountingPolicy* policy = new CountingPolicy(profile_.get()); local 1055 ActivityLogDatabasePolicy* policy = new CountingPolicy(profile_.get()); local 1098 ActivityLogDatabasePolicy* policy = new CountingPolicy(profile_.get()); local 1175 CountingPolicy* policy = new CountingPolicy(profile_.get()); local 1234 CountingPolicy* policy = new CountingPolicy(profile_.get()); local 1339 CountingPolicy* policy = new CountingPolicy(profile_.get()); local 1378 ActivityLogDatabasePolicy* policy = new CountingPolicy(profile_.get()); local [all...] |
/external/chromium_org/chromeos/dbus/ |
H A D | power_policy_controller.cc | 94 const power_manager::PowerManagementPolicy& policy) { 96 if (policy.has_ac_delays()) 97 APPEND_DELAYS(str, policy.ac_delays(), "ac"); 98 if (policy.has_battery_delays()) 99 APPEND_DELAYS(str, policy.battery_delays(), "battery"); 100 if (policy.has_ac_idle_action()) 101 str += base::StringPrintf("ac_idle=%d ", policy.ac_idle_action()); 102 if (policy.has_battery_idle_action()) 103 str += base::StringPrintf("battery_idle=%d ", policy.battery_idle_action()); 104 if (policy 93 GetPolicyDebugString( const power_manager::PowerManagementPolicy& policy) argument 242 power_manager::PowerManagementPolicy policy = prefs_policy_; local [all...] |
/external/chromium_org/chrome/browser/net/ |
H A D | proxy_policy_handler_unittest.cc | 13 #include "components/policy/core/browser/configuration_policy_pref_store.h" 14 #include "components/policy/core/browser/configuration_policy_pref_store_test.h" 15 #include "components/policy/core/common/policy_service_impl.h" 16 #include "policy/policy_constants.h" 19 namespace policy { namespace 21 // Test cases for the proxy policy settings. 29 // Reset the PolicyServiceImpl to one that has the policy fixup 76 PolicyMap policy; local 77 policy.Set(key::kProxyBypassList, 82 policy 103 PolicyMap policy; local 130 PolicyMap policy; local 145 PolicyMap policy; local 157 PolicyMap policy; local 169 PolicyMap policy; local 184 PolicyMap policy; local 198 PolicyMap policy; local 217 PolicyMap policy; local 231 PolicyMap policy; local 255 PolicyMap policy; local 268 PolicyMap policy; local 281 PolicyMap policy; local 301 PolicyMap policy; local [all...] |
/external/chromium_org/chrome/browser/ui/webui/options/ |
H A D | certificate_manager_browsertest.cc | 8 #include "components/policy/core/browser/browser_policy_connector.h" 9 #include "components/policy/core/common/external_data_fetcher.h" 10 #include "components/policy/core/common/mock_configuration_policy_provider.h" 11 #include "components/policy/core/common/policy_map.h" 12 #include "components/policy/core/common/policy_types.h" 17 #include "policy/policy_constants.h" 22 #include "chrome/browser/chromeos/policy/device_policy_cros_browser_test.h" 39 // Setup the policy provider for injecting certs through ONC policy. 42 policy 49 policy::PolicyMap policy; local [all...] |
/external/chromium_org/components/policy/core/common/ |
H A D | policy_test_utils.h | 13 #include "components/policy/core/common/policy_details.h" 14 #include "components/policy/core/common/policy_map.h" 15 #include "components/policy/core/common/policy_service.h" 16 #include "components/policy/core/common/policy_types.h" 18 namespace policy { namespace 23 // A mapping of policy names to PolicyDetails that can be used to set the 34 void SetDetails(const std::string& policy, const PolicyDetails* details); 39 const PolicyDetails* Lookup(const std::string& policy) const; 58 } // namespace policy 60 std::ostream& operator<<(std::ostream& os, const policy [all...] |
H A D | policy_pref_names.h | 8 #include "components/policy/policy_export.h" 10 namespace policy { namespace 19 } // namespace policy
|
/external/chromium_org/components/policy/core/common/cloud/ |
H A D | cloud_policy_service.cc | 5 #include "components/policy/core/common/cloud/cloud_policy_service.h" 8 #include "policy/proto/device_management_backend.pb.h" 12 namespace policy { namespace 26 // Make sure we initialize |client_| from the policy data that might be 38 const em::PolicyData* policy = store_->policy(); local 39 if (policy) { 40 std::string username = policy->username(); 67 const em::PolicyFetchResponse* policy = client_->GetPolicyFor(policy_ns_key_); local 68 if (policy) { [all...] |
/external/chromium_org/tools/grit/grit/format/policy_templates/writers/ |
H A D | doc_writer.py | 22 '''Class for generating policy templates in HTML format. 108 def _AddDescription(self, parent, policy): 109 '''Adds a string containing the description of the policy. URLs are 115 policy: The data structure of a policy. 118 self._AddTextWithLinks(parent, policy['desc']) 120 if policy['type'] in ('string-enum', 'int-enum', 'string-enum-list'): 122 for item in policy['items']: 123 if policy['type'] == 'int-enum': 130 def _AddFeatures(self, parent, policy) [all...] |
H A D | doc_writer_unittest.py | 157 policy = { 164 'desc': '''This policy disables foo, except in case of bar. 165 See http://policy-explanation.example.com for more details. 168 self.writer._AddDescription(self.doc_root, policy) 171 '''<root>This policy disables foo, except in case of bar. 172 See <a href="http://policy-explanation.example.com">http://policy-explanation.example.com</a> for more details. 178 policy = { 185 'desc': '''This policy disables foo, except in case of bar. 186 See http://policy [all...] |
/external/chromium_org/chrome/browser/ui/webui/ |
H A D | policy_ui_browsertest.cc | 15 #include "components/policy/core/browser/browser_policy_connector.h" 16 #include "components/policy/core/common/external_data_fetcher.h" 17 #include "components/policy/core/common/mock_configuration_policy_provider.h" 18 #include "components/policy/core/common/policy_map.h" 19 #include "components/policy/core/common/policy_types.h" 20 #include "components/policy/core/common/schema.h" 24 #include "policy/policy_constants.h" 38 const policy::PolicyMap::Entry* metadata, 45 metadata->scope == policy::POLICY_SCOPE_MACHINE ? 54 metadata->level == policy 113 UpdateProviderPolicy(const policy::PolicyMap& policy) argument [all...] |
/external/chromium_org/chrome/browser/chromeos/login/enrollment/ |
H A D | auto_enrollment_controller.h | 15 #include "chrome/browser/chromeos/policy/auto_enrollment_client.h" 18 namespace policy { namespace 28 typedef base::CallbackList<void(policy::AutoEnrollmentState)> 70 policy::AutoEnrollmentState state() const { return state_; } 81 void UpdateState(policy::AutoEnrollmentState state); 83 policy::AutoEnrollmentState state_; 86 scoped_ptr<policy::AutoEnrollmentClient> client_;
|
/external/chromium_org/chrome/browser/prefs/ |
H A D | pref_service_syncable_factory.cc | 17 #include "components/policy/core/browser/browser_policy_connector.h" 18 #include "components/policy/core/browser/configuration_policy_pref_store.h" 19 #include "components/policy/core/common/policy_service.h" 20 #include "components/policy/core/common/policy_types.h" 31 policy::PolicyService* service) { 33 new policy::ConfigurationPolicyPrefStore( 36 policy::POLICY_LEVEL_MANDATORY)); 40 policy::PolicyService* service) { 42 new policy::ConfigurationPolicyPrefStore( 45 policy [all...] |
/external/chromium_org/chrome/browser/sync/ |
H A D | sync_policy_handler.cc | 9 #include "components/policy/core/common/policy_map.h" 11 #include "policy/policy_constants.h" 16 : policy::TypeCheckingPolicyHandler(policy::key::kSyncDisabled, 22 void SyncPolicyHandler::ApplyPolicySettings(const policy::PolicyMap& policies,
|
/external/chromium_org/third_party/WebKit/Source/core/frame/csp/ |
H A D | CSPDirective.h | 17 CSPDirective(const String& name, const String& value, ContentSecurityPolicy* policy) argument 20 , m_policy(policy) 27 ContentSecurityPolicy* policy() const { return m_policy; } function in class:blink::CSPDirective
|
/external/chromium_org/third_party/skia/src/utils/ |
H A D | SkThreadUtils_pthread_mach.cpp | 23 thread_affinity_policy_data_t policy; local 24 policy.affinity_tag = processor; 28 (thread_policy_t) &policy,
|
/external/skia/src/utils/ |
H A D | SkThreadUtils_pthread_mach.cpp | 23 thread_affinity_policy_data_t policy; local 24 policy.affinity_tag = processor; 28 (thread_policy_t) &policy,
|
/external/chromium_org/chrome/browser/chromeos/policy/ |
H A D | device_cloud_policy_validator.h | 8 #include "components/policy/core/common/cloud/cloud_policy_validator.h" 14 namespace policy { namespace 19 } // namespace policy
|
H A D | ticl_device_settings_provider.cc | 5 #include "chrome/browser/chromeos/policy/ticl_device_settings_provider.h" 10 namespace policy { namespace 23 } // namespace policy
|
/external/chromium_org/chrome/browser/policy/ |
H A D | configuration_policy_handler_list_factory.h | 10 namespace policy { namespace 19 } // namespace policy
|
H A D | policy_helpers.h | 10 namespace policy { namespace 12 // Returns true if |url| should never be blacklisted by policy. 15 } // namespace policy
|
/external/chromium_org/components/policy/core/browser/ |
H A D | autofill_policy_handler_unittest.cc | 8 #include "components/policy/core/browser/autofill_policy_handler.h" 9 #include "components/policy/core/common/policy_map.h" 10 #include "policy/policy_constants.h" 13 namespace policy { namespace 15 // Test cases for the Autofill policy setting. 19 PolicyMap policy; local 22 handler.ApplyPolicySettings(policy, &prefs); 27 PolicyMap policy; local 28 policy.Set(key::kAutoFillEnabled, 35 handler.ApplyPolicySettings(policy, 42 PolicyMap policy; local [all...] |
H A D | policy_error_map.h | 15 #include "components/policy/policy_export.h" 17 namespace policy { namespace 35 // Adds an entry with key |policy| and the error message corresponding to 37 void AddError(const std::string& policy, int message_id); 39 // Adds an entry with key |policy|, subkey |subkey|, and the error message 41 void AddError(const std::string& policy, 45 // Adds an entry with key |policy|, list index |index|, and the error message 47 void AddError(const std::string& policy, 51 // Adds an entry with key |policy| and the error message corresponding to 54 void AddError(const std::string& policy, [all...] |
/external/chromium_org/ui/shell_dialogs/ |
H A D | select_file_dialog_mac.h | 15 SelectFilePolicy* policy);
|