| 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_BROWSER_EXTENSIONS_API_TABS_TABS_EVENT_ROUTER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_EVENT_ROUTER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_EVENT_ROUTER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_EVENT_ROUTER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // favicon::FaviconDriverObserver: | 87 // favicon::FaviconDriverObserver: |
| 88 void OnFaviconUpdated(favicon::FaviconDriver* favicon_driver, | 88 void OnFaviconUpdated(favicon::FaviconDriver* favicon_driver, |
| 89 NotificationIconType notification_icon_type, | 89 NotificationIconType notification_icon_type, |
| 90 const GURL& icon_url, | 90 const GURL& icon_url, |
| 91 bool icon_url_changed, | 91 bool icon_url_changed, |
| 92 const gfx::Image& image) override; | 92 const gfx::Image& image) override; |
| 93 | 93 |
| 94 // memory::TabManagerObserver: | 94 // memory::TabManagerObserver: |
| 95 void OnDiscardedStateChange(content::WebContents* contents, | 95 void OnDiscardedStateChange(content::WebContents* contents, |
| 96 bool is_discarded) override; | 96 bool is_discarded) override; |
| 97 void OnAutoDiscardableStateChange(content::WebContents* contents, |
| 98 bool is_auto_discardable) override; |
| 97 | 99 |
| 98 private: | 100 private: |
| 99 // "Synthetic" event. Called from TabInsertedAt if new tab is detected. | 101 // "Synthetic" event. Called from TabInsertedAt if new tab is detected. |
| 100 void TabCreatedAt(content::WebContents* contents, int index, bool active); | 102 void TabCreatedAt(content::WebContents* contents, int index, bool active); |
| 101 | 103 |
| 102 // Internal processing of tab updated events. Intended to be called when | 104 // Internal processing of tab updated events. Intended to be called when |
| 103 // there's any changed property. | 105 // there's any changed property. |
| 104 class TabEntry; | 106 class TabEntry; |
| 105 void TabUpdated(TabEntry* entry, | 107 void TabUpdated(TabEntry* entry, |
| 106 std::set<std::string> changed_property_names); | 108 std::set<std::string> changed_property_names); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 | 207 |
| 206 ScopedObserver<memory::TabManager, TabsEventRouter> | 208 ScopedObserver<memory::TabManager, TabsEventRouter> |
| 207 tab_manager_scoped_observer_; | 209 tab_manager_scoped_observer_; |
| 208 | 210 |
| 209 DISALLOW_COPY_AND_ASSIGN(TabsEventRouter); | 211 DISALLOW_COPY_AND_ASSIGN(TabsEventRouter); |
| 210 }; | 212 }; |
| 211 | 213 |
| 212 } // namespace extensions | 214 } // namespace extensions |
| 213 | 215 |
| 214 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_EVENT_ROUTER_H_ | 216 #endif // CHROME_BROWSER_EXTENSIONS_API_TABS_TABS_EVENT_ROUTER_H_ |
| OLD | NEW |