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

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

Issue 1181293003: Expand SecurityStyleChanged interfaces to include explanations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add CONTENT_EXPORT Created 5 years, 6 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 | « content/browser/devtools/protocol/security_handler.cc ('k') | content/content_browser.gypi » ('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 (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 <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 #include "content/public/browser/invalidate_type.h" 76 #include "content/public/browser/invalidate_type.h"
77 #include "content/public/browser/javascript_dialog_manager.h" 77 #include "content/public/browser/javascript_dialog_manager.h"
78 #include "content/public/browser/load_from_memory_cache_details.h" 78 #include "content/public/browser/load_from_memory_cache_details.h"
79 #include "content/public/browser/load_notification_details.h" 79 #include "content/public/browser/load_notification_details.h"
80 #include "content/public/browser/navigation_details.h" 80 #include "content/public/browser/navigation_details.h"
81 #include "content/public/browser/notification_details.h" 81 #include "content/public/browser/notification_details.h"
82 #include "content/public/browser/notification_service.h" 82 #include "content/public/browser/notification_service.h"
83 #include "content/public/browser/render_widget_host_iterator.h" 83 #include "content/public/browser/render_widget_host_iterator.h"
84 #include "content/public/browser/resource_request_details.h" 84 #include "content/public/browser/resource_request_details.h"
85 #include "content/public/browser/screen_orientation_dispatcher_host.h" 85 #include "content/public/browser/screen_orientation_dispatcher_host.h"
86 #include "content/public/browser/security_style_explanations.h"
86 #include "content/public/browser/storage_partition.h" 87 #include "content/public/browser/storage_partition.h"
87 #include "content/public/browser/user_metrics.h" 88 #include "content/public/browser/user_metrics.h"
88 #include "content/public/browser/web_contents_delegate.h" 89 #include "content/public/browser/web_contents_delegate.h"
89 #include "content/public/browser/web_contents_observer.h" 90 #include "content/public/browser/web_contents_observer.h"
90 #include "content/public/common/bindings_policy.h" 91 #include "content/public/common/bindings_policy.h"
91 #include "content/public/common/content_constants.h" 92 #include "content/public/common/content_constants.h"
92 #include "content/public/common/content_switches.h" 93 #include "content/public/common/content_switches.h"
93 #include "content/public/common/page_zoom.h" 94 #include "content/public/common/page_zoom.h"
94 #include "content/public/common/result_codes.h" 95 #include "content/public/common/result_codes.h"
95 #include "content/public/common/security_style.h" 96 #include "content/public/common/security_style.h"
(...skipping 3126 matching lines...) Expand 10 before | Expand all | Expand 10 after
3222 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 3223 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
3223 DidChangeThemeColor(theme_color_)); 3224 DidChangeThemeColor(theme_color_));
3224 last_sent_theme_color_ = theme_color_; 3225 last_sent_theme_color_ = theme_color_;
3225 } 3226 }
3226 } 3227 }
3227 3228
3228 void WebContentsImpl::DidChangeVisibleSSLState() { 3229 void WebContentsImpl::DidChangeVisibleSSLState() {
3229 if (delegate_) { 3230 if (delegate_) {
3230 delegate_->VisibleSSLStateChanged(this); 3231 delegate_->VisibleSSLStateChanged(this);
3231 3232
3232 content::SecurityStyle security_style = delegate_->GetSecurityStyle(this); 3233 SecurityStyleExplanations security_style_explanations;
3233 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 3234 SecurityStyle security_style =
3234 SecurityStyleChanged(security_style)); 3235 delegate_->GetSecurityStyle(this, &security_style_explanations);
3236 FOR_EACH_OBSERVER(
3237 WebContentsObserver, observers_,
3238 SecurityStyleChanged(security_style, security_style_explanations));
3235 } 3239 }
3236 } 3240 }
3237 3241
3238 void WebContentsImpl::NotifyBeforeFormRepostWarningShow() { 3242 void WebContentsImpl::NotifyBeforeFormRepostWarningShow() {
3239 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 3243 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
3240 BeforeFormRepostWarningShow()); 3244 BeforeFormRepostWarningShow());
3241 } 3245 }
3242 3246
3243 void WebContentsImpl::ActivateAndShowRepostFormWarningDialog() { 3247 void WebContentsImpl::ActivateAndShowRepostFormWarningDialog() {
3244 Activate(); 3248 Activate();
(...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after
4461 player_map->erase(it); 4465 player_map->erase(it);
4462 } 4466 }
4463 4467
4464 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) { 4468 void WebContentsImpl::SetForceDisableOverscrollContent(bool force_disable) {
4465 force_disable_overscroll_content_ = force_disable; 4469 force_disable_overscroll_content_ = force_disable;
4466 if (view_) 4470 if (view_)
4467 view_->SetOverscrollControllerEnabled(CanOverscrollContent()); 4471 view_->SetOverscrollControllerEnabled(CanOverscrollContent());
4468 } 4472 }
4469 4473
4470 } // namespace content 4474 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/devtools/protocol/security_handler.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698