/external/chromium_org/chrome/browser/chromeos/fileapi/ |
D | file_access_permissions_unittest.cc | 20 FileAccessPermissions permissions; in TEST() local 22 EXPECT_FALSE(permissions.HasAccessPermission(extension1, good_dir)); in TEST() 23 EXPECT_FALSE(permissions.HasAccessPermission(extension1, good_file)); in TEST() 24 EXPECT_FALSE(permissions.HasAccessPermission(extension1, bad_file)); in TEST() 25 EXPECT_FALSE(permissions.HasAccessPermission(extension2, good_dir)); in TEST() 26 EXPECT_FALSE(permissions.HasAccessPermission(extension2, good_file)); in TEST() 27 EXPECT_FALSE(permissions.HasAccessPermission(extension2, bad_file)); in TEST() 31 permissions.GrantAccessPermission(extension1, good_file); in TEST() 32 EXPECT_FALSE(permissions.HasAccessPermission(extension1, good_dir)); in TEST() 33 EXPECT_TRUE(permissions.HasAccessPermission(extension1, good_file)); in TEST() [all …]
|
/external/chromium_org/base/debug/ |
D | proc_maps_linux.cc | 110 char permissions[5] = {'\0'}; // Ensure NUL-terminated string. in ParseProcMaps() local 125 ®ion.start, ®ion.end, permissions, ®ion.offset, in ParseProcMaps() 130 region.permissions = 0; in ParseProcMaps() 132 if (permissions[0] == 'r') in ParseProcMaps() 133 region.permissions |= MappedMemoryRegion::READ; in ParseProcMaps() 134 else if (permissions[0] != '-') in ParseProcMaps() 137 if (permissions[1] == 'w') in ParseProcMaps() 138 region.permissions |= MappedMemoryRegion::WRITE; in ParseProcMaps() 139 else if (permissions[1] != '-') in ParseProcMaps() 142 if (permissions[2] == 'x') in ParseProcMaps() [all …]
|
/external/chromium_org/chrome/renderer/resources/extensions/ |
D | permissions_custom_bindings.js | 21 var permissions = api.compiledApi; 37 var args = arguments[0].permissions; 48 arguments[0].permissions[i] = keys[0] + '|' + 67 for (var i = 0; i < response.permissions.length; i += 1) { 68 response.permissions[i] = 69 maybeConvertToObject(response.permissions[i]); 88 permissions.onAdded.dispatchToListener = function(callback, args) { 89 for (var i = 0; i < args[0].permissions.length; i += 1) { 90 args[0].permissions[i] = maybeConvertToObject(args[0].permissions[i]); 94 permissions.onRemoved.dispatchToListener = [all …]
|
/external/chromium_org/chrome/browser/extensions/api/permissions/ |
D | permissions_api_helpers.cc | 24 using api::permissions::Permissions; 43 Permissions* permissions(new Permissions()); in PackPermissionSet() local 45 permissions->permissions.reset(new std::vector<std::string>()); in PackPermissionSet() 50 permissions->permissions->push_back(i->name()); in PackPermissionSet() 55 permissions->permissions->push_back(name + kDelimiter + json); in PackPermissionSet() 62 permissions->origins.reset(new std::vector<std::string>()); in PackPermissionSet() 65 permissions->origins->push_back(i->GetAsString()); in PackPermissionSet() 67 return scoped_ptr<Permissions>(permissions); in PackPermissionSet() 71 const Permissions& permissions, in UnpackPermissionSet() argument 75 std::vector<std::string>* permissions_list = permissions.permissions.get(); in UnpackPermissionSet() [all …]
|
D | permissions_api.cc | 24 using api::permissions::Permissions; 26 namespace Contains = api::permissions::Contains; 27 namespace GetAll = api::permissions::GetAll; 28 namespace Remove = api::permissions::Remove; 29 namespace Request = api::permissions::Request; 57 scoped_refptr<PermissionSet> permissions = helpers::UnpackPermissionSet( in RunImpl() local 58 params->permissions, in RunImpl() 61 if (!permissions.get()) in RunImpl() 65 GetExtension()->GetActivePermissions()->Contains(*permissions.get())); in RunImpl() 70 scoped_ptr<Permissions> permissions = in RunImpl() local [all …]
|
D | permissions_api_helpers_unittest.cc | 14 using extensions::api::permissions::Permissions; 43 scoped_ptr<Permissions> permissions(PackPermissionSet(permission_set.get())); in TEST() local 44 scoped_ptr<base::DictionaryValue> value(permissions->ToValue()); in TEST() 86 scoped_refptr<PermissionSet> permissions; in TEST() local 94 permissions = UnpackPermissionSet(permissions_object, true, &error); in TEST() 95 EXPECT_TRUE(permissions->HasAPIPermission(APIPermission::kTab)); in TEST() 96 EXPECT_TRUE(permissions.get()); in TEST() 106 permissions = UnpackPermissionSet(permissions_object, true, &error); in TEST() 107 EXPECT_TRUE(permissions.get()); in TEST() 109 EXPECT_TRUE(permissions->HasExplicitAccessToOrigin(GURL("http://a.com/"))); in TEST() [all …]
|
D | permissions_api_helpers.h | 21 namespace permissions { 29 scoped_ptr<api::permissions::Permissions> PackPermissionSet( 35 const api::permissions::Permissions& permissions,
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/ |
D | SFTPv3FileAttributes.java | 65 public Integer permissions = null; field in SFTPv3FileAttributes 87 if (permissions == null) in isDirectory() 90 return ((permissions.intValue() & 0040000) == 0040000); in isDirectory() 101 if (permissions == null) in isRegularFile() 104 return ((permissions.intValue() & 0100000) == 0100000); in isRegularFile() 115 if (permissions == null) in isSymlink() 118 return ((permissions.intValue() & 0120000) == 0120000); in isSymlink() 129 if (permissions == null) in getOctalPermissions() 132 String res = Integer.toString(permissions.intValue() & 0177777, 8); in getOctalPermissions()
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/permissions/extension-questions/ |
D | options.js | 10 chrome.permissions.onAdded.addListener(function(permissions) { argument 13 chrome.permissions.onRemoved.addListener(function(permissions) { argument 16 chrome.permissions.contains(PERMISSIONS, function(contains) { 21 chrome.permissions.contains(PERMISSIONS, function(allowed) { 25 chrome.permissions.request(PERMISSIONS, function(result) { 36 chrome.permissions.contains(PERMISSIONS, function(allowed) { 38 chrome.permissions.remove(PERMISSIONS, function(result) {
|
/external/chromium_org/chrome/browser/extensions/ |
D | permissions_updater.cc | 30 namespace permissions = api::permissions; 38 const Extension* extension, const PermissionSet* permissions) { in AddPermissions() argument 42 PermissionSet::CreateUnion(existing.get(), permissions)); in AddPermissions() 55 const Extension* extension, const PermissionSet* permissions) { in RemovePermissions() argument 59 PermissionSet::CreateDifference(existing.get(), permissions)); in RemovePermissions() 85 const Extension* extension, const PermissionSet* permissions) { in UpdateActivePermissions() argument 87 extension->id(), permissions); in UpdateActivePermissions() 88 PermissionsData::SetActivePermissions(extension, permissions); in UpdateActivePermissions() 100 scoped_ptr<api::permissions::Permissions> permissions = in DispatchEvent() local 102 value->Append(permissions->ToValue().release()); in DispatchEvent() [all …]
|
/external/chromium_org/chrome/common/extensions/permissions/ |
D | chrome_permission_message_provider.cc | 26 const PermissionSet* permissions, in GetPermissionMessages() argument 30 if (permissions->HasEffectiveFullAccess()) { in GetPermissionMessages() 38 GetHostPermissionMessages(permissions, extension_type); in GetPermissionMessages() 39 std::set<PermissionMessage> api_msgs = GetAPIPermissionMessages(permissions); in GetPermissionMessages() 41 GetManifestPermissionMessages(permissions); in GetPermissionMessages() 52 const PermissionSet* permissions, in GetWarningMessages() argument 56 GetPermissionMessages(permissions, extension_type); in GetWarningMessages() 123 const PermissionSet* permissions, in GetWarningMessagesDetails() argument 127 GetPermissionMessages(permissions, extension_type); in GetWarningMessagesDetails() 163 const PermissionSet* permissions) const { in GetAPIPermissionMessages() [all …]
|
D | chrome_permission_message_provider.h | 24 const PermissionSet* permissions, 27 const PermissionSet* permissions, 30 const PermissionSet* permissions, 40 const PermissionSet* permissions) const; 44 const PermissionSet* permissions) const; 48 const PermissionSet* permissions,
|
D | permission_set_unittest.cc | 127 scoped_refptr<const PermissionSet> permissions; in TEST() local 130 permissions = extension->GetActivePermissions(); in TEST() 135 permissions->HasEffectiveAccessToURL(GURL("http://www.google.com"))); in TEST() 136 EXPECT_FALSE(permissions->HasEffectiveAccessToAllHosts()); in TEST() 139 permissions = extension->GetActivePermissions(); in TEST() 140 EXPECT_TRUE(permissions->HasEffectiveAccessToURL( in TEST() 142 EXPECT_FALSE(permissions->HasEffectiveAccessToURL( in TEST() 144 EXPECT_FALSE(permissions->HasEffectiveAccessToAllHosts()); in TEST() 148 permissions = extension->GetActivePermissions(); in TEST() 149 EXPECT_TRUE(permissions->HasEffectiveAccessToURL(GURL("http://google.com"))); in TEST() [all …]
|
/external/chromium_org/extensions/ |
D | extensions.gyp | 91 'common/permissions/api_permission.cc', 92 'common/permissions/api_permission.h', 93 'common/permissions/api_permission_set.cc', 94 'common/permissions/api_permission_set.h', 95 'common/permissions/base_set_operators.h', 96 'common/permissions/manifest_permission.cc', 97 'common/permissions/manifest_permission.h', 98 'common/permissions/manifest_permission_set.cc', 99 'common/permissions/manifest_permission_set.h', 100 'common/permissions/permission_message.cc', [all …]
|
/external/qemu/distrib/sdl-1.2.15/ |
D | SDL.qpg.in | 27 …<QPG:Add permissions="0755" file="./src/.libs/libSDL-@SDL_MAJOR_VERSION@.@SDL_MINOR_VERSION@.so.@L… 29 <QPG:Add permissions="0644" file="./src/.libs/libSDL.a" install="/usr/lib/"/> 30 <QPG:Add permissions="0644" file="./src/.libs/libSDL.lai" install="/usr/lib/libSDL.la"/> 31 <QPG:Add permissions="0644" file="./src/.libs/libSDLmain.a" install="/usr/lib/"/> 32 … <QPG:Add permissions="0644" file="./src/.libs/libSDLmain.lai" install="/usr/lib/libSDLmain.lai"/> 33 <QPG:Add permissions="0644" file="./include/*.h" install="/usr/include/SDL/"/> 34 <QPG:Add permissions="0755" file="./sdl-config" install="/usr/bin/"/> 35 <QPG:Add permissions="0644" file="./BUGS" install="/usr/share/doc/SDL12/"/> 36 <QPG:Add permissions="0644" file="./COPYING" install="/usr/share/doc/SDL12/"/> 37 <QPG:Add permissions="0644" file="./CREDITS" install="/usr/share/doc/SDL12/"/> [all …]
|
/external/chromium_org/extensions/common/permissions/ |
D | permissions_info.cc | 40 APIPermissionSet permissions; in GetAll() local 42 permissions.insert(i->second->id()); in GetAll() 43 return permissions; in GetAll() 48 APIPermissionSet permissions; in GetAllByName() local 53 permissions.insert(permission_info->id()); in GetAllByName() 55 return permissions; in GetAllByName() 73 std::vector<APIPermissionInfo*> permissions = provider.GetAllPermissions(); in InitializeWithProvider() local 77 for (size_t i = 0; i < permissions.size(); ++i) in InitializeWithProvider() 78 RegisterPermission(permissions[i]); in InitializeWithProvider()
|
D | api_permission_set.cc | 72 const base::ListValue* permissions; in ParseChildPermissions() local 73 if (!permission_value->GetAsList(&permissions)) { in ParseChildPermissions() 85 for (size_t i = 0; i < permissions->GetSize(); ++i) { in ParseChildPermissions() 87 if (!permissions->GetString(i, &permission_str)) { in ParseChildPermissions() 124 const base::ListValue* permissions, in ParseFromJSON() argument 129 for (size_t i = 0; i < permissions->GetSize(); ++i) { in ParseFromJSON() 132 if (!permissions->GetString(i, &permission_str)) { in ParseFromJSON() 135 if (!permissions->GetDictionary(i, &dict) || dict->size() != 1) { in ParseFromJSON()
|
D | manifest_permission_set.cc | 61 const base::ListValue* permissions, in ParseFromJSON() argument 65 for (size_t i = 0; i < permissions->GetSize(); ++i) { in ParseFromJSON() 68 if (!permissions->GetString(i, &permission_name)) { in ParseFromJSON() 71 if (!permissions->GetDictionary(i, &dict) || dict->size() != 1) { in ParseFromJSON()
|
/external/chromium_org/content/browser/ |
D | child_process_security_policy_impl.cc | 102 void GrantPermissionsForFile(const base::FilePath& file, int permissions) { in GrantPermissionsForFile() argument 104 file_permissions_[stripped] |= permissions; in GrantPermissionsForFile() 123 int permissions) { in GrantPermissionsForFileSystem() argument 126 filesystem_permissions_[filesystem_id] |= permissions; in GrantPermissionsForFileSystem() 130 int permissions) { in HasPermissionsForFileSystem() argument 135 return (it->second & permissions) == permissions; in HasPermissionsForFileSystem() 141 int permissions) { in HasPermissionsForContentUri() argument 144 if (!permissions) in HasPermissionsForContentUri() 149 return (it->second & permissions) == permissions; in HasPermissionsForContentUri() 189 bool HasPermissionsForFile(const base::FilePath& file, int permissions) { in HasPermissionsForFile() argument [all …]
|
/external/chromium_org/third_party/sqlite/src/test/ |
D | journal3.test | 21 # the same file-system permissions as the database file itself. Test this. 29 foreach {tn permissions} { 36 set effective [format %.5o [expr $permissions & ~$umask]] 39 file attributes test.db -permissions $permissions 40 file attributes test.db -permissions 41 } $permissions
|
/external/chromium_org/chrome/common/extensions/docs/server2/ |
D | permissions_data_source.py | 14 def _ListifyPermissions(permissions): argument 22 ifilter(filter_permissions, permissions.values()), 26 def _AddDependencyDescriptions(permissions, api_features): argument 30 for name, permission in permissions.iteritems(): 70 def filter_for_platform(permissions, platform): argument 71 return _ListifyPermissions(features.Filtered(permissions, platform))
|
/external/chromium_org/chrome/browser/ui/cocoa/extensions/ |
D | extension_install_view_controller_unittest.mm | 40 std::vector<base::string16> permissions; 41 permissions.push_back(UTF8ToUTF16("warning 1")); 42 prompt.SetPermissions(permissions); 95 std::vector<base::string16> permissions; 96 permissions.push_back(UTF8ToUTF16("warning 1")); 97 prompt.SetPermissions(permissions); 123 std::vector<base::string16> permissions; 124 permissions.push_back(UTF8ToUTF16("warning 1")); 125 one_warning_prompt.SetPermissions(permissions); 133 permissions.push_back(UTF8ToUTF16("warning 2")); [all …]
|
/external/chromium_org/chrome/renderer/pepper/ |
D | chrome_renderer_pepper_host_factory.cc | 45 if (host_->GetPpapiHost()->permissions().HasPermission( in CreateResourceHost() 55 if (host_->GetPpapiHost()->permissions().HasPermission( in CreateResourceHost() 81 if (host_->GetPpapiHost()->permissions().HasPermission( in CreateResourceHost() 83 host_->GetPpapiHost()->permissions().HasPermission( in CreateResourceHost() 102 if (host_->GetPpapiHost()->permissions().HasPermission( in CreateResourceHost()
|
/external/chromium_org/content/renderer/pepper/ |
D | renderer_ppapi_host_impl.cc | 43 const ppapi::PpapiPermissions& permissions) in RendererPpapiHostImpl() argument 48 new ppapi::host::PpapiHost(dispatcher, permissions)); in RendererPpapiHostImpl() 58 const ppapi::PpapiPermissions& permissions) in RendererPpapiHostImpl() argument 64 in_process_router_->GetRendererToPluginSender(), permissions)); in RendererPpapiHostImpl() 81 const ppapi::PpapiPermissions& permissions) { in CreateOnModuleForOutOfProcess() argument 84 module, dispatcher, permissions); in CreateOnModuleForOutOfProcess() 95 const ppapi::PpapiPermissions& permissions) { in CreateOnModuleForInProcess() argument 98 module, permissions); in CreateOnModuleForInProcess() 185 if (instance_object->module()->permissions().HasPermission( in HasUserGesture()
|
/external/chromium/chrome/browser/ui/gtk/extensions/ |
D | extension_install_dialog_gtk.cc | 57 const std::vector<string16>& permissions, in ShowInstallDialog() argument 106 bool show_permissions = !permissions.empty(); in ShowInstallDialog() 150 for (std::vector<string16>::const_iterator iter = permissions.begin(); in ShowInstallDialog() 151 iter != permissions.end(); ++iter) { in ShowInstallDialog() 152 if (iter != permissions.begin()) in ShowInstallDialog() 157 iter == permissions.begin() ? padding_above_tag : NULL, in ShowInstallDialog() 177 const std::vector<string16>& permissions, in ShowExtensionInstallDialog() argument 193 browser_window->window(), icon, extension, delegate, permissions, type); in ShowExtensionInstallDialog()
|