Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Unified Diff: chrome/browser/extensions/api/chrome_extensions_api_client.cc

Issue 354483004: Implement <appview> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@app_view_skeleton
Patch Set: Fixed formatting Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/chrome_extensions_api_client.cc
diff --git a/chrome/browser/extensions/api/chrome_extensions_api_client.cc b/chrome/browser/extensions/api/chrome_extensions_api_client.cc
index 5c1e541485a02da95fa07fc5c7d618230341d268..cbd0cf4018652f7f92f731c8d82a16ccf303d3e1 100644
--- a/chrome/browser/extensions/api/chrome_extensions_api_client.cc
+++ b/chrome/browser/extensions/api/chrome_extensions_api_client.cc
@@ -6,6 +6,7 @@
#include "base/files/file_path.h"
#include "chrome/browser/extensions/api/storage/sync_value_store_cache.h"
+#include "chrome/browser/guest_view/app_view/app_view_guest.h"
#include "content/public/browser/browser_context.h"
#if defined(ENABLE_CONFIGURATION_POLICY)
@@ -34,4 +35,25 @@ void ChromeExtensionsAPIClient::AddAdditionalValueStoreCaches(
#endif
}
+bool ChromeExtensionsAPIClient::AppViewInternalAttachFrame(
+ content::BrowserContext* browser_context,
+ const GURL& url,
+ int guest_instance_id,
+ const std::string& guest_extension_id) {
+ return AppViewGuest::CompletePendingRequest(browser_context,
+ url,
+ guest_instance_id,
+ guest_extension_id);
+}
+
+bool ChromeExtensionsAPIClient::AppViewInternalDenyRequest(
+ content::BrowserContext* browser_context,
+ int guest_instance_id,
+ const std::string& guest_extension_id) {
+ return AppViewGuest::CompletePendingRequest(browser_context,
+ GURL(),
+ guest_instance_id,
+ guest_extension_id);
+}
+
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698