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

Unified Diff: ios/web/navigation/crw_session_entry.mm

Issue 2737203002: Remove CRWSessionEntry. (Closed)
Patch Set: fix XCode-clang build Created 3 years, 9 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/web/navigation/crw_session_entry.h ('k') | ios/web/navigation/navigation_item_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/crw_session_entry.mm
diff --git a/ios/web/navigation/crw_session_entry.mm b/ios/web/navigation/crw_session_entry.mm
deleted file mode 100644
index 59ef93503e267701552f30b734ff662950e4cd6a..0000000000000000000000000000000000000000
--- a/ios/web/navigation/crw_session_entry.mm
+++ /dev/null
@@ -1,68 +0,0 @@
-// Copyright 2012 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.
-
-#import "ios/web/navigation/crw_session_entry.h"
-
-#include <stdint.h>
-
-#include <memory>
-
-#import "base/mac/scoped_nsobject.h"
-#include "base/strings/sys_string_conversions.h"
-#import "ios/web/navigation/navigation_item_impl.h"
-#import "ios/web/navigation/nscoder_util.h"
-#import "ios/web/public/navigation_item.h"
-#import "ios/web/public/web_state/page_display_state.h"
-#import "net/base/mac/url_conversions.h"
-
-#if !defined(__has_feature) || !__has_feature(objc_arc)
-#error "This file requires ARC support."
-#endif
-
-@interface CRWSessionEntry () {
- // The NavigationItemImpl corresponding to this CRWSessionEntry.
- // TODO(stuartmorgan): Move ownership to NavigationManagerImpl.
- std::unique_ptr<web::NavigationItemImpl> _navigationItem;
-}
-
-@end
-
-@implementation CRWSessionEntry
-
-- (instancetype)initWithNavigationItem:
- (std::unique_ptr<web::NavigationItem>)item {
- self = [super init];
- if (self) {
- _navigationItem.reset(
- static_cast<web::NavigationItemImpl*>(item.release()));
- }
- return self;
-}
-
-// TODO(ios): Shall we overwrite EqualTo:?
-
-- (instancetype)copyWithZone:(NSZone*)zone {
- CRWSessionEntry* copy = [[[self class] alloc] init];
- copy->_navigationItem.reset(
- new web::NavigationItemImpl(*_navigationItem.get()));
- return copy;
-}
-
-- (NSString*)description {
-#ifndef NDEBUG
- return _navigationItem->GetDescription();
-#else
- return [super description];
-#endif
-}
-
-- (web::NavigationItem*)navigationItem {
- return _navigationItem.get();
-}
-
-- (web::NavigationItemImpl*)navigationItemImpl {
- return _navigationItem.get();
-}
-
-@end
« no previous file with comments | « ios/web/navigation/crw_session_entry.h ('k') | ios/web/navigation/navigation_item_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698