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

Unified Diff: chrome/browser/sessions/base_session_service.h

Issue 10170016: Add info about user agent overrides to WebContents (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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: chrome/browser/sessions/base_session_service.h
diff --git a/chrome/browser/sessions/base_session_service.h b/chrome/browser/sessions/base_session_service.h
index 94ce78469492c5d8f4bb3e7fdc3e8aeb1b716865..3a35b77b8c906bcb310b4fb4e565c05513c2e87c 100644
--- a/chrome/browser/sessions/base_session_service.h
+++ b/chrome/browser/sessions/base_session_service.h
@@ -125,6 +125,13 @@ class BaseSessionService : public CancelableRequestProvider,
SessionID::id_type tab_id,
const std::string& extension_id);
+ // Creates a SessionCommand that containing user agent override used by a
+ // tab's navigations.
+ SessionCommand* CreateSetTabUserAgentOverrideCommand(
+ SessionID::id_type command_id,
+ SessionID::id_type tab_id,
+ const std::string& user_agent_override);
+
// Creates a SessionCommand stores a browser window's app name.
SessionCommand* CreateSetWindowAppNameCommand(
SessionID::id_type command_id,
@@ -147,6 +154,13 @@ class BaseSessionService : public CancelableRequestProvider,
std::string* extension_app_id);
// Extracts a SessionCommand as previously created by
+ // CreateSetTabUserAgentOverrideCommand into the tab id and user agent.
+ bool RestoreSetTabUserAgentOverrideCommand(
+ const SessionCommand& command,
+ SessionID::id_type* tab_id,
+ std::string* user_agent_override);
+
+ // Extracts a SessionCommand as previously created by
// CreateSetWindowAppNameCommand into the window id and application name.
bool RestoreSetWindowAppNameCommand(
const SessionCommand& command,
« no previous file with comments | « no previous file | chrome/browser/sessions/base_session_service.cc » ('j') | chrome/browser/sessions/base_session_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698