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

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: Addressed jamescook's cooment 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..42383bbd5e2a82cc0b464c5ccde3857d7bd3e1c1 100644
--- a/extensions/browser/api/extensions_api_client.h
+++ b/extensions/browser/api/extensions_api_client.h
@@ -9,6 +9,7 @@
#include "base/memory/ref_counted.h"
#include "extensions/browser/api/storage/settings_namespace.h"
+#include "url/gurl.h"
James Cook 2014/07/11 03:16:01 Forward declare GURL please
Fady Samuel 2014/07/11 15:28:56 Done.
template <class T>
class ObserverListThreadSafe;
@@ -47,6 +48,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|.
James Cook 2014/07/11 03:16:01 Document the meaning of the returned boolean.
Fady Samuel 2014/07/11 15:28:56 Done.
+ virtual bool AppViewInternalAttachFrame(
+ const GURL& url,
James Cook 2014/07/11 03:16:01 super nit: For these sorts of Extension interfaces
Fady Samuel 2014/07/11 15:28:56 Done.
+ int guest_instance_id,
+ content::BrowserContext* browser_context,
+ const std::string& guest_extension_id);
+
+ // Denies the embedding requested by the <appview> specified by
+ // |guest_instance_id|.
James Cook 2014/07/11 03:16:01 Ditto document meaning of return value
Fady Samuel 2014/07/11 15:28:56 Done.
+ virtual bool AppViewInternalDenyRequest(
+ int guest_instance_id,
+ content::BrowserContext* browser_context,
+ 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.
};

Powered by Google App Engine
This is Rietveld 408576698