| 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 <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "android_webview/browser/aw_browser_permission_request_delegate.h" | 9 #include "android_webview/browser/aw_browser_permission_request_delegate.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/containers/hash_tables.h" | 11 #include "base/containers/hash_tables.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "content/public/browser/permission_type.h" | 13 #include "content/public/browser/permission_type.h" |
| 14 #include "content/public/browser/render_frame_host.h" | 14 #include "content/public/browser/render_frame_host.h" |
| 15 #include "content/public/browser/render_process_host.h" | 15 #include "content/public/browser/render_process_host.h" |
| 16 #include "content/public/browser/web_contents.h" | 16 #include "content/public/browser/web_contents.h" |
| 17 | 17 |
| 18 using blink::mojom::PermissionStatus; | 18 using permission::mojom::PermissionStatus; |
| 19 using content::PermissionType; | 19 using content::PermissionType; |
| 20 | 20 |
| 21 namespace android_webview { | 21 namespace android_webview { |
| 22 | 22 |
| 23 class LastRequestResultCache { | 23 class LastRequestResultCache { |
| 24 public: | 24 public: |
| 25 LastRequestResultCache() = default; | 25 LastRequestResultCache() = default; |
| 26 | 26 |
| 27 void SetResult(PermissionType permission, | 27 void SetResult(PermissionType permission, |
| 28 const GURL& requesting_origin, | 28 const GURL& requesting_origin, |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 const GURL& embedding_origin, | 409 const GURL& embedding_origin, |
| 410 const base::Callback<void(PermissionStatus)>& callback) { | 410 const base::Callback<void(PermissionStatus)>& callback) { |
| 411 return kNoPendingOperation; | 411 return kNoPendingOperation; |
| 412 } | 412 } |
| 413 | 413 |
| 414 void AwPermissionManager::UnsubscribePermissionStatusChange( | 414 void AwPermissionManager::UnsubscribePermissionStatusChange( |
| 415 int subscription_id) { | 415 int subscription_id) { |
| 416 } | 416 } |
| 417 | 417 |
| 418 } // namespace android_webview | 418 } // namespace android_webview |
| OLD | NEW |