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

Unified Diff: chrome/renderer/render_thread.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/renderer/mock_render_thread.h ('k') | chrome/renderer/render_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_thread.h
diff --git a/chrome/renderer/render_thread.h b/chrome/renderer/render_thread.h
index b90f883920d3791823d5bdd1c904bfac1685998c..8795fb73c81c07432f7bdbe9075506f2c12a2c01 100644
--- a/chrome/renderer/render_thread.h
+++ b/chrome/renderer/render_thread.h
@@ -109,6 +109,9 @@ class RenderThreadBase {
// True if this process should be treated as an extension process.
virtual bool IsExtensionProcess() const = 0;
+
+ // True if this process is running in an incognito profile.
+ virtual bool IsIncognitoProcess() const = 0;
};
// The RenderThread class represents a background thread where RenderView
@@ -149,6 +152,8 @@ class RenderThread : public RenderThreadBase,
virtual void RemoveFilter(IPC::ChannelProxy::MessageFilter* filter);
virtual void WidgetHidden();
virtual void WidgetRestored();
+ virtual bool IsExtensionProcess() const { return is_extension_process_; }
+ virtual bool IsIncognitoProcess() const { return is_incognito_process_; }
// These methods modify how the next message is sent. Normally, when sending
// a synchronous message that runs a nested message loop, we need to suspend
@@ -180,10 +185,6 @@ class RenderThread : public RenderThreadBase,
bool plugin_refresh_allowed() const { return plugin_refresh_allowed_; }
- virtual bool IsExtensionProcess() const { return is_extension_process_; }
-
- bool is_incognito_process() const { return is_incognito_process_; }
-
// Do DNS prefetch resolution of a hostname.
void Resolve(const char* name, size_t length);
@@ -255,7 +256,8 @@ class RenderThread : public RenderThreadBase,
const std::vector<URLPattern>& permissions);
void OnExtensionSetIncognitoEnabled(
const std::string& extension_id,
- bool enabled);
+ bool enabled,
+ bool incognito_split_mode);
void OnSetNextPageID(int32 next_page_id);
void OnSetIsIncognitoProcess(bool is_incognito_process);
void OnSetCSSColors(const std::vector<CSSColors::CSSColorMapping>& colors);
« no previous file with comments | « chrome/renderer/mock_render_thread.h ('k') | chrome/renderer/render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698