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

Unified Diff: chrome/browser/extensions/extensions_ui.h

Issue 3210007: Add support for a "split" incognito behavior for extensions. (Closed)
Patch Set: latest Created 10 years, 4 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 | « chrome/browser/extensions/extensions_service.cc ('k') | chrome/browser/extensions/extensions_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extensions_ui.h
diff --git a/chrome/browser/extensions/extensions_ui.h b/chrome/browser/extensions/extensions_ui.h
index fb186fc72542c62c4430d4c9e16dd437b52ca70d..0d961a1e8360085a343449858ee06355300856f9 100644
--- a/chrome/browser/extensions/extensions_ui.h
+++ b/chrome/browser/extensions/extensions_ui.h
@@ -32,12 +32,14 @@ class UserScript;
// Information about a page running in an extension, for example a toolstrip,
// a background page, or a tab contents.
struct ExtensionPage {
- ExtensionPage(const GURL& url, int render_process_id, int render_view_id)
+ ExtensionPage(const GURL& url, int render_process_id, int render_view_id,
+ bool incognito)
: url(url), render_process_id(render_process_id),
- render_view_id(render_view_id) {}
+ render_view_id(render_view_id), incognito(incognito) {}
GURL url;
int render_process_id;
int render_view_id;
+ bool incognito;
};
class ExtensionsUIHTMLSource : public ChromeURLDataManager::DataSource {
@@ -196,9 +198,11 @@ class ExtensionsDOMHandler
const NotificationDetails& details);
// Helper that lists the current active html pages for an extension.
- std::vector<ExtensionPage> GetActivePagesForExtension(
+ std::vector<ExtensionPage> GetActivePagesForExtension(Extension* extension);
+ void GetActivePagesForExtensionProcess(
RenderProcessHost* process,
- Extension* extension);
+ Extension* extension,
+ std::vector<ExtensionPage> *result);
// Returns the best icon to display in the UI for an extension, or an empty
// ExtensionResource if no good icon exists.
« no previous file with comments | « chrome/browser/extensions/extensions_service.cc ('k') | chrome/browser/extensions/extensions_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698