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

Unified Diff: apps/shell/shell_content_browser_client.h

Issue 136453005: app_shell: Make renderer run background page JavaScript (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup (load_background_page) Created 6 years, 11 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: apps/shell/shell_content_browser_client.h
diff --git a/apps/shell/shell_content_browser_client.h b/apps/shell/shell_content_browser_client.h
index e72ab2ed6a9c662c1c811bedb11876d7a5d75dfa..db0f5a865fe15da77b6126ff5c54f2ef2246dee2 100644
--- a/apps/shell/shell_content_browser_client.h
+++ b/apps/shell/shell_content_browser_client.h
@@ -8,6 +8,12 @@
#include "base/compiler_specific.h"
#include "content/public/browser/content_browser_client.h"
+class GURL;
+
+namespace extensions {
+class Extension;
+}
+
namespace apps {
class ShellBrowserMainParts;
@@ -24,8 +30,19 @@ class ShellContentBrowserClient : public content::ContentBrowserClient {
content::ProtocolHandlerMap* protocol_handlers) OVERRIDE;
// TODO(jamescook): Quota management?
// TODO(jamescook): Speech recognition?
+ virtual bool IsHandledURL(const GURL& url) OVERRIDE;
+ virtual void SiteInstanceGotProcess(content::SiteInstance* site_instance)
+ OVERRIDE;
+ virtual void SiteInstanceDeleting(content::SiteInstance* site_instance)
+ OVERRIDE;
+ virtual void AppendExtraCommandLineSwitches(CommandLine* command_line,
+ int child_process_id) OVERRIDE;
private:
+ // Returns the extension or app associated with |site_instance| or NULL.
+ const extensions::Extension* GetExtension(
+ content::SiteInstance* site_instance);
+
// Owned by content::BrowserMainLoop.
ShellBrowserMainParts* browser_main_parts_;

Powered by Google App Engine
This is Rietveld 408576698