| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/extensions/api/chrome_extensions_api_client.h" | 5 #include "chrome/browser/extensions/api/chrome_extensions_api_client.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "chrome/browser/guest_view/web_view/chrome_web_view_permission_helper_d
elegate.h" | 26 #include "chrome/browser/guest_view/web_view/chrome_web_view_permission_helper_d
elegate.h" |
| 27 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" | 27 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" |
| 28 #include "components/pdf/browser/pdf_web_contents_helper.h" | 28 #include "components/pdf/browser/pdf_web_contents_helper.h" |
| 29 #include "content/public/browser/browser_context.h" | 29 #include "content/public/browser/browser_context.h" |
| 30 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
| 31 #include "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_deleg
ate.h" | 31 #include "extensions/browser/api/virtual_keyboard_private/virtual_keyboard_deleg
ate.h" |
| 32 #include "extensions/browser/guest_view/web_view/web_view_guest.h" | 32 #include "extensions/browser/guest_view/web_view/web_view_guest.h" |
| 33 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" | 33 #include "extensions/browser/guest_view/web_view/web_view_permission_helper.h" |
| 34 | 34 |
| 35 #if defined(OS_CHROMEOS) | 35 #if defined(OS_CHROMEOS) |
| 36 #include "chrome/browser/chromeos/app_mode/chrome_kiosk_delegate.h" |
| 36 #include "chrome/browser/extensions/api/virtual_keyboard_private/chrome_virtual_
keyboard_delegate.h" | 37 #include "chrome/browser/extensions/api/virtual_keyboard_private/chrome_virtual_
keyboard_delegate.h" |
| 37 #endif | 38 #endif |
| 38 | 39 |
| 39 #if defined(ENABLE_PRINTING) | 40 #if defined(ENABLE_PRINTING) |
| 40 #if defined(ENABLE_PRINT_PREVIEW) | 41 #if defined(ENABLE_PRINT_PREVIEW) |
| 41 #include "chrome/browser/printing/print_preview_message_handler.h" | 42 #include "chrome/browser/printing/print_preview_message_handler.h" |
| 42 #include "chrome/browser/printing/print_view_manager.h" | 43 #include "chrome/browser/printing/print_view_manager.h" |
| 43 #else | 44 #else |
| 44 #include "chrome/browser/printing/print_view_manager_basic.h" | 45 #include "chrome/browser/printing/print_view_manager_basic.h" |
| 45 #endif // defined(ENABLE_PRINT_PREVIEW) | 46 #endif // defined(ENABLE_PRINT_PREVIEW) |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 #else | 152 #else |
| 152 return nullptr; | 153 return nullptr; |
| 153 #endif | 154 #endif |
| 154 } | 155 } |
| 155 | 156 |
| 156 ManagementAPIDelegate* ChromeExtensionsAPIClient::CreateManagementAPIDelegate() | 157 ManagementAPIDelegate* ChromeExtensionsAPIClient::CreateManagementAPIDelegate() |
| 157 const { | 158 const { |
| 158 return new ChromeManagementAPIDelegate; | 159 return new ChromeManagementAPIDelegate; |
| 159 } | 160 } |
| 160 | 161 |
| 162 KioskDelegate* ChromeExtensionsAPIClient::GetKioskDelegate() { |
| 163 if (!kiosk_delegate_) |
| 164 kiosk_delegate_.reset(new ChromeKioskDelegate()); |
| 165 return kiosk_delegate_.get(); |
| 166 } |
| 167 |
| 161 } // namespace extensions | 168 } // namespace extensions |
| OLD | NEW |