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

Side by Side Diff: chrome/browser/ui/browser.h

Issue 5915006: Remove user-related data from local_state and add to user_preferences, i... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_
6 #define CHROME_BROWSER_UI_BROWSER_H_ 6 #define CHROME_BROWSER_UI_BROWSER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 void FindInPage(bool find_next, bool forward_direction); 954 void FindInPage(bool find_next, bool forward_direction);
955 955
956 // Closes the frame. 956 // Closes the frame.
957 // TODO(beng): figure out if we need this now that the frame itself closes 957 // TODO(beng): figure out if we need this now that the frame itself closes
958 // after a return to the message loop. 958 // after a return to the message loop.
959 void CloseFrame(); 959 void CloseFrame();
960 960
961 void TabDetachedAtImpl(TabContentsWrapper* contents, 961 void TabDetachedAtImpl(TabContentsWrapper* contents,
962 int index, DetachType type); 962 int index, DetachType type);
963 963
964 // Create a preference dictionary for the provided application name. This is 964 // Create a preference dictionary for the provided application name, in the
965 // done only once per application name / per session. 965 // given user profile. This is done only once per application name / per
966 static void RegisterAppPrefs(const std::string& app_name); 966 // session / per user profile.
967 static void RegisterAppPrefs(const std::string& app_name, Profile* profile);
967 968
968 // Shared code between Reload() and ReloadIgnoringCache(). 969 // Shared code between Reload() and ReloadIgnoringCache().
969 void ReloadInternal(WindowOpenDisposition disposition, bool ignore_cache); 970 void ReloadInternal(WindowOpenDisposition disposition, bool ignore_cache);
970 971
971 // Return true if the window dispositions means opening a new tab. 972 // Return true if the window dispositions means opening a new tab.
972 bool ShouldOpenNewTabForWindowDisposition(WindowOpenDisposition disposition); 973 bool ShouldOpenNewTabForWindowDisposition(WindowOpenDisposition disposition);
973 974
974 // Depending on the disposition, return the current tab or a clone of the 975 // Depending on the disposition, return the current tab or a clone of the
975 // current tab. 976 // current tab.
976 TabContents* GetOrCloneTabForDisposition(WindowOpenDisposition disposition); 977 TabContents* GetOrCloneTabForDisposition(WindowOpenDisposition disposition);
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 // and we install ourselves as an observer. 1144 // and we install ourselves as an observer.
1144 TabRestoreService* tab_restore_service_; 1145 TabRestoreService* tab_restore_service_;
1145 1146
1146 scoped_ptr<InstantController> instant_; 1147 scoped_ptr<InstantController> instant_;
1147 scoped_ptr<InstantUnloadHandler> instant_unload_handler_; 1148 scoped_ptr<InstantUnloadHandler> instant_unload_handler_;
1148 1149
1149 DISALLOW_COPY_AND_ASSIGN(Browser); 1150 DISALLOW_COPY_AND_ASSIGN(Browser);
1150 }; 1151 };
1151 1152
1152 #endif // CHROME_BROWSER_UI_BROWSER_H_ 1153 #endif // CHROME_BROWSER_UI_BROWSER_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698