#include "extensions/browser/api/extensions_api_client.h"
#include "base/logging.h"
+#include "extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest_delegate.h"
+#include "extensions/browser/guest_view/web_view/web_view_permission_helper_delegate.h"
namespace extensions {
-namespace {
+class AppViewGuestDelegate;
+namespace {
ExtensionsAPIClient* g_instance = NULL;
-
} // namespace
ExtensionsAPIClient::ExtensionsAPIClient() { g_instance = this; }
const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers,
std::map<settings_namespace::Namespace, ValueStoreCache*>* caches) {}
-bool ExtensionsAPIClient::AppViewInternalAttachFrame(
- content::BrowserContext* browser_context,
- const GURL& url,
- int guest_instance_id,
- const std::string& guest_extension_id) {
- return false;
+AppViewGuestDelegate* ExtensionsAPIClient::CreateAppViewGuestDelegate() const {
+ return NULL;
+}
+
+ExtensionOptionsGuestDelegate*
+ExtensionsAPIClient::CreateExtensionOptionsGuestDelegate(
+ ExtensionOptionsGuest* guest) const {
+ return NULL;
+}
+
+scoped_ptr<MimeHandlerViewGuestDelegate>
+ExtensionsAPIClient::CreateMimeHandlerViewGuestDelegate(
+ MimeHandlerViewGuest* guest) const {
+ return scoped_ptr<MimeHandlerViewGuestDelegate>();
}
-bool ExtensionsAPIClient::AppViewInternalDenyRequest(
+WebViewGuestDelegate* ExtensionsAPIClient::CreateWebViewGuestDelegate(
+ WebViewGuest* web_view_guest) const {
+ return NULL;
+}
+
+WebViewPermissionHelperDelegate* ExtensionsAPIClient::
+ CreateWebViewPermissionHelperDelegate(
+ WebViewPermissionHelper* web_view_permission_helper) const {
+ return new WebViewPermissionHelperDelegate(web_view_permission_helper);
+}
+
+scoped_refptr<RulesRegistry> ExtensionsAPIClient::GetRulesRegistry(
content::BrowserContext* browser_context,
- int guest_instance_id,
- const std::string& guest_extension_id) {
- return false;
+ const RulesRegistry::WebViewKey& webview_key,
+ const std::string& event_name) {
+ return scoped_refptr<RulesRegistry>();
}
-device::HidService* ExtensionsAPIClient::GetHidService() {
- // This should never be called by clients which don't support the HID API.
- NOTIMPLEMENTED();
+WebRequestEventRouterDelegate*
+ExtensionsAPIClient::CreateWebRequestEventRouterDelegate() const {
return NULL;
}
+scoped_refptr<ContentRulesRegistry>
+ExtensionsAPIClient::CreateContentRulesRegistry(
+ content::BrowserContext* browser_context,
+ RulesCacheDelegate* cache_delegate) const {
+ return scoped_refptr<ContentRulesRegistry>();
+}
+
} // namespace extensions