| OLD | NEW |
| 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 "chrome/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <set> | 8 #include <set> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 // SSLErrorHandler. Uses the SafeBrowsing UI manager to send invalid | 663 // SSLErrorHandler. Uses the SafeBrowsing UI manager to send invalid |
| 664 // certificate reports. | 664 // certificate reports. |
| 665 class SafeBrowsingSSLCertReporter : public SSLCertReporter { | 665 class SafeBrowsingSSLCertReporter : public SSLCertReporter { |
| 666 public: | 666 public: |
| 667 explicit SafeBrowsingSSLCertReporter( | 667 explicit SafeBrowsingSSLCertReporter( |
| 668 const scoped_refptr<safe_browsing::SafeBrowsingUIManager>& | 668 const scoped_refptr<safe_browsing::SafeBrowsingUIManager>& |
| 669 safe_browsing_ui_manager) | 669 safe_browsing_ui_manager) |
| 670 : safe_browsing_ui_manager_(safe_browsing_ui_manager) {} | 670 : safe_browsing_ui_manager_(safe_browsing_ui_manager) {} |
| 671 ~SafeBrowsingSSLCertReporter() override {} | 671 ~SafeBrowsingSSLCertReporter() override {} |
| 672 | 672 |
| 673 // SSLCertReporter implementation | 673 // SSLCertReporter methods: |
| 674 void ReportInvalidCertificateChain( | 674 void ReportInvalidCertificateChain( |
| 675 const std::string& serialized_report) override { | 675 const std::string& serialized_report) override { |
| 676 if (safe_browsing_ui_manager_) { | 676 if (safe_browsing_ui_manager_) { |
| 677 safe_browsing_ui_manager_->ReportInvalidCertificateChain( | 677 safe_browsing_ui_manager_->ReportInvalidCertificateChain( |
| 678 serialized_report, base::Bind(&base::DoNothing)); | 678 serialized_report, base::Bind(&base::DoNothing)); |
| 679 } | 679 } |
| 680 } | 680 } |
| 681 void OnDidNotSendReport() override {} |
| 681 | 682 |
| 682 private: | 683 private: |
| 683 const scoped_refptr<safe_browsing::SafeBrowsingUIManager> | 684 const scoped_refptr<safe_browsing::SafeBrowsingUIManager> |
| 684 safe_browsing_ui_manager_; | 685 safe_browsing_ui_manager_; |
| 685 }; | 686 }; |
| 686 | 687 |
| 687 #if BUILDFLAG(ANDROID_JAVA_UI) | 688 #if BUILDFLAG(ANDROID_JAVA_UI) |
| 688 void HandleSingleTabModeBlockOnUIThread(const BlockedWindowParams& params) { | 689 void HandleSingleTabModeBlockOnUIThread(const BlockedWindowParams& params) { |
| 689 WebContents* web_contents = tab_util::GetWebContentsByFrameID( | 690 WebContents* web_contents = tab_util::GetWebContentsByFrameID( |
| 690 params.render_process_id(), params.opener_render_frame_id()); | 691 params.render_process_id(), params.opener_render_frame_id()); |
| (...skipping 2608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3299 render_frame_host, std::move(source), std::move(request)); | 3300 render_frame_host, std::move(source), std::move(request)); |
| 3300 #else | 3301 #else |
| 3301 // Chrome's media remoting implementation depends on the Media Router | 3302 // Chrome's media remoting implementation depends on the Media Router |
| 3302 // infrastructure to identify remote sinks and provide the user interface for | 3303 // infrastructure to identify remote sinks and provide the user interface for |
| 3303 // sink selection. In the case where the Media Router is not present, simply | 3304 // sink selection. In the case where the Media Router is not present, simply |
| 3304 // drop the interface request. This will prevent code paths for media remoting | 3305 // drop the interface request. This will prevent code paths for media remoting |
| 3305 // in the renderer process from activating. | 3306 // in the renderer process from activating. |
| 3306 #endif | 3307 #endif |
| 3307 } | 3308 } |
| 3308 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) | 3309 #endif // BUILDFLAG(ENABLE_MEDIA_REMOTING) |
| OLD | NEW |