| 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/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "chrome/browser/extensions/api/storage/sync_value_store_cache.h" | 8 #include "chrome/browser/extensions/api/storage/sync_value_store_cache.h" |
| 9 #include "chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.h" | 9 #include "chrome/browser/guest_view/app_view/chrome_app_view_guest_delegate.h" |
| 10 #include "chrome/browser/guest_view/extension_options/extension_options_guest.h" | 10 #include "chrome/browser/guest_view/extension_options/extension_options_guest.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 bool ChromeExtensionsAPIClient::AppViewInternalDenyRequest( | 54 bool ChromeExtensionsAPIClient::AppViewInternalDenyRequest( |
| 55 content::BrowserContext* browser_context, | 55 content::BrowserContext* browser_context, |
| 56 int guest_instance_id, | 56 int guest_instance_id, |
| 57 const std::string& guest_extension_id) { | 57 const std::string& guest_extension_id) { |
| 58 return AppViewGuest::CompletePendingRequest(browser_context, | 58 return AppViewGuest::CompletePendingRequest(browser_context, |
| 59 GURL(), | 59 GURL(), |
| 60 guest_instance_id, | 60 guest_instance_id, |
| 61 guest_extension_id); | 61 guest_extension_id); |
| 62 } | 62 } |
| 63 | 63 |
| 64 AppViewGuestDelegate* ChromeExtensionsAPIClient::CreateAppViewGuestDelegate() | 64 AppViewGuestDelegate* ChromeExtensionsAPIClient::CreateAppViewGuestDelegate( |
| 65 AppViewGuest* app_view_guest) |
| 65 const { | 66 const { |
| 66 return new ChromeAppViewGuestDelegate(); | 67 return new ChromeAppViewGuestDelegate(app_view_guest); |
| 67 } | 68 } |
| 68 | 69 |
| 69 device::HidService* ChromeExtensionsAPIClient::GetHidService() { | 70 device::HidService* ChromeExtensionsAPIClient::GetHidService() { |
| 70 if (!hid_service_) { | 71 if (!hid_service_) { |
| 71 hid_service_.reset(device::HidService::Create( | 72 hid_service_.reset(device::HidService::Create( |
| 72 content::BrowserThread::GetMessageLoopProxyForThread( | 73 content::BrowserThread::GetMessageLoopProxyForThread( |
| 73 content::BrowserThread::UI))); | 74 content::BrowserThread::UI))); |
| 74 } | 75 } |
| 75 return hid_service_.get(); | 76 return hid_service_.get(); |
| 76 } | 77 } |
| 77 | 78 |
| 78 void ChromeExtensionsAPIClient::RegisterGuestViewTypes() { | 79 void ChromeExtensionsAPIClient::RegisterGuestViewTypes() { |
| 79 AppViewGuest::Register(); | 80 AppViewGuest::Register(); |
| 80 ExtensionOptionsGuest::Register(); | 81 ExtensionOptionsGuest::Register(); |
| 81 WebViewGuest::Register(); | 82 WebViewGuest::Register(); |
| 82 } | 83 } |
| 83 | 84 |
| 84 } // namespace extensions | 85 } // namespace extensions |
| OLD | NEW |