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/public/common/url_constants.h" | 5 #include "content/public/common/url_constants.h" |
6 | 6 |
7 #include "content/common/savable_url_schemes.h" | 7 #include "content/common/savable_url_schemes.h" |
8 | 8 |
9 namespace chrome { | 9 namespace chrome { |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz"; | 36 const char kChromeUIBrowserCrashHost[] = "inducebrowsercrashforrealz"; |
37 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; | 37 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; |
38 const char kChromeUITcmallocHost[] = "tcmalloc"; | 38 const char kChromeUITcmallocHost[] = "tcmalloc"; |
39 const char kChromeUIHistogramHost[] = "histograms"; | 39 const char kChromeUIHistogramHost[] = "histograms"; |
40 const char kChromeUICrashURL[] = "chrome://crash"; | 40 const char kChromeUICrashURL[] = "chrome://crash"; |
41 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; | 41 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; |
42 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; | 42 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; |
43 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; | 43 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; |
44 const char kChromeUIHangURL[] = "chrome://hang"; | 44 const char kChromeUIHangURL[] = "chrome://hang"; |
45 const char kChromeUIKillURL[] = "chrome://kill"; | 45 const char kChromeUIKillURL[] = "chrome://kill"; |
| 46 const char kChromeUIPpapiFlashCrashURL[] = "chrome://ppapiflashcrash"; |
| 47 const char kChromeUIPpapiFlashHangURL[] = "chrome://ppapiflashhang"; |
46 | 48 |
47 } // namespace chrome | 49 } // namespace chrome |
48 | 50 |
49 namespace content { | 51 namespace content { |
50 | 52 |
51 const char kStandardSchemeSeparator[] = "://"; | 53 const char kStandardSchemeSeparator[] = "://"; |
52 | 54 |
53 // This error URL is loaded in normal web renderer processes, so it should not | 55 // This error URL is loaded in normal web renderer processes, so it should not |
54 // have a chrome:// scheme that might let it be confused with a WebUI page. | 56 // have a chrome:// scheme that might let it be confused with a WebUI page. |
55 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata"; | 57 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata"; |
56 | 58 |
57 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; | 59 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; |
58 const char kChromeUIShorthangURL[] = "chrome://shorthang"; | 60 const char kChromeUIShorthangURL[] = "chrome://shorthang"; |
59 | 61 |
60 // This URL is loaded when a page is swapped out and replaced by a page in a | 62 // This URL is loaded when a page is swapped out and replaced by a page in a |
61 // different renderer process. It must have a unique origin that cannot be | 63 // different renderer process. It must have a unique origin that cannot be |
62 // scripted by other pages in the process. | 64 // scripted by other pages in the process. |
63 const char kSwappedOutURL[] = "swappedout://"; | 65 const char kSwappedOutURL[] = "swappedout://"; |
64 | 66 |
65 const char* const* GetSavableSchemes() { | 67 const char* const* GetSavableSchemes() { |
66 return GetSavableSchemesInternal(); | 68 return GetSavableSchemesInternal(); |
67 } | 69 } |
68 | 70 |
69 } // namespace content | 71 } // namespace content |
OLD | NEW |