| 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 <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| 11 #include "app/resource_bundle.h" | |
| 12 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 13 #include "chrome/browser/browser_thread.h" | 12 #include "chrome/browser/browser_thread.h" |
| 14 #include "chrome/browser/extensions/extension_service.h" | 13 #include "chrome/browser/extensions/extension_service.h" |
| 15 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" | 14 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" |
| 16 #include "chrome/browser/geolocation/geolocation_provider.h" | 15 #include "chrome/browser/geolocation/geolocation_provider.h" |
| 17 #include "chrome/browser/google/google_util.h" | 16 #include "chrome/browser/google/google_util.h" |
| 18 #include "chrome/browser/prefs/pref_service.h" | 17 #include "chrome/browser/prefs/pref_service.h" |
| 19 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
| 20 #include "chrome/browser/renderer_host/render_process_host.h" | 19 #include "chrome/browser/renderer_host/render_process_host.h" |
| 21 #include "chrome/browser/renderer_host/render_view_host.h" | 20 #include "chrome/browser/renderer_host/render_view_host.h" |
| 22 #include "chrome/browser/renderer_host/render_view_host_notification_task.h" | 21 #include "chrome/browser/renderer_host/render_view_host_notification_task.h" |
| 23 #include "chrome/browser/tab_contents/infobar_delegate.h" | 22 #include "chrome/browser/tab_contents/infobar_delegate.h" |
| 24 #include "chrome/browser/tab_contents/tab_contents.h" | 23 #include "chrome/browser/tab_contents/tab_contents.h" |
| 25 #include "chrome/browser/tab_contents/tab_util.h" | 24 #include "chrome/browser/tab_contents/tab_util.h" |
| 26 #include "chrome/common/extensions/extension.h" | 25 #include "chrome/common/extensions/extension.h" |
| 27 #include "chrome/common/pref_names.h" | 26 #include "chrome/common/pref_names.h" |
| 28 #include "chrome/common/render_messages.h" | 27 #include "chrome/common/render_messages.h" |
| 29 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
| 30 #include "grit/locale_settings.h" | 29 #include "grit/locale_settings.h" |
| 31 #include "grit/theme_resources.h" | 30 #include "grit/theme_resources.h" |
| 32 #include "net/base/net_util.h" | 31 #include "net/base/net_util.h" |
| 32 #include "ui/base/resource/resource_bundle.h" |
| 33 | 33 |
| 34 namespace { | 34 namespace { |
| 35 | 35 |
| 36 const char kGeolocationLearnMoreUrl[] = | 36 const char kGeolocationLearnMoreUrl[] = |
| 37 #if defined(OS_CHROMEOS) | 37 #if defined(OS_CHROMEOS) |
| 38 "http://www.google.com/support/chromeos/bin/answer.py?answer=142065"; | 38 "http://www.google.com/support/chromeos/bin/answer.py?answer=142065"; |
| 39 #else | 39 #else |
| 40 "http://www.google.com/support/chrome/bin/answer.py?answer=142065"; | 40 "http://www.google.com/support/chrome/bin/answer.py?answer=142065"; |
| 41 #endif | 41 #endif |
| 42 | 42 |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 BrowserThread::UI, FROM_HERE, | 477 BrowserThread::UI, FROM_HERE, |
| 478 NewRunnableMethod(this, | 478 NewRunnableMethod(this, |
| 479 &GeolocationPermissionContext::CancelPendingInfoBarRequest, | 479 &GeolocationPermissionContext::CancelPendingInfoBarRequest, |
| 480 render_process_id, render_view_id, bridge_id)); | 480 render_process_id, render_view_id, bridge_id)); |
| 481 return; | 481 return; |
| 482 } | 482 } |
| 483 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 483 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 484 geolocation_infobar_queue_controller_->CancelInfoBarRequest( | 484 geolocation_infobar_queue_controller_->CancelInfoBarRequest( |
| 485 render_process_id, render_view_id, bridge_id); | 485 render_process_id, render_view_id, bridge_id); |
| 486 } | 486 } |
| OLD | NEW |