OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_TEST_REMOTING_PAGE_LOAD_NOTIFICATION_OBSERVER_H_ | 5 #ifndef CHROME_TEST_REMOTING_PAGE_LOAD_NOTIFICATION_OBSERVER_H_ |
6 #define CHROME_TEST_REMOTING_PAGE_LOAD_NOTIFICATION_OBSERVER_H_ | 6 #define CHROME_TEST_REMOTING_PAGE_LOAD_NOTIFICATION_OBSERVER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "content/public/test/test_utils.h" | 9 #include "content/public/test/test_utils.h" |
9 #include "url/gurl.h" | 10 #include "url/gurl.h" |
10 | 11 |
11 namespace remoting { | 12 namespace remoting { |
12 | 13 |
13 // A PageLoadNotificationObserver allows code to wait until a give URL is loaded | 14 // A PageLoadNotificationObserver allows code to wait until a give URL is loaded |
14 // in any tab in any browser window, i.e. NotificationService::AllSources(). | 15 // in any tab in any browser window, i.e. NotificationService::AllSources(). |
15 // This simple pattern is not easy to implement using | 16 // This simple pattern is not easy to implement using |
16 // WindowedNotificationObserver because we need to bind the observer object | 17 // WindowedNotificationObserver because we need to bind the observer object |
17 // in the callback but we also need to provide the callback when constructing | 18 // in the callback but we also need to provide the callback when constructing |
(...skipping 14 matching lines...) Expand all Loading... |
32 | 33 |
33 GURL target_; | 34 GURL target_; |
34 bool ignore_url_parameters_; | 35 bool ignore_url_parameters_; |
35 | 36 |
36 DISALLOW_COPY_AND_ASSIGN(PageLoadNotificationObserver); | 37 DISALLOW_COPY_AND_ASSIGN(PageLoadNotificationObserver); |
37 }; | 38 }; |
38 | 39 |
39 } // namespace remoting | 40 } // namespace remoting |
40 | 41 |
41 #endif // CHROME_TEST_REMOTING_PAGE_LOAD_NOTIFICATION_OBSERVER_H_ | 42 #endif // CHROME_TEST_REMOTING_PAGE_LOAD_NOTIFICATION_OBSERVER_H_ |
OLD | NEW |