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

Side by Side Diff: android_webview/browser/aw_permission_manager.cc

Issue 2697473002: Remove last usage functions from HostContentSettingsMap and clean up prefs (Closed)
Patch Set: fix up unit test Created 3 years, 10 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 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698