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

Side by Side Diff: ios/chrome/browser/ui/tab_switcher/tab_switcher_model.mm

Issue 2612733004: Renames SessionChanges and SessionCellData to have a TabSwitcher prefix. (Closed)
Patch Set: Created 3 years, 11 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_model.h" 5 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_model.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "components/browser_sync/profile_sync_service.h" 10 #include "components/browser_sync/profile_sync_service.h"
11 #include "components/sessions/core/session_id.h" 11 #include "components/sessions/core/session_id.h"
12 #include "components/signin/core/browser/signin_manager.h" 12 #include "components/signin/core/browser/signin_manager.h"
13 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 13 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
14 #include "ios/chrome/browser/signin/signin_manager_factory.h" 14 #include "ios/chrome/browser/signin/signin_manager_factory.h"
15 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h" 15 #include "ios/chrome/browser/sync/ios_chrome_profile_sync_service_factory.h"
16 #include "ios/chrome/browser/sync/sync_setup_service.h" 16 #include "ios/chrome/browser/sync/sync_setup_service.h"
17 #include "ios/chrome/browser/sync/sync_setup_service_factory.h" 17 #include "ios/chrome/browser/sync/sync_setup_service_factory.h"
18 #import "ios/chrome/browser/tabs/tab.h" 18 #import "ios/chrome/browser/tabs/tab.h"
19 #import "ios/chrome/browser/tabs/tab_model.h" 19 #import "ios/chrome/browser/tabs/tab_model.h"
20 #include "ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions.h" 20 #include "ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions.h"
21 #import "ios/chrome/browser/ui/tab_switcher/session_changes.h"
22 #import "ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.h" 21 #import "ios/chrome/browser/ui/tab_switcher/tab_model_snapshot.h"
23 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_cache.h" 22 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_cache.h"
24 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_model_private.h" 23 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_model_private.h"
25 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.h" 24 #import "ios/chrome/browser/ui/tab_switcher/tab_switcher_panel_cell.h"
26 25
27 bool TabSwitcherSessionTypeIsLocalSession(TabSwitcherSessionType sessionType) { 26 bool TabSwitcherSessionTypeIsLocalSession(TabSwitcherSessionType sessionType) {
28 return sessionType == TabSwitcherSessionType::OFF_THE_RECORD_SESSION || 27 return sessionType == TabSwitcherSessionType::OFF_THE_RECORD_SESSION ||
29 sessionType == TabSwitcherSessionType::REGULAR_SESSION; 28 sessionType == TabSwitcherSessionType::REGULAR_SESSION;
30 } 29 }
31 30
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 [self tabModelChanged:model]; 394 [self tabModelChanged:model];
396 } 395 }
397 396
398 - (void)tabModel:(TabModel*)model 397 - (void)tabModel:(TabModel*)model
399 didChangeTabSnapshot:(Tab*)tab 398 didChangeTabSnapshot:(Tab*)tab
400 withImage:(UIImage*)image { 399 withImage:(UIImage*)image {
401 [self tabModelChanged:model]; 400 [self tabModelChanged:model];
402 } 401 }
403 402
404 @end 403 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698