| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "android_webview/browser/aw_permission_manager.h" | 5 #include "android_webview/browser/aw_permission_manager.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 if (permission == PermissionType::PROTECTED_MEDIA_IDENTIFIER) { | 497 if (permission == PermissionType::PROTECTED_MEDIA_IDENTIFIER) { |
| 498 return result_cache_->GetResult(permission, requesting_origin, | 498 return result_cache_->GetResult(permission, requesting_origin, |
| 499 embedding_origin); | 499 embedding_origin); |
| 500 } else if (permission == PermissionType::MIDI) { | 500 } else if (permission == PermissionType::MIDI) { |
| 501 return PermissionStatus::GRANTED; | 501 return PermissionStatus::GRANTED; |
| 502 } | 502 } |
| 503 | 503 |
| 504 return PermissionStatus::DENIED; | 504 return PermissionStatus::DENIED; |
| 505 } | 505 } |
| 506 | 506 |
| 507 void AwPermissionManager::RegisterPermissionUsage( | |
| 508 PermissionType permission, | |
| 509 const GURL& requesting_origin, | |
| 510 const GURL& embedding_origin) { | |
| 511 } | |
| 512 | |
| 513 int AwPermissionManager::SubscribePermissionStatusChange( | 507 int AwPermissionManager::SubscribePermissionStatusChange( |
| 514 PermissionType permission, | 508 PermissionType permission, |
| 515 const GURL& requesting_origin, | 509 const GURL& requesting_origin, |
| 516 const GURL& embedding_origin, | 510 const GURL& embedding_origin, |
| 517 const base::Callback<void(PermissionStatus)>& callback) { | 511 const base::Callback<void(PermissionStatus)>& callback) { |
| 518 return kNoPendingOperation; | 512 return kNoPendingOperation; |
| 519 } | 513 } |
| 520 | 514 |
| 521 void AwPermissionManager::UnsubscribePermissionStatusChange( | 515 void AwPermissionManager::UnsubscribePermissionStatusChange( |
| 522 int subscription_id) { | 516 int subscription_id) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 549 ->GetLastCommittedURL().GetOrigin(); | 543 ->GetLastCommittedURL().GetOrigin(); |
| 550 } | 544 } |
| 551 | 545 |
| 552 AwBrowserPermissionRequestDelegate* AwPermissionManager::GetDelegate( | 546 AwBrowserPermissionRequestDelegate* AwPermissionManager::GetDelegate( |
| 553 int render_process_id, int render_frame_id) { | 547 int render_process_id, int render_frame_id) { |
| 554 return AwBrowserPermissionRequestDelegate::FromID(render_process_id, | 548 return AwBrowserPermissionRequestDelegate::FromID(render_process_id, |
| 555 render_frame_id); | 549 render_frame_id); |
| 556 } | 550 } |
| 557 | 551 |
| 558 } // namespace android_webview | 552 } // namespace android_webview |
| OLD | NEW |