OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 IOS_CHROME_BROWSER_READING_LIST_READING_LIST_WEB_STATE_OBSERVER_H_ | 5 #ifndef IOS_CHROME_BROWSER_READING_LIST_READING_LIST_WEB_STATE_OBSERVER_H_ |
6 #define IOS_CHROME_BROWSER_READING_LIST_READING_LIST_WEB_STATE_OBSERVER_H_ | 6 #define IOS_CHROME_BROWSER_READING_LIST_READING_LIST_WEB_STATE_OBSERVER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/timer/timer.h" | 9 #include "base/timer/timer.h" |
10 #include "components/reading_list/ios/reading_list_model_observer.h" | 10 #include "components/reading_list/core/reading_list_model_observer.h" |
11 #include "ios/web/public/web_state/web_state_observer.h" | 11 #include "ios/web/public/web_state/web_state_observer.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
14 class ReadingListModel; | 14 class ReadingListModel; |
15 | 15 |
16 namespace web { | 16 namespace web { |
17 class NavigationItem; | 17 class NavigationItem; |
18 } | 18 } |
19 | 19 |
20 // Observes the loading of pages coming from the reading list, determines | 20 // Observes the loading of pages coming from the reading list, determines |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 std::unique_ptr<base::Timer> timer_; | 76 std::unique_ptr<base::Timer> timer_; |
77 GURL pending_url_; | 77 GURL pending_url_; |
78 int try_number_; | 78 int try_number_; |
79 bool last_load_was_offline_; | 79 bool last_load_was_offline_; |
80 web::PageLoadCompletionStatus last_load_result_; | 80 web::PageLoadCompletionStatus last_load_result_; |
81 | 81 |
82 DISALLOW_COPY_AND_ASSIGN(ReadingListWebStateObserver); | 82 DISALLOW_COPY_AND_ASSIGN(ReadingListWebStateObserver); |
83 }; | 83 }; |
84 | 84 |
85 #endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_WEB_STATE_OBSERVER_H_ | 85 #endif // IOS_CHROME_BROWSER_READING_LIST_READING_LIST_WEB_STATE_OBSERVER_H_ |
OLD | NEW |