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

Side by Side Diff: chrome/browser/automation/automation_provider_observers.h

Issue 5648004: Add the "virtual" keyword on method overrides that are missing it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing file Created 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/autofill/home_address.h ('k') | chrome/browser/bookmarks/bookmark_storage.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 // before looking up/returning search engine info. 763 // before looking up/returning search engine info.
764 class AutomationProviderSearchEngineObserver 764 class AutomationProviderSearchEngineObserver
765 : public TemplateURLModelObserver { 765 : public TemplateURLModelObserver {
766 public: 766 public:
767 AutomationProviderSearchEngineObserver( 767 AutomationProviderSearchEngineObserver(
768 AutomationProvider* provider, 768 AutomationProvider* provider,
769 IPC::Message* reply_message) 769 IPC::Message* reply_message)
770 : provider_(provider), 770 : provider_(provider),
771 reply_message_(reply_message) {} 771 reply_message_(reply_message) {}
772 772
773 void OnTemplateURLModelChanged(); 773 virtual void OnTemplateURLModelChanged();
774 774
775 private: 775 private:
776 AutomationProvider* provider_; 776 AutomationProvider* provider_;
777 IPC::Message* reply_message_; 777 IPC::Message* reply_message_;
778 778
779 DISALLOW_COPY_AND_ASSIGN(AutomationProviderSearchEngineObserver); 779 DISALLOW_COPY_AND_ASSIGN(AutomationProviderSearchEngineObserver);
780 }; 780 };
781 781
782 // Allows the automation provider to wait for history queries to finish. 782 // Allows the automation provider to wait for history queries to finish.
783 class AutomationProviderHistoryObserver { 783 class AutomationProviderHistoryObserver {
(...skipping 15 matching lines...) Expand all
799 799
800 // Allows the automation provider to wait for import queries to finish. 800 // Allows the automation provider to wait for import queries to finish.
801 class AutomationProviderImportSettingsObserver 801 class AutomationProviderImportSettingsObserver
802 : public ImporterHost::Observer { 802 : public ImporterHost::Observer {
803 public: 803 public:
804 AutomationProviderImportSettingsObserver( 804 AutomationProviderImportSettingsObserver(
805 AutomationProvider* provider, 805 AutomationProvider* provider,
806 IPC::Message* reply_message) 806 IPC::Message* reply_message)
807 : provider_(provider), 807 : provider_(provider),
808 reply_message_(reply_message) {} 808 reply_message_(reply_message) {}
809 void ImportStarted() {} 809 virtual void ImportStarted() {}
810 void ImportItemStarted(importer::ImportItem item) {} 810 virtual void ImportItemStarted(importer::ImportItem item) {}
811 void ImportItemEnded(importer::ImportItem item) {} 811 virtual void ImportItemEnded(importer::ImportItem item) {}
812 void ImportEnded(); 812 virtual void ImportEnded();
813 private: 813 private:
814 AutomationProvider* provider_; 814 AutomationProvider* provider_;
815 IPC::Message* reply_message_; 815 IPC::Message* reply_message_;
816 }; 816 };
817 817
818 // Allows automation provider to wait for getting passwords to finish. 818 // Allows automation provider to wait for getting passwords to finish.
819 class AutomationProviderGetPasswordsObserver 819 class AutomationProviderGetPasswordsObserver
820 : public PasswordStoreConsumer { 820 : public PasswordStoreConsumer {
821 public: 821 public:
822 AutomationProviderGetPasswordsObserver( 822 AutomationProviderGetPasswordsObserver(
823 AutomationProvider* provider, 823 AutomationProvider* provider,
824 IPC::Message* reply_message) 824 IPC::Message* reply_message)
825 : provider_(provider), 825 : provider_(provider),
826 reply_message_(reply_message) {} 826 reply_message_(reply_message) {}
827 827
828 void OnPasswordStoreRequestDone( 828 virtual void OnPasswordStoreRequestDone(
829 int handle, const std::vector<webkit_glue::PasswordForm*>& result); 829 int handle, const std::vector<webkit_glue::PasswordForm*>& result);
830 830
831 private: 831 private:
832 AutomationProvider* provider_; 832 AutomationProvider* provider_;
833 IPC::Message* reply_message_; 833 IPC::Message* reply_message_;
834 }; 834 };
835 835
836 // Allows the automation provider to wait for clearing browser data to finish. 836 // Allows the automation provider to wait for clearing browser data to finish.
837 class AutomationProviderBrowsingDataObserver 837 class AutomationProviderBrowsingDataObserver
838 : public BrowsingDataRemover::Observer { 838 : public BrowsingDataRemover::Observer {
839 public: 839 public:
840 AutomationProviderBrowsingDataObserver( 840 AutomationProviderBrowsingDataObserver(
841 AutomationProvider* provider, 841 AutomationProvider* provider,
842 IPC::Message* reply_message) 842 IPC::Message* reply_message)
843 : provider_(provider), 843 : provider_(provider),
844 reply_message_(reply_message) {} 844 reply_message_(reply_message) {}
845 void OnBrowsingDataRemoverDone(); 845 virtual void OnBrowsingDataRemoverDone();
846 846
847 private: 847 private:
848 AutomationProvider* provider_; 848 AutomationProvider* provider_;
849 IPC::Message* reply_message_; 849 IPC::Message* reply_message_;
850 }; 850 };
851 851
852 // Allows automation provider to wait until page load after selecting an item 852 // Allows automation provider to wait until page load after selecting an item
853 // in the omnibox popup. 853 // in the omnibox popup.
854 class OmniboxAcceptNotificationObserver : public NotificationObserver { 854 class OmniboxAcceptNotificationObserver : public NotificationObserver {
855 public: 855 public:
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 private: 988 private:
989 AutomationJSONReply reply_; 989 AutomationJSONReply reply_;
990 BalloonCollection* collection_; 990 BalloonCollection* collection_;
991 int count_; 991 int count_;
992 992
993 DISALLOW_COPY_AND_ASSIGN(OnNotificationBalloonCountObserver); 993 DISALLOW_COPY_AND_ASSIGN(OnNotificationBalloonCountObserver);
994 }; 994 };
995 995
996 996
997 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 997 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/home_address.h ('k') | chrome/browser/bookmarks/bookmark_storage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698