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 kChromeUINewTabURL[] = "chrome://newtab"; | |
Jered
2013/01/10 15:53:54
this is in src/chrome/common/url_constants.cc alre
samarth
2013/01/11 19:43:05
Based on my understanding, these need to be redefi
| |
46 | 47 |
47 } // namespace chrome | 48 } // namespace chrome |
48 | 49 |
49 namespace content { | 50 namespace content { |
50 | 51 |
51 const char kStandardSchemeSeparator[] = "://"; | 52 const char kStandardSchemeSeparator[] = "://"; |
52 | 53 |
53 // This error URL is loaded in normal web renderer processes, so it should not | 54 // 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. | 55 // have a chrome:// scheme that might let it be confused with a WebUI page. |
55 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata"; | 56 const char kUnreachableWebDataURL[] = "data:text/html,chromewebdata"; |
56 | 57 |
57 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; | 58 const char kChromeUINetworkViewCacheURL[] = "chrome://view-http-cache/"; |
58 const char kChromeUIShorthangURL[] = "chrome://shorthang"; | 59 const char kChromeUIShorthangURL[] = "chrome://shorthang"; |
59 | 60 |
60 // This URL is loaded when a page is swapped out and replaced by a page in a | 61 // 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 | 62 // different renderer process. It must have a unique origin that cannot be |
62 // scripted by other pages in the process. | 63 // scripted by other pages in the process. |
63 const char kSwappedOutURL[] = "swappedout://"; | 64 const char kSwappedOutURL[] = "swappedout://"; |
64 | 65 |
65 const char* const* GetSavableSchemes() { | 66 const char* const* GetSavableSchemes() { |
66 return GetSavableSchemesInternal(); | 67 return GetSavableSchemesInternal(); |
67 } | 68 } |
68 | 69 |
69 } // namespace content | 70 } // namespace content |
OLD | NEW |