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

Unified Diff: ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions_bridge.h

Issue 2970693004: (NO NEED REVIEW) loading spinner background for bookmarks panel (iOS)
Patch Set: move synced_sessions_bridge to browser/ui/sync/ Created 3 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions_bridge.h
diff --git a/ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions_bridge.h b/ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions_bridge.h
deleted file mode 100644
index faba31d4da80a5aa298ad6e8894692f1c943d7c5..0000000000000000000000000000000000000000
--- a/ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions_bridge.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef IOS_CHROME_BROWSER_UI_NTP_RECENT_TABS_SYNCED_SESSIONS_BRIDGE_H_
-#define IOS_CHROME_BROWSER_UI_NTP_RECENT_TABS_SYNCED_SESSIONS_BRIDGE_H_
-
-#import <UIKit/UIKit.h>
-
-#import "base/ios/weak_nsobject.h"
-#include "components/signin/core/browser/signin_manager_base.h"
-#include "components/sync/driver/sync_service_observer.h"
-#import "ios/chrome/browser/sync/sync_observer_bridge.h"
-#import "ios/chrome/browser/ui/ntp/recent_tabs/synced_sessions_bridge.h"
-
-namespace ios {
-class ChromeBrowserState;
-}
-class SigninManager;
-
-@class RecentTabsPanelController;
-
-@protocol SyncedSessionsObserver<SyncObserverModelBridge>
-- (void)reloadSessions;
-@end
-
-namespace synced_sessions {
-
-// Bridge class that will notify the panel when the remote sessions content
-// change.
-class SyncedSessionsObserverBridge : public SyncObserverBridge,
- public SigninManagerBase::Observer {
- public:
- SyncedSessionsObserverBridge(id<SyncedSessionsObserver> owner,
- ios::ChromeBrowserState* browserState);
- ~SyncedSessionsObserverBridge() override;
- // SyncObserverBridge implementation.
- void OnStateChanged(syncer::SyncService* sync) override;
- void OnSyncCycleCompleted(syncer::SyncService* sync) override;
- void OnSyncConfigurationCompleted(syncer::SyncService* sync) override;
- void OnForeignSessionUpdated(syncer::SyncService* sync) override;
- // SigninManagerBase::Observer implementation.
- void GoogleSignedOut(const std::string& account_id,
- const std::string& username) override;
- // Returns true if the first sync cycle that contains session information is
- // completed. Returns false otherwise.
- bool IsFirstSyncCycleCompleted();
-
- private:
- base::WeakNSProtocol<id<SyncedSessionsObserver>> owner_;
- SigninManager* signin_manager_;
- syncer::SyncService* sync_service_;
- ScopedObserver<SigninManagerBase, SigninManagerBase::Observer>
- signin_manager_observer_;
- // Stores whether the first sync cycle that contains session information is
- // completed.
- bool first_sync_cycle_is_completed_;
-};
-
-} // namespace synced_sessions
-
-#endif // IOS_CHROME_BROWSER_UI_NTP_RECENT_TABS_SYNCED_SESSIONS_BRIDGE_H_

Powered by Google App Engine
This is Rietveld 408576698