| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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_BROWSER_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_H_ |
| 6 #define CHROME_BROWSER_BROWSER_H_ | 6 #define CHROME_BROWSER_BROWSER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 388 void OpenAboutChromeDialog(); | 388 void OpenAboutChromeDialog(); |
| 389 void OpenHelpTab(); | 389 void OpenHelpTab(); |
| 390 #if defined(OS_CHROMEOS) | 390 #if defined(OS_CHROMEOS) |
| 391 void ShowControlPanel(); | 391 void ShowControlPanel(); |
| 392 #endif | 392 #endif |
| 393 | 393 |
| 394 virtual void UpdateDownloadShelfVisibility(bool visible); | 394 virtual void UpdateDownloadShelfVisibility(bool visible); |
| 395 | 395 |
| 396 ///////////////////////////////////////////////////////////////////////////// | 396 ///////////////////////////////////////////////////////////////////////////// |
| 397 | 397 |
| 398 // Sets the value of homepage related prefs to new values. Since we do not |
| 399 // want to change these values for existing users, we can not change the |
| 400 // default values under RegisterUserPrefs. This method gets called during |
| 401 // First Run. |
| 402 static void SetNewHomePagePrefs(PrefService* prefs); |
| 403 |
| 398 static void RegisterPrefs(PrefService* prefs); | 404 static void RegisterPrefs(PrefService* prefs); |
| 399 static void RegisterUserPrefs(PrefService* prefs); | 405 static void RegisterUserPrefs(PrefService* prefs); |
| 400 | 406 |
| 401 // Returns the Browser which contains the tab with the given | 407 // Returns the Browser which contains the tab with the given |
| 402 // NavigationController, also filling in |index| (if valid) with the tab's | 408 // NavigationController, also filling in |index| (if valid) with the tab's |
| 403 // index in the tab strip. | 409 // index in the tab strip. |
| 404 // Returns NULL if not found. | 410 // Returns NULL if not found. |
| 405 // This call is O(N) in the number of tabs. | 411 // This call is O(N) in the number of tabs. |
| 406 static Browser* GetBrowserForController( | 412 static Browser* GetBrowserForController( |
| 407 const NavigationController* controller, int* index); | 413 const NavigationController* controller, int* index); |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 // The browser idle task helps cleanup unused memory resources when idle. | 781 // The browser idle task helps cleanup unused memory resources when idle. |
| 776 scoped_ptr<BrowserIdleTimer> idle_task_; | 782 scoped_ptr<BrowserIdleTimer> idle_task_; |
| 777 | 783 |
| 778 // Keep track of the encoding auto detect pref. | 784 // Keep track of the encoding auto detect pref. |
| 779 BooleanPrefMember encoding_auto_detect_; | 785 BooleanPrefMember encoding_auto_detect_; |
| 780 | 786 |
| 781 DISALLOW_COPY_AND_ASSIGN(Browser); | 787 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 782 }; | 788 }; |
| 783 | 789 |
| 784 #endif // CHROME_BROWSER_BROWSER_H_ | 790 #endif // CHROME_BROWSER_BROWSER_H_ |
| OLD | NEW |