OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/native/aw_geolocation_permission_context.h" | 5 #include "android_webview/native/aw_geolocation_permission_context.h" |
6 | 6 |
7 #include "android_webview/native/aw_contents.h" | 7 #include "android_webview/native/aw_contents.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 this, | 49 this, |
50 render_process_id, | 50 render_process_id, |
51 render_view_id, | 51 render_view_id, |
52 bridge_id, | 52 bridge_id, |
53 requesting_frame, | 53 requesting_frame, |
54 callback)); | 54 callback)); |
55 } | 55 } |
56 | 56 |
57 // static | 57 // static |
58 content::GeolocationPermissionContext* | 58 content::GeolocationPermissionContext* |
59 AwGeolocationPermissionContext::Create() { | 59 AwGeolocationPermissionContext::Create(AwBrowserContext* browser_context) { |
60 return new AwGeolocationPermissionContext(); | 60 return new AwGeolocationPermissionContext(); |
61 } | 61 } |
62 | 62 |
63 void | 63 void |
64 AwGeolocationPermissionContext::CancelGeolocationPermissionRequestOnUIThread( | 64 AwGeolocationPermissionContext::CancelGeolocationPermissionRequestOnUIThread( |
65 int render_process_id, | 65 int render_process_id, |
66 int render_view_id, | 66 int render_view_id, |
67 int bridge_id, | 67 int bridge_id, |
68 const GURL& requesting_frame) { | 68 const GURL& requesting_frame) { |
69 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); | 69 DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); |
(...skipping 17 matching lines...) Expand all Loading... |
87 &AwGeolocationPermissionContext:: | 87 &AwGeolocationPermissionContext:: |
88 CancelGeolocationPermissionRequestOnUIThread, | 88 CancelGeolocationPermissionRequestOnUIThread, |
89 this, | 89 this, |
90 render_process_id, | 90 render_process_id, |
91 render_view_id, | 91 render_view_id, |
92 bridge_id, | 92 bridge_id, |
93 requesting_frame)); | 93 requesting_frame)); |
94 } | 94 } |
95 | 95 |
96 } // namespace android_webview | 96 } // namespace android_webview |
OLD | NEW |