| 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 "base/logging.h" |
| 5 #include "extensions/browser/api/extensions_api_client.h" | 6 #include "extensions/browser/api/extensions_api_client.h" |
| 6 | 7 #include "extensions/browser/guest_view/app_view/app_view_guest_delegate.h" |
| 7 #include "base/logging.h" | |
| 8 | 8 |
| 9 namespace extensions { | 9 namespace extensions { |
| 10 namespace { | 10 namespace { |
| 11 | 11 |
| 12 ExtensionsAPIClient* g_instance = NULL; | 12 ExtensionsAPIClient* g_instance = NULL; |
| 13 | 13 |
| 14 } // namespace | 14 } // namespace |
| 15 | 15 |
| 16 ExtensionsAPIClient::ExtensionsAPIClient() { g_instance = this; } | 16 ExtensionsAPIClient::ExtensionsAPIClient() { g_instance = this; } |
| 17 | 17 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 34 return false; | 34 return false; |
| 35 } | 35 } |
| 36 | 36 |
| 37 bool ExtensionsAPIClient::AppViewInternalDenyRequest( | 37 bool ExtensionsAPIClient::AppViewInternalDenyRequest( |
| 38 content::BrowserContext* browser_context, | 38 content::BrowserContext* browser_context, |
| 39 int guest_instance_id, | 39 int guest_instance_id, |
| 40 const std::string& guest_extension_id) { | 40 const std::string& guest_extension_id) { |
| 41 return false; | 41 return false; |
| 42 } | 42 } |
| 43 | 43 |
| 44 AppViewGuestDelegate* ExtensionsAPIClient::CreateAppViewGuestDelegate() const { |
| 45 return new AppViewGuestDelegate; |
| 46 } |
| 47 |
| 44 device::HidService* ExtensionsAPIClient::GetHidService() { | 48 device::HidService* ExtensionsAPIClient::GetHidService() { |
| 45 // This should never be called by clients which don't support the HID API. | 49 // This should never be called by clients which don't support the HID API. |
| 46 NOTIMPLEMENTED(); | 50 NOTIMPLEMENTED(); |
| 47 return NULL; | 51 return NULL; |
| 48 } | 52 } |
| 49 | 53 |
| 50 } // namespace extensions | 54 } // namespace extensions |
| OLD | NEW |