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

Unified Diff: content/browser/content_browser_client.h

Issue 7135003: Remove last extension dependencies from content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 9 years, 6 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
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/content_browser_client.h
diff --git a/content/browser/content_browser_client.h b/content/browser/content_browser_client.h
index 46b854d47bce02f21de109b76771645ec76dcc2b..4d1220abad106baf7446043af1b7584cc60d4e67 100644
--- a/content/browser/content_browser_client.h
+++ b/content/browser/content_browser_client.h
@@ -10,6 +10,7 @@
#include "base/callback_old.h"
#include "content/common/content_client.h"
+#include "content/common/window_container_type.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresenter.h"
class BrowserRenderProcessHost;
@@ -172,6 +173,19 @@ class ContentBrowserClient {
int render_view_id,
int notification_id);
+ // Returns true if the given page is allowed to open a window of the given
+ // type. This is called on the IO thread.
+ virtual bool CanCreateWindow(
+ const GURL& source_url,
+ WindowContainerType container_type,
+ const content::ResourceContext& context);
+
+ // Returns a title string to use in the task manager for a process host with
+ // the given URL, or the empty string to fall back to the default logic.
+ // This is called on the IO thread.
+ virtual std::string GetWorkerProcessTitle(
+ const GURL& url, const content::ResourceContext& context);
+
#if defined(OS_POSIX) && !defined(OS_MACOSX)
// Can return an optional fd for crash handling, otherwise returns -1.
virtual int GetCrashSignalFD(const std::string& process_type);
« no previous file with comments | « content/browser/DEPS ('k') | content/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698