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

Unified Diff: chrome/browser/browser.h

Issue 12895: Chromium-MultiProfile-Prototype... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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/app/resources/locale_settings_zh-TW.rc ('k') | chrome/browser/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser.h
===================================================================
--- chrome/browser/browser.h (revision 6272)
+++ chrome/browser/browser.h (working copy)
@@ -5,6 +5,9 @@
#ifndef CHROME_BROWSER_BROWSER_H_
#define CHROME_BROWSER_BROWSER_H_
+#include <vector>
+
+#include "chrome/browser/browser_process.h"
#include "chrome/browser/controller.h"
#include "chrome/browser/shell_dialogs.h"
#include "chrome/browser/browser_window.h"
@@ -76,11 +79,20 @@
Type type() const { return type_; }
Profile* profile() const { return profile_; }
+ const std::vector<std::wstring>& user_data_dir_profiles() const {
+ return g_browser_process->user_data_dir_profiles();
+ }
BrowserWindow* window() const { return window_; }
ToolbarModel* toolbar_model() { return &toolbar_model_; }
const SessionID& session_id() const { return session_id_; }
CommandController* controller() { return &controller_; }
+ // Setters /////////////////////////////////////////////////////////////////
+
+ void set_user_data_dir_profiles(const std::vector<std::wstring>& profiles) {
+ g_browser_process->user_data_dir_profiles() = profiles;
+ }
+
// Browser Creation Helpers /////////////////////////////////////////////////
// Opens a new window with the default blank tab.
@@ -217,6 +229,10 @@
void CloseTab();
void CloseApp();
void NewWindow();
+ // Commands to create a new window in a specific profile.
+ void NewProfileWindowByName(const std::wstring& profile);
+ // The index starts with 0, and specifies the index in the profiles vector.
+ void NewProfileWindowByIndex(int index);
void NewIncognitoWindow();
void CloseWindow();
void SelectNextTab();
@@ -276,6 +292,8 @@
void ShowDownloadsTab();
void OpenBookmarksManager();
void ToggleBookmarksBar();
+ void OpenSelectProfileDialog();
+ void OpenNewProfileDialog();
/////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « chrome/app/resources/locale_settings_zh-TW.rc ('k') | chrome/browser/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698