OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 Profile* profile); | 568 Profile* profile); |
569 virtual void ShowPageInfo(Profile* profile, | 569 virtual void ShowPageInfo(Profile* profile, |
570 const GURL& url, | 570 const GURL& url, |
571 const NavigationEntry::SSLStatus& ssl, | 571 const NavigationEntry::SSLStatus& ssl, |
572 bool show_history); | 572 bool show_history); |
573 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event); | 573 virtual bool IsReservedAccelerator(const NativeWebKeyboardEvent& event); |
574 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents); | 574 virtual void ShowRepostFormWarningDialog(TabContents* tab_contents); |
575 virtual bool ShouldAddNavigationsToHistory() const; | 575 virtual bool ShouldAddNavigationsToHistory() const; |
576 virtual void OnDidGetApplicationInfo(TabContents* tab_contents, | 576 virtual void OnDidGetApplicationInfo(TabContents* tab_contents, |
577 int32 page_id); | 577 int32 page_id); |
| 578 virtual Browser* GetBrowser() { return this; } |
578 | 579 |
579 // Overridden from SelectFileDialog::Listener: | 580 // Overridden from SelectFileDialog::Listener: |
580 virtual void FileSelected(const FilePath& path, int index, void* params); | 581 virtual void FileSelected(const FilePath& path, int index, void* params); |
581 | 582 |
582 // Overridden from NotificationObserver: | 583 // Overridden from NotificationObserver: |
583 virtual void Observe(NotificationType type, | 584 virtual void Observe(NotificationType type, |
584 const NotificationSource& source, | 585 const NotificationSource& source, |
585 const NotificationDetails& details); | 586 const NotificationDetails& details); |
586 | 587 |
587 // Command and state updating /////////////////////////////////////////////// | 588 // Command and state updating /////////////////////////////////////////////// |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
820 // Dialog box used for opening and saving files. | 821 // Dialog box used for opening and saving files. |
821 scoped_refptr<SelectFileDialog> select_file_dialog_; | 822 scoped_refptr<SelectFileDialog> select_file_dialog_; |
822 | 823 |
823 // Keep track of the encoding auto detect pref. | 824 // Keep track of the encoding auto detect pref. |
824 BooleanPrefMember encoding_auto_detect_; | 825 BooleanPrefMember encoding_auto_detect_; |
825 | 826 |
826 DISALLOW_COPY_AND_ASSIGN(Browser); | 827 DISALLOW_COPY_AND_ASSIGN(Browser); |
827 }; | 828 }; |
828 | 829 |
829 #endif // CHROME_BROWSER_BROWSER_H_ | 830 #endif // CHROME_BROWSER_BROWSER_H_ |
OLD | NEW |