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 #include "chrome/browser/extensions/api/tabs/tabs_event_router.h" | 5 #include "chrome/browser/extensions/api/tabs/tabs_event_router.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/browser_process.h" | 14 #include "chrome/browser/browser_process.h" |
15 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" | 15 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" |
16 #include "chrome/browser/extensions/api/tabs/tabs_windows_api.h" | 16 #include "chrome/browser/extensions/api/tabs/tabs_windows_api.h" |
17 #include "chrome/browser/extensions/api/tabs/windows_event_router.h" | 17 #include "chrome/browser/extensions/api/tabs/windows_event_router.h" |
18 #include "chrome/browser/extensions/extension_tab_util.h" | 18 #include "chrome/browser/extensions/extension_tab_util.h" |
19 #include "chrome/browser/memory/tab_manager.h" | |
20 #include "chrome/browser/profiles/profile.h" | 19 #include "chrome/browser/profiles/profile.h" |
21 #include "chrome/browser/ui/browser.h" | 20 #include "chrome/browser/ui/browser.h" |
22 #include "chrome/browser/ui/browser_list.h" | 21 #include "chrome/browser/ui/browser_list.h" |
23 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 22 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
24 #include "chrome/common/extensions/extension_constants.h" | 23 #include "chrome/common/extensions/extension_constants.h" |
25 #include "components/favicon/content/content_favicon_driver.h" | 24 #include "components/favicon/content/content_favicon_driver.h" |
26 #include "content/public/browser/favicon_status.h" | 25 #include "content/public/browser/favicon_status.h" |
27 #include "content/public/browser/navigation_entry.h" | 26 #include "content/public/browser/navigation_entry.h" |
28 #include "content/public/browser/web_contents.h" | 27 #include "content/public/browser/web_contents.h" |
29 | 28 |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 } | 556 } |
558 | 557 |
559 void TabsEventRouter::OnAutoDiscardableStateChange(WebContents* contents, | 558 void TabsEventRouter::OnAutoDiscardableStateChange(WebContents* contents, |
560 bool is_auto_discardable) { | 559 bool is_auto_discardable) { |
561 std::set<std::string> changed_property_names; | 560 std::set<std::string> changed_property_names; |
562 changed_property_names.insert(tabs_constants::kAutoDiscardableKey); | 561 changed_property_names.insert(tabs_constants::kAutoDiscardableKey); |
563 DispatchTabUpdatedEvent(contents, std::move(changed_property_names)); | 562 DispatchTabUpdatedEvent(contents, std::move(changed_property_names)); |
564 } | 563 } |
565 | 564 |
566 } // namespace extensions | 565 } // namespace extensions |
OLD | NEW |