OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_VIEWS_LOAD_COMPLETE_LISTENER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOAD_COMPLETE_LISTENER_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_LOAD_COMPLETE_LISTENER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOAD_COMPLETE_LISTENER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 }; | 25 }; |
26 | 26 |
27 explicit LoadCompleteListener(Delegate* delegate); | 27 explicit LoadCompleteListener(Delegate* delegate); |
28 | 28 |
29 virtual ~LoadCompleteListener(); | 29 virtual ~LoadCompleteListener(); |
30 | 30 |
31 private: | 31 private: |
32 // content::NotificationObserver: | 32 // content::NotificationObserver: |
33 virtual void Observe(int type, | 33 virtual void Observe(int type, |
34 const content::NotificationSource& source, | 34 const content::NotificationSource& source, |
35 const content::NotificationDetails& details) OVERRIDE; | 35 const content::NotificationDetails& details) override; |
36 | 36 |
37 content::NotificationRegistrar registrar_; | 37 content::NotificationRegistrar registrar_; |
38 | 38 |
39 // Delegate to be notified after the first page load has completed. | 39 // Delegate to be notified after the first page load has completed. |
40 Delegate* delegate_; | 40 Delegate* delegate_; |
41 | 41 |
42 DISALLOW_COPY_AND_ASSIGN(LoadCompleteListener); | 42 DISALLOW_COPY_AND_ASSIGN(LoadCompleteListener); |
43 }; | 43 }; |
44 | 44 |
45 #endif // CHROME_BROWSER_UI_VIEWS_LOAD_COMPLETE_LISTENER_H_ | 45 #endif // CHROME_BROWSER_UI_VIEWS_LOAD_COMPLETE_LISTENER_H_ |
OLD | NEW |