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

Side by Side Diff: chrome/renderer/about_handler.h

Issue 6053012: This adds a "killed tab" page and pages reload when killed on ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed indent Created 9 years, 11 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 | « chrome/common/url_constants.cc ('k') | chrome/renderer/about_handler.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // Contains code for handling "about:" URLs in the renderer process. We handle 5 // Contains code for handling "about:" URLs in the renderer process. We handle
6 // most about: URLs in the browser process (see 6 // most about: URLs in the browser process (see
7 // browser/browser_about_handler.*), but test URLs like about:crash need to 7 // browser/browser_about_handler.*), but test URLs like about:crash need to
8 // happen in the renderer. 8 // happen in the renderer.
9 9
10 #ifndef CHROME_RENDERER_ABOUT_HANDLER_H__ 10 #ifndef CHROME_RENDERER_ABOUT_HANDLER_H__
11 #define CHROME_RENDERER_ABOUT_HANDLER_H__ 11 #define CHROME_RENDERER_ABOUT_HANDLER_H__
12 #pragma once 12 #pragma once
13 13
14 #include "base/basictypes.h" 14 #include "base/basictypes.h"
15 15
16 class GURL; 16 class GURL;
17 17
18 class AboutHandler { 18 class AboutHandler {
19 public: 19 public:
20 // Given a URL, determine whether or not to handle it specially. Returns 20 // Given a URL, determine whether or not to handle it specially. Returns
21 // true if the URL was handled. 21 // true if the URL was handled.
22 static bool MaybeHandle(const GURL& url); 22 static bool MaybeHandle(const GURL& url);
23 23
24 // Induces a renderer crash. 24 // Induces a renderer crash.
25 static void AboutCrash(); 25 static void AboutCrash();
26 26
27 // Induces a renderer kill.
28 static void AboutKill();
29
27 // Induces a renderer hang. 30 // Induces a renderer hang.
28 static void AboutHang(); 31 static void AboutHang();
29 32
30 // Induces a brief (20 second) hang to make sure hang monitors go away. 33 // Induces a brief (20 second) hang to make sure hang monitors go away.
31 static void AboutShortHang(); 34 static void AboutShortHang();
32 35
33 // Returns the size of |about_urls_handlers|. Used for testing only. 36 // Returns the size of |about_urls_handlers|. Used for testing only.
34 static size_t AboutURLHandlerSize(); 37 static size_t AboutURLHandlerSize();
35 38
36 private: 39 private:
37 AboutHandler(); 40 AboutHandler();
38 ~AboutHandler(); 41 ~AboutHandler();
39 42
40 DISALLOW_COPY_AND_ASSIGN(AboutHandler); 43 DISALLOW_COPY_AND_ASSIGN(AboutHandler);
41 }; 44 };
42 45
43 #endif // CHROME_RENDERER_ABOUT_HANDLER_H__ 46 #endif // CHROME_RENDERER_ABOUT_HANDLER_H__
OLDNEW
« no previous file with comments | « chrome/common/url_constants.cc ('k') | chrome/renderer/about_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698