Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1347)

Side by Side Diff: chrome/browser/extensions/api/tabs/tabs_event_router.cc

Issue 2898033002: [TabManager] Move TabManager into chrome/browser/resource_coordinator. (Closed)
Patch Set: rebase Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698