| OLD | NEW |
| 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 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 925 gfx::Size entire_page_size_; | 925 gfx::Size entire_page_size_; |
| 926 | 926 |
| 927 DISALLOW_COPY_AND_ASSIGN(PageSnapshotTaker); | 927 DISALLOW_COPY_AND_ASSIGN(PageSnapshotTaker); |
| 928 }; | 928 }; |
| 929 | 929 |
| 930 class NTPInfoObserver : public NotificationObserver { | 930 class NTPInfoObserver : public NotificationObserver { |
| 931 public: | 931 public: |
| 932 NTPInfoObserver(AutomationProvider* automation, | 932 NTPInfoObserver(AutomationProvider* automation, |
| 933 IPC::Message* reply_message, | 933 IPC::Message* reply_message, |
| 934 CancelableRequestConsumer* consumer); | 934 CancelableRequestConsumer* consumer); |
| 935 virtual ~NTPInfoObserver(); |
| 935 | 936 |
| 936 virtual void Observe(NotificationType type, | 937 virtual void Observe(NotificationType type, |
| 937 const NotificationSource& source, | 938 const NotificationSource& source, |
| 938 const NotificationDetails& details); | 939 const NotificationDetails& details); |
| 939 | 940 |
| 940 private: | 941 private: |
| 941 void OnTopSitesLoaded(); | 942 void OnTopSitesLoaded(); |
| 942 void OnTopSitesReceived(const history::MostVisitedURLList& visited_list); | 943 void OnTopSitesReceived(const history::MostVisitedURLList& visited_list); |
| 943 | 944 |
| 944 AutomationProvider* automation_; | 945 AutomationProvider* automation_; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 987 private: | 988 private: |
| 988 AutomationJSONReply reply_; | 989 AutomationJSONReply reply_; |
| 989 BalloonCollection* collection_; | 990 BalloonCollection* collection_; |
| 990 int count_; | 991 int count_; |
| 991 | 992 |
| 992 DISALLOW_COPY_AND_ASSIGN(OnNotificationBalloonCountObserver); | 993 DISALLOW_COPY_AND_ASSIGN(OnNotificationBalloonCountObserver); |
| 993 }; | 994 }; |
| 994 | 995 |
| 995 | 996 |
| 996 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 997 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
| OLD | NEW |