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

Unified Diff: extensions/browser/api/extensions_api_client.h

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: extensions/browser/api/extensions_api_client.h
diff --git a/extensions/browser/api/extensions_api_client.h b/extensions/browser/api/extensions_api_client.h
index 88dbaa4636030e132319ff45ee7c0f1499b6f148..b87e2d37742559892e2033cefad9240a2fd653b8 100644
--- a/extensions/browser/api/extensions_api_client.h
+++ b/extensions/browser/api/extensions_api_client.h
@@ -10,6 +10,8 @@
#include "base/memory/ref_counted.h"
#include "extensions/browser/api/storage/settings_namespace.h"
+class GURL;
+
template <class T>
class ObserverListThreadSafe;
@@ -47,6 +49,21 @@ class ExtensionsAPIClient {
const scoped_refptr<ObserverListThreadSafe<SettingsObserver> >& observers,
std::map<settings_namespace::Namespace, ValueStoreCache*>* caches);
+ // Attaches a frame |url| inside the <appview> specified by
+ // |guest_instance_id|. Returns true if the operation completes succcessfully.
+ virtual bool AppViewInternalAttachFrame(
+ content::BrowserContext* browser_context,
+ const GURL& url,
+ int guest_instance_id,
+ const std::string& guest_extension_id);
+
+ // Denies the embedding requested by the <appview> specified by
+ // |guest_instance_id|. Returns true if the operation completes successfully.
+ virtual bool AppViewInternalDenyRequest(
+ content::BrowserContext* browser_context,
+ int guest_instance_id,
+ const std::string& guest_extension_id);
+
// NOTE: If this interface gains too many methods (perhaps more than 20) it
// should be split into one interface per API.
};
« no previous file with comments | « extensions/browser/api/app_view/app_view_internal_api.cc ('k') | extensions/browser/api/extensions_api_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698