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

Side by Side Diff: content/public/common/url_constants.cc

Issue 11824050: InstantExtended: Committed NTP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 7 years, 10 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
OLDNEW
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 #include "googleurl/src/gurl.h" 8 #include "googleurl/src/gurl.h"
9 9
10 namespace chrome { 10 namespace chrome {
(...skipping 30 matching lines...) Expand all
41 const char kChromeUINetworkViewCacheHost[] = "view-http-cache"; 41 const char kChromeUINetworkViewCacheHost[] = "view-http-cache";
42 const char kChromeUIResourcesHost[] = "resources"; 42 const char kChromeUIResourcesHost[] = "resources";
43 const char kChromeUITcmallocHost[] = "tcmalloc"; 43 const char kChromeUITcmallocHost[] = "tcmalloc";
44 44
45 const char kChromeUICrashURL[] = "chrome://crash"; 45 const char kChromeUICrashURL[] = "chrome://crash";
46 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean"; 46 const char kChromeUIGpuCleanURL[] = "chrome://gpuclean";
47 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash"; 47 const char kChromeUIGpuCrashURL[] = "chrome://gpucrash";
48 const char kChromeUIGpuHangURL[] = "chrome://gpuhang"; 48 const char kChromeUIGpuHangURL[] = "chrome://gpuhang";
49 const char kChromeUIHangURL[] = "chrome://hang"; 49 const char kChromeUIHangURL[] = "chrome://hang";
50 const char kChromeUIKillURL[] = "chrome://kill"; 50 const char kChromeUIKillURL[] = "chrome://kill";
51 const char kChromeUINewTabURL[] = "chrome://newtab";
51 const char kChromeUIPpapiFlashCrashURL[] = "chrome://ppapiflashcrash"; 52 const char kChromeUIPpapiFlashCrashURL[] = "chrome://ppapiflashcrash";
52 const char kChromeUIPpapiFlashHangURL[] = "chrome://ppapiflashhang"; 53 const char kChromeUIPpapiFlashHangURL[] = "chrome://ppapiflashhang";
53 54
54 } // namespace chrome 55 } // namespace chrome
55 56
56 namespace content { 57 namespace content {
57 58
58 const char kStandardSchemeSeparator[] = "://"; 59 const char kStandardSchemeSeparator[] = "://";
59 60
60 // This error URL is loaded in normal web renderer processes, so it should not 61 // This error URL is loaded in normal web renderer processes, so it should not
(...skipping 15 matching lines...) Expand all
76 bool HasWebUIScheme(const GURL& url) { 77 bool HasWebUIScheme(const GURL& url) {
77 return 78 return
78 #if !defined(OS_IOS) 79 #if !defined(OS_IOS)
79 url.SchemeIs(chrome::kChromeDevToolsScheme) || 80 url.SchemeIs(chrome::kChromeDevToolsScheme) ||
80 url.SchemeIs(chrome::kChromeInternalScheme) || 81 url.SchemeIs(chrome::kChromeInternalScheme) ||
81 #endif 82 #endif
82 url.SchemeIs(chrome::kChromeUIScheme); 83 url.SchemeIs(chrome::kChromeUIScheme);
83 } 84 }
84 85
85 } // namespace content 86 } // namespace content
OLDNEW
« content/public/common/url_constants.h ('K') | « content/public/common/url_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698