Chromium Code Reviews| 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 "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 4380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4391 // Reset the loading progress. TODO(avi): What does it mean to have a | 4391 // Reset the loading progress. TODO(avi): What does it mean to have a |
| 4392 // "renderer crash" when there is more than one renderer process serving a | 4392 // "renderer crash" when there is more than one renderer process serving a |
| 4393 // webpage? Once this function is called at a more granular frame level, we | 4393 // webpage? Once this function is called at a more granular frame level, we |
| 4394 // probably will need to more granularly reset the state here. | 4394 // probably will need to more granularly reset the state here. |
| 4395 ResetLoadProgressState(); | 4395 ResetLoadProgressState(); |
| 4396 NotifyDisconnected(); | 4396 NotifyDisconnected(); |
| 4397 SetIsCrashed(status, error_code); | 4397 SetIsCrashed(status, error_code); |
| 4398 | 4398 |
| 4399 for (auto& observer : observers_) | 4399 for (auto& observer : observers_) |
| 4400 observer.RenderProcessGone(GetCrashedStatus()); | 4400 observer.RenderProcessGone(GetCrashedStatus()); |
| 4401 audio_stream_monitor_.RenderProcessGone(rvh->GetProcess()->GetID()); | |
|
Max Morin
2017/02/17 16:39:53
Actually, this code confuses me. Shouldn't audio_s
DaleCurtis
2017/02/17 17:23:03
Could be, but since WC is the only owner of this c
Charlie Reis
2017/02/17 21:27:55
Yeah, I can see both sides, but I see the argument
DaleCurtis
2017/02/17 22:03:59
Done.
| |
| 4401 } | 4402 } |
| 4402 | 4403 |
| 4403 void WebContentsImpl::RenderViewDeleted(RenderViewHost* rvh) { | 4404 void WebContentsImpl::RenderViewDeleted(RenderViewHost* rvh) { |
| 4404 for (auto& observer : observers_) | 4405 for (auto& observer : observers_) |
| 4405 observer.RenderViewDeleted(rvh); | 4406 observer.RenderViewDeleted(rvh); |
| 4406 } | 4407 } |
| 4407 | 4408 |
| 4408 void WebContentsImpl::UpdateTargetURL(RenderViewHost* render_view_host, | 4409 void WebContentsImpl::UpdateTargetURL(RenderViewHost* render_view_host, |
| 4409 const GURL& url) { | 4410 const GURL& url) { |
| 4410 if (fullscreen_widget_routing_id_ != MSG_ROUTING_NONE) { | 4411 if (fullscreen_widget_routing_id_ != MSG_ROUTING_NONE) { |
| (...skipping 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5403 GetMainFrame()->AddMessageToConsole( | 5404 GetMainFrame()->AddMessageToConsole( |
| 5404 content::CONSOLE_MESSAGE_LEVEL_WARNING, | 5405 content::CONSOLE_MESSAGE_LEVEL_WARNING, |
| 5405 base::StringPrintf("This site does not have a valid SSL " | 5406 base::StringPrintf("This site does not have a valid SSL " |
| 5406 "certificate! Without SSL, your site's and " | 5407 "certificate! Without SSL, your site's and " |
| 5407 "visitors' data is vulnerable to theft and " | 5408 "visitors' data is vulnerable to theft and " |
| 5408 "tampering. Get a valid SSL certificate before" | 5409 "tampering. Get a valid SSL certificate before" |
| 5409 " releasing your website to the public.")); | 5410 " releasing your website to the public.")); |
| 5410 } | 5411 } |
| 5411 | 5412 |
| 5412 } // namespace content | 5413 } // namespace content |
| OLD | NEW |