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

Side by Side Diff: ios/chrome/browser/interstitials/ios_chrome_controller_client.mm

Issue 1836793002: [ios] Moved WebLoadParams inside NavigationManager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | ios/chrome/browser/safe_browsing/safe_browsing_blocking_page.mm » ('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/interstitials/ios_chrome_controller_client.h" 5 #include "ios/chrome/browser/interstitials/ios_chrome_controller_client.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "ios/chrome/browser/application_context.h" 8 #include "ios/chrome/browser/application_context.h"
9 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 9 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
10 #include "ios/chrome/browser/pref_names.h" 10 #include "ios/chrome/browser/pref_names.h"
11 #include "ios/web/public/interstitials/web_interstitial.h" 11 #include "ios/web/public/interstitials/web_interstitial.h"
12 #include "ios/web/public/navigation_manager.h" 12 #import "ios/web/public/navigation_manager.h"
13 #include "ios/web/public/web_state/web_state.h" 13 #include "ios/web/public/web_state/web_state.h"
14 14
15 IOSChromeControllerClient::IOSChromeControllerClient(web::WebState* web_state) 15 IOSChromeControllerClient::IOSChromeControllerClient(web::WebState* web_state)
16 : web_state_(web_state), web_interstitial_(nullptr) {} 16 : web_state_(web_state), web_interstitial_(nullptr) {}
17 17
18 IOSChromeControllerClient::~IOSChromeControllerClient() {} 18 IOSChromeControllerClient::~IOSChromeControllerClient() {}
19 19
20 void IOSChromeControllerClient::SetWebInterstitial( 20 void IOSChromeControllerClient::SetWebInterstitial(
21 web::WebInterstitial* web_interstitial) { 21 web::WebInterstitial* web_interstitial) {
22 web_interstitial_ = web_interstitial; 22 web_interstitial_ = web_interstitial;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 PrefService* IOSChromeControllerClient::GetPrefService() { 56 PrefService* IOSChromeControllerClient::GetPrefService() {
57 return ios::ChromeBrowserState::FromBrowserState( 57 return ios::ChromeBrowserState::FromBrowserState(
58 web_state_->GetBrowserState()) 58 web_state_->GetBrowserState())
59 ->GetPrefs(); 59 ->GetPrefs();
60 } 60 }
61 61
62 const std::string IOSChromeControllerClient::GetExtendedReportingPrefName() { 62 const std::string IOSChromeControllerClient::GetExtendedReportingPrefName() {
63 return prefs::kSafeBrowsingExtendedReportingEnabled; 63 return prefs::kSafeBrowsingExtendedReportingEnabled;
64 } 64 }
OLDNEW
« no previous file with comments | « no previous file | ios/chrome/browser/safe_browsing/safe_browsing_blocking_page.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698