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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 2562503002: Generalize WebContentsObserver::SecurityStyleChanged (Closed)
Patch Set: Created 4 years 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 void WebContentsImpl::DidChangeVisibleSecurityState() { 1464 void WebContentsImpl::DidChangeVisibleSecurityState() {
1465 if (delegate_) { 1465 if (delegate_) {
1466 delegate_->VisibleSecurityStateChanged(this); 1466 delegate_->VisibleSecurityStateChanged(this);
1467 1467
1468 SecurityStyleExplanations security_style_explanations; 1468 SecurityStyleExplanations security_style_explanations;
1469 blink::WebSecurityStyle security_style = 1469 blink::WebSecurityStyle security_style =
1470 delegate_->GetSecurityStyle(this, &security_style_explanations); 1470 delegate_->GetSecurityStyle(this, &security_style_explanations);
1471 for (auto& observer : observers_) { 1471 for (auto& observer : observers_) {
1472 observer.SecurityStyleChanged(security_style, 1472 observer.SecurityStyleChanged(security_style,
1473 security_style_explanations); 1473 security_style_explanations);
1474 observer.DidChangeVisibleSecurityState();
1474 } 1475 }
1475 } 1476 }
1476 } 1477 }
1477 1478
1478 void WebContentsImpl::Stop() { 1479 void WebContentsImpl::Stop() {
1479 for (FrameTreeNode* node : frame_tree_.Nodes()) 1480 for (FrameTreeNode* node : frame_tree_.Nodes())
1480 node->StopLoading(); 1481 node->StopLoading();
1481 for (auto& observer : observers_) 1482 for (auto& observer : observers_)
1482 observer.NavigationStopped(); 1483 observer.NavigationStopped();
1483 } 1484 }
(...skipping 3796 matching lines...) Expand 10 before | Expand all | Expand 10 after
5280 dialog_manager_ = dialog_manager; 5281 dialog_manager_ = dialog_manager;
5281 } 5282 }
5282 5283
5283 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) { 5284 void WebContentsImpl::RemoveBindingSet(const std::string& interface_name) {
5284 auto it = binding_sets_.find(interface_name); 5285 auto it = binding_sets_.find(interface_name);
5285 if (it != binding_sets_.end()) 5286 if (it != binding_sets_.end())
5286 binding_sets_.erase(it); 5287 binding_sets_.erase(it);
5287 } 5288 }
5288 5289
5289 } // namespace content 5290 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698