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

Side by Side Diff: ios/web/public/test/fakes/test_web_state_observer.mm

Issue 2752013002: Removed webControllerDidUpdateSSLStatusForCurrentNavigationItem:. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/web/public/test/fakes/test_web_state_observer.h" 5 #include "ios/web/public/test/fakes/test_web_state_observer.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "ios/web/public/web_state/navigation_context.h" 8 #include "ios/web/public/web_state/navigation_context.h"
9 #include "ios/web/public/web_state/web_state.h" 9 #include "ios/web/public/web_state/web_state.h"
10 #include "ios/web/web_state/navigation_context_impl.h" 10 #include "ios/web/web_state/navigation_context_impl.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 NavigationContextImpl::CreateNavigationContext(context->GetWebState(), 83 NavigationContextImpl::CreateNavigationContext(context->GetWebState(),
84 context->GetUrl()); 84 context->GetUrl());
85 } 85 }
86 } 86 }
87 87
88 void TestWebStateObserver::TitleWasSet() { 88 void TestWebStateObserver::TitleWasSet() {
89 title_was_set_info_ = base::MakeUnique<web::TestTitleWasSetInfo>(); 89 title_was_set_info_ = base::MakeUnique<web::TestTitleWasSetInfo>();
90 title_was_set_info_->web_state = web_state(); 90 title_was_set_info_->web_state = web_state();
91 } 91 }
92 92
93 void TestWebStateObserver::DidChangeVisibleSecurityState() {
94 did_change_visible_security_state_info_ =
95 base::MakeUnique<web::TestDidChangeVisibleSecurityStateInfo>();
96 did_change_visible_security_state_info_->web_state = web_state();
97 }
98
93 void TestWebStateObserver::DocumentSubmitted(const std::string& form_name, 99 void TestWebStateObserver::DocumentSubmitted(const std::string& form_name,
94 bool user_initiated) { 100 bool user_initiated) {
95 submit_document_info_ = base::MakeUnique<web::TestSubmitDocumentInfo>(); 101 submit_document_info_ = base::MakeUnique<web::TestSubmitDocumentInfo>();
96 submit_document_info_->web_state = web_state(); 102 submit_document_info_->web_state = web_state();
97 submit_document_info_->form_name = form_name; 103 submit_document_info_->form_name = form_name;
98 submit_document_info_->user_initiated = user_initiated; 104 submit_document_info_->user_initiated = user_initiated;
99 } 105 }
100 106
101 void TestWebStateObserver::FormActivityRegistered(const std::string& form_name, 107 void TestWebStateObserver::FormActivityRegistered(const std::string& form_name,
102 const std::string& field_name, 108 const std::string& field_name,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 start_loading_info_ = base::MakeUnique<web::TestStartLoadingInfo>(); 144 start_loading_info_ = base::MakeUnique<web::TestStartLoadingInfo>();
139 start_loading_info_->web_state = web_state(); 145 start_loading_info_->web_state = web_state();
140 } 146 }
141 147
142 void TestWebStateObserver::DidStopLoading() { 148 void TestWebStateObserver::DidStopLoading() {
143 stop_loading_info_ = base::MakeUnique<web::TestStopLoadingInfo>(); 149 stop_loading_info_ = base::MakeUnique<web::TestStopLoadingInfo>();
144 stop_loading_info_->web_state = web_state(); 150 stop_loading_info_->web_state = web_state();
145 } 151 }
146 152
147 } // namespace web 153 } // namespace web
OLDNEW
« no previous file with comments | « ios/web/public/test/fakes/test_web_state_observer.h ('k') | ios/web/public/test/fakes/test_web_state_observer_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698