OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/geolocation/geolocation_permission_context.h" | 5 #include "chrome/browser/geolocation/geolocation_permission_context.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/browser.h" | 10 #include "chrome/browser/browser.h" |
11 #include "chrome/browser/chrome_thread.h" | 11 #include "chrome/browser/chrome_thread.h" |
12 #include "chrome/browser/extensions/extensions_service.h" | 12 #include "chrome/browser/extensions/extensions_service.h" |
13 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" | 13 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" |
14 #include "chrome/browser/geolocation/geolocation_dispatcher_host.h" | 14 #include "chrome/browser/geolocation/geolocation_dispatcher_host.h" |
15 #include "chrome/browser/geolocation/location_arbitrator.h" | 15 #include "chrome/browser/geolocation/location_arbitrator.h" |
16 #include "chrome/browser/pref_service.h" | 16 #include "chrome/browser/prefs/pref_service.h" |
17 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profile.h" |
18 #include "chrome/browser/renderer_host/render_process_host.h" | 18 #include "chrome/browser/renderer_host/render_process_host.h" |
19 #include "chrome/browser/renderer_host/render_view_host.h" | 19 #include "chrome/browser/renderer_host/render_view_host.h" |
20 #include "chrome/browser/renderer_host/render_view_host_notification_task.h" | 20 #include "chrome/browser/renderer_host/render_view_host_notification_task.h" |
21 #include "chrome/browser/tab_contents/infobar_delegate.h" | 21 #include "chrome/browser/tab_contents/infobar_delegate.h" |
22 #include "chrome/browser/tab_contents/tab_contents.h" | 22 #include "chrome/browser/tab_contents/tab_contents.h" |
23 #include "chrome/browser/tab_contents/tab_util.h" | 23 #include "chrome/browser/tab_contents/tab_util.h" |
24 #include "chrome/common/extensions/extension.h" | 24 #include "chrome/common/extensions/extension.h" |
25 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
26 #include "chrome/common/render_messages.h" | 26 #include "chrome/common/render_messages.h" |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 ChromeThread::UI, FROM_HERE, | 471 ChromeThread::UI, FROM_HERE, |
472 NewRunnableMethod(this, | 472 NewRunnableMethod(this, |
473 &GeolocationPermissionContext::CancelPendingInfoBarRequest, | 473 &GeolocationPermissionContext::CancelPendingInfoBarRequest, |
474 render_process_id, render_view_id, bridge_id)); | 474 render_process_id, render_view_id, bridge_id)); |
475 return; | 475 return; |
476 } | 476 } |
477 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); | 477 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI)); |
478 geolocation_infobar_queue_controller_->CancelInfoBarRequest( | 478 geolocation_infobar_queue_controller_->CancelInfoBarRequest( |
479 render_process_id, render_view_id, bridge_id); | 479 render_process_id, render_view_id, bridge_id); |
480 } | 480 } |
OLD | NEW |