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

Side by Side Diff: content/renderer/render_frame_impl.cc

Issue 371073003: Set dump_without_crashing_function_ in chrome.dll (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add comments Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « content/public/common/url_constants.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/render_frame_impl.h" 5 #include "content/renderer/render_frame_impl.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 #endif 280 #endif
281 } 281 }
282 } 282 }
283 #endif // ADDRESS_SANITIZER || SYZYASAN 283 #endif // ADDRESS_SANITIZER || SYZYASAN
284 284
285 static void MaybeHandleDebugURL(const GURL& url) { 285 static void MaybeHandleDebugURL(const GURL& url) {
286 if (!url.SchemeIs(kChromeUIScheme)) 286 if (!url.SchemeIs(kChromeUIScheme))
287 return; 287 return;
288 if (url == GURL(kChromeUICrashURL)) { 288 if (url == GURL(kChromeUICrashURL)) {
289 CrashIntentionally(); 289 CrashIntentionally();
290 } else if (url == GURL(kChromeUIDumpURL)) {
291 // This URL will only correctly create a crash dump file if content is
292 // hosted in a process that has correctly called
293 // base::debug::SetDumpWithoutCrashingFunction. Refer to the documentation
294 // of base::debug::DumpWithoutCrashing for more details.
295 base::debug::DumpWithoutCrashing();
290 } else if (url == GURL(kChromeUIKillURL)) { 296 } else if (url == GURL(kChromeUIKillURL)) {
291 base::KillProcess(base::GetCurrentProcessHandle(), 1, false); 297 base::KillProcess(base::GetCurrentProcessHandle(), 1, false);
292 } else if (url == GURL(kChromeUIHangURL)) { 298 } else if (url == GURL(kChromeUIHangURL)) {
293 for (;;) { 299 for (;;) {
294 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1)); 300 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(1));
295 } 301 }
296 } else if (url == GURL(kChromeUIShorthangURL)) { 302 } else if (url == GURL(kChromeUIShorthangURL)) {
297 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(20)); 303 base::PlatformThread::Sleep(base::TimeDelta::FromSeconds(20));
298 } 304 }
299 305
(...skipping 3278 matching lines...) Expand 10 before | Expand all | Expand 10 after
3578 3584
3579 #if defined(ENABLE_BROWSER_CDMS) 3585 #if defined(ENABLE_BROWSER_CDMS)
3580 RendererCdmManager* RenderFrameImpl::GetCdmManager() { 3586 RendererCdmManager* RenderFrameImpl::GetCdmManager() {
3581 if (!cdm_manager_) 3587 if (!cdm_manager_)
3582 cdm_manager_ = new RendererCdmManager(this); 3588 cdm_manager_ = new RendererCdmManager(this);
3583 return cdm_manager_; 3589 return cdm_manager_;
3584 } 3590 }
3585 #endif // defined(ENABLE_BROWSER_CDMS) 3591 #endif // defined(ENABLE_BROWSER_CDMS)
3586 3592
3587 } // namespace content 3593 } // namespace content
OLDNEW
« no previous file with comments | « content/public/common/url_constants.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698