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 <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 // Shows the Find Bar, optionally selecting the next entry that matches the | 697 // Shows the Find Bar, optionally selecting the next entry that matches the |
698 // existing search string for that Tab. |forward_direction| controls the | 698 // existing search string for that Tab. |forward_direction| controls the |
699 // search direction. | 699 // search direction. |
700 void FindInPage(bool find_next, bool forward_direction); | 700 void FindInPage(bool find_next, bool forward_direction); |
701 | 701 |
702 // Closes the frame. | 702 // Closes the frame. |
703 // TODO(beng): figure out if we need this now that the frame itself closes | 703 // TODO(beng): figure out if we need this now that the frame itself closes |
704 // after a return to the message loop. | 704 // after a return to the message loop. |
705 void CloseFrame(); | 705 void CloseFrame(); |
706 | 706 |
707 // Compute a deterministic name based on the URL. We use this pseudo name | |
708 // as a key to store window location per application URLs. | |
709 static std::wstring ComputeApplicationNameFromURL(const GURL& url); | |
710 | |
711 FRIEND_TEST(BrowserTest, NoTabsInPopups); | 707 FRIEND_TEST(BrowserTest, NoTabsInPopups); |
712 | 708 |
713 // Create a preference dictionary for the provided application name. This is | 709 // Create a preference dictionary for the provided application name. This is |
714 // done only once per application name / per session. | 710 // done only once per application name / per session. |
715 static void RegisterAppPrefs(const std::wstring& app_name); | 711 static void RegisterAppPrefs(const std::wstring& app_name); |
716 | 712 |
717 // Data members ///////////////////////////////////////////////////////////// | 713 // Data members ///////////////////////////////////////////////////////////// |
718 | 714 |
719 NotificationRegistrar registrar_; | 715 NotificationRegistrar registrar_; |
720 | 716 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 // Dialog box used for opening and saving files. | 820 // Dialog box used for opening and saving files. |
825 scoped_refptr<SelectFileDialog> select_file_dialog_; | 821 scoped_refptr<SelectFileDialog> select_file_dialog_; |
826 | 822 |
827 // Keep track of the encoding auto detect pref. | 823 // Keep track of the encoding auto detect pref. |
828 BooleanPrefMember encoding_auto_detect_; | 824 BooleanPrefMember encoding_auto_detect_; |
829 | 825 |
830 DISALLOW_COPY_AND_ASSIGN(Browser); | 826 DISALLOW_COPY_AND_ASSIGN(Browser); |
831 }; | 827 }; |
832 | 828 |
833 #endif // CHROME_BROWSER_BROWSER_H_ | 829 #endif // CHROME_BROWSER_BROWSER_H_ |
OLD | NEW |