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

Side by Side Diff: ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.mm

Issue 1836793002: [ios] Moved WebLoadParams inside NavigationManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « ios/chrome/browser/ssl/ios_chrome_security_state_model_client.mm ('k') | ios/web/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.h" 5 #include "ios/chrome/browser/sync/ios_chrome_synced_tab_delegate.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "components/sessions/ios/ios_serialized_navigation_builder.h" 8 #include "components/sessions/ios/ios_serialized_navigation_builder.h"
9 #include "components/sync_sessions/sync_sessions_client.h" 9 #include "components/sync_sessions/sync_sessions_client.h"
10 #include "components/sync_sessions/synced_window_delegate.h" 10 #include "components/sync_sessions/synced_window_delegate.h"
11 #include "components/sync_sessions/synced_window_delegates_getter.h" 11 #include "components/sync_sessions/synced_window_delegates_getter.h"
12 #include "ios/chrome/browser/sessions/ios_chrome_session_tab_helper.h" 12 #include "ios/chrome/browser/sessions/ios_chrome_session_tab_helper.h"
13 #include "ios/web/public/favicon_status.h" 13 #include "ios/web/public/favicon_status.h"
14 #include "ios/web/public/navigation_item.h" 14 #include "ios/web/public/navigation_item.h"
15 #include "ios/web/public/navigation_manager.h" 15 #import "ios/web/public/navigation_manager.h"
16 #include "ios/web/public/web_state/web_state.h" 16 #include "ios/web/public/web_state/web_state.h"
17 17
18 using web::NavigationItem; 18 using web::NavigationItem;
19 19
20 DEFINE_WEB_STATE_USER_DATA_KEY(IOSChromeSyncedTabDelegate); 20 DEFINE_WEB_STATE_USER_DATA_KEY(IOSChromeSyncedTabDelegate);
21 21
22 namespace { 22 namespace {
23 23
24 // Helper to access the correct NavigationItem, accounting for pending entries. 24 // Helper to access the correct NavigationItem, accounting for pending entries.
25 NavigationItem* GetPossiblyPendingItemAtIndex(web::WebState* web_state, int i) { 25 NavigationItem* GetPossiblyPendingItemAtIndex(web::WebState* web_state, int i) {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 for (int i = 0; i < entry_count; ++i) { 123 for (int i = 0; i < entry_count; ++i) {
124 const GURL& virtual_url = GetVirtualURLAtIndex(i); 124 const GURL& virtual_url = GetVirtualURLAtIndex(i);
125 if (!virtual_url.is_valid()) 125 if (!virtual_url.is_valid())
126 continue; 126 continue;
127 127
128 if (sessions_client->ShouldSyncURL(virtual_url)) 128 if (sessions_client->ShouldSyncURL(virtual_url))
129 return true; 129 return true;
130 } 130 }
131 return false; 131 return false;
132 } 132 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ssl/ios_chrome_security_state_model_client.mm ('k') | ios/web/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698