| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/renderer/about_handler.h" | 5 #include "chrome/renderer/about_handler.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/process_util.h" | 8 #include "base/process_util.h" |
| 9 #include "base/threading/platform_thread.h" | 9 #include "base/threading/platform_thread.h" |
| 10 #include "chrome/common/about_handler.h" | 10 #include "chrome/common/about_handler.h" |
| 11 #include "content/common/url_constants.h" | 11 #include "content/public/common/url_constants.h" |
| 12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 13 | 13 |
| 14 typedef void (*AboutHandlerFuncPtr)(); | 14 typedef void (*AboutHandlerFuncPtr)(); |
| 15 | 15 |
| 16 // This needs to match up with chrome_about_handler::about_urls in | 16 // This needs to match up with chrome_about_handler::about_urls in |
| 17 // chrome/common/about_handler.cc. | 17 // chrome/common/about_handler.cc. |
| 18 static const AboutHandlerFuncPtr about_urls_handlers[] = { | 18 static const AboutHandlerFuncPtr about_urls_handlers[] = { |
| 19 AboutHandler::AboutCrash, | 19 AboutHandler::AboutCrash, |
| 20 AboutHandler::AboutKill, | 20 AboutHandler::AboutKill, |
| 21 AboutHandler::AboutHang, | 21 AboutHandler::AboutHang, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 67 |
| 68 // static | 68 // static |
| 69 void AboutHandler::AboutShortHang() { | 69 void AboutHandler::AboutShortHang() { |
| 70 base::PlatformThread::Sleep(20000); | 70 base::PlatformThread::Sleep(20000); |
| 71 } | 71 } |
| 72 | 72 |
| 73 // static | 73 // static |
| 74 size_t AboutHandler::AboutURLHandlerSize() { | 74 size_t AboutHandler::AboutURLHandlerSize() { |
| 75 return arraysize(about_urls_handlers); | 75 return arraysize(about_urls_handlers); |
| 76 } | 76 } |
| OLD | NEW |