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

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

Issue 1943963004: Revert of (reland) Move permission.mojom from WebKit/public/platform/ to components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <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 permissions::mojom::PermissionStatus; 18 using blink::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
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
OLDNEW
« no previous file with comments | « android_webview/browser/aw_permission_manager.h ('k') | blimp/engine/app/blimp_permission_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698