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

Unified Diff: ios/chrome/browser/sessions/session_service_ios.h

Issue 2802763002: [ios] Cleanup SessionServiceIOS implementation. (Closed)
Patch Set: Address comments. Created 3 years, 8 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
« no previous file with comments | « ios/chrome/browser/sessions/session_service.mm ('k') | ios/chrome/browser/sessions/session_service_ios.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/sessions/session_service_ios.h
diff --git a/ios/chrome/browser/sessions/session_service.h b/ios/chrome/browser/sessions/session_service_ios.h
similarity index 70%
rename from ios/chrome/browser/sessions/session_service.h
rename to ios/chrome/browser/sessions/session_service_ios.h
index 0676b2e4298b6e729a7d8911c95cc79bb859ec67..197394999aba646b16146c0eb280686af489ac4d 100644
--- a/ios/chrome/browser/sessions/session_service.h
+++ b/ios/chrome/browser/sessions/session_service_ios.h
@@ -2,34 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef IOS_CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_
-#define IOS_CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_
+#ifndef IOS_CHROME_BROWSER_SESSIONS_SESSION_SERVICE_IOS_H_
+#define IOS_CHROME_BROWSER_SESSIONS_SESSION_SERVICE_IOS_H_
#import <Foundation/Foundation.h>
-#include "base/mac/scoped_nsobject.h"
-
namespace ios {
class ChromeBrowserState;
}
@class SessionWindowIOS;
-// Trivial NSKeyedUnarchiver subclass that can be configured with a
-// ChromeBrowserState instance that decoding classes can use.
-@interface SessionWindowUnarchiver : NSKeyedUnarchiver
-
-// The BrowserState set on the unarchiver at init; a weak pointer.
-@property(nonatomic, readonly) ios::ChromeBrowserState* browserState;
-
-// Inits exactly as initForReadingWithData: does, additionally setting
-// |browserState| on the receiver.
-- (instancetype)initForReadingWithData:(NSData*)data
- browserState:(ios::ChromeBrowserState*)browserState
- NS_DESIGNATED_INITIALIZER;
-
-@end
-
// A singleton service for saving the current session. Can either save on a
// delay or immediately. Saving is always performed on a separate thread.
@interface SessionServiceIOS : NSObject
@@ -58,8 +41,7 @@ class ChromeBrowserState;
// Loads the window from the given backup file on disk on the main thread.
// Returns nil if unable to read the sessions.
-- (SessionWindowIOS*)loadWindowFromPath:(NSString*)path
- forBrowserState:(ios::ChromeBrowserState*)browserState;
+- (SessionWindowIOS*)loadWindowFromPath:(NSString*)sessionPath;
// Returns the path of the session file.
- (NSString*)sessionFilePathForDirectory:(NSString*)directory;
@@ -77,4 +59,4 @@ class ChromeBrowserState;
@end
-#endif // IOS_CHROME_BROWSER_SESSIONS_SESSION_SERVICE_H_
+#endif // IOS_CHROME_BROWSER_SESSIONS_SESSION_SERVICE_IOS_H_
« no previous file with comments | « ios/chrome/browser/sessions/session_service.mm ('k') | ios/chrome/browser/sessions/session_service_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698