Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / extensions / browser / extensions_browser_client.h
index df17516..5ef97ff 100644 (file)
@@ -17,6 +17,7 @@ class PrefService;
 namespace base {
 class CommandLine;
 class FilePath;
+class ListValue;
 }
 
 namespace content {
@@ -100,10 +101,6 @@ class ExtensionsBrowserClient {
       const extensions::Extension* extension,
       content::BrowserContext* context) const = 0;
 
-  // Returns true if |request| corresponds to a resource request from a
-  // <webview>.
-  virtual bool IsWebViewRequest(net::URLRequest* request) const = 0;
-
   // Returns an URLRequestJob to load an extension resource from the embedder's
   // resource bundle (.pak) files. Returns NULL if the request is not for a
   // resource bundle resource or if the embedder does not support this feature.
@@ -182,6 +179,11 @@ class ExtensionsBrowserClient {
   virtual ComponentExtensionResourceManager*
   GetComponentExtensionResourceManager() = 0;
 
+  // Propagate a event to all the renderers in every browser context. The
+  // implementation must be safe to call from any thread.
+  virtual void BroadcastEventToRenderers(const std::string& event_name,
+                                         scoped_ptr<base::ListValue> args) = 0;
+
   // Returns the embedder's net::NetLog.
   virtual net::NetLog* GetNetLog() = 0;