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

Side by Side Diff: chrome/common/url_constants.cc

Issue 8986005: Reland r114898: Add TabModalConfirmDialogDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix and cleanup Created 9 years 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
OLDNEW
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/common/url_constants.h" 5 #include "chrome/common/url_constants.h"
6 6
7 #include "googleurl/src/url_util.h" 7 #include "googleurl/src/url_util.h"
8 8
9 namespace { 9 namespace {
10 const char* kSavableSchemes[] = { 10 const char* kSavableSchemes[] = {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 const char kChromeUIUserImageURL[] = "chrome://userimage/"; 99 const char kChromeUIUserImageURL[] = "chrome://userimage/";
100 #endif 100 #endif
101 101
102 #if defined(FILE_MANAGER_EXTENSION) 102 #if defined(FILE_MANAGER_EXTENSION)
103 const char kChromeUIFileManagerURL[] = "chrome://files/"; 103 const char kChromeUIFileManagerURL[] = "chrome://files/";
104 #endif 104 #endif
105 105
106 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) 106 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
107 const char kChromeUICollectedCookiesURL[] = "chrome://collected-cookies/"; 107 const char kChromeUICollectedCookiesURL[] = "chrome://collected-cookies/";
108 const char kChromeUIHttpAuthURL[] = "chrome://http-auth/"; 108 const char kChromeUIHttpAuthURL[] = "chrome://http-auth/";
109 const char kChromeUIRepostFormWarningURL[] = "chrome://repost-form-warning/"; 109 const char kChromeUITabModalConfirmDialogURL[] =
110 "chrome://tab-modal-confirm-dialog/";
110 #endif 111 #endif
111 112
112 #if defined(USE_AURA) 113 #if defined(USE_AURA)
113 const char kChromeUIAppListURL[] = "chrome://app-list/"; 114 const char kChromeUIAppListURL[] = "chrome://app-list/";
114 #endif 115 #endif
115 116
116 // Add Chrome UI hosts here, in alphabetical order. 117 // Add Chrome UI hosts here, in alphabetical order.
117 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by 118 // Add hosts to kChromePaths in browser_about_handler.cc to be listed by
118 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider. 119 // chrome://chrome-urls (about:about) and the built-in AutocompleteProvider.
119 const char kChromeUIAboutHost[] = "about"; 120 const char kChromeUIAboutHost[] = "about";
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 const char kOemEulaURLPath[] = "oem"; 231 const char kOemEulaURLPath[] = "oem";
231 #endif 232 #endif
232 233
233 #if defined(FILE_MANAGER_EXTENSION) 234 #if defined(FILE_MANAGER_EXTENSION)
234 const char kChromeUIFileManagerHost[] = "files"; 235 const char kChromeUIFileManagerHost[] = "files";
235 #endif 236 #endif
236 237
237 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA) 238 #if (defined(OS_LINUX) && defined(TOOLKIT_VIEWS)) || defined(USE_AURA)
238 const char kChromeUICollectedCookiesHost[] = "collected-cookies"; 239 const char kChromeUICollectedCookiesHost[] = "collected-cookies";
239 const char kChromeUIHttpAuthHost[] = "http-auth"; 240 const char kChromeUIHttpAuthHost[] = "http-auth";
240 const char kChromeUIRepostFormWarningHost[] = "repost-form-warning"; 241 const char kChromeUITabModalConfirmDialogHost[] = "tab-modal-confirm-dialog";
241 #endif 242 #endif
242 243
243 #if defined(USE_AURA) 244 #if defined(USE_AURA)
244 const char kChromeUIAppListHost[] = "app-list"; 245 const char kChromeUIAppListHost[] = "app-list";
245 #endif 246 #endif
246 247
247 // Option sub pages. 248 // Option sub pages.
248 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be 249 // Add sub page paths to kChromeSettingsSubPages in builtin_provider.cc to be
249 // listed by the built-in AutocompleteProvider. 250 // listed by the built-in AutocompleteProvider.
250 const char kAdvancedOptionsSubPage[] = "advanced"; 251 const char kAdvancedOptionsSubPage[] = "advanced";
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 url_util::AddStandardScheme(kExtensionScheme); 374 url_util::AddStandardScheme(kExtensionScheme);
374 #if defined(OS_CHROMEOS) 375 #if defined(OS_CHROMEOS)
375 url_util::AddStandardScheme(kCrosScheme); 376 url_util::AddStandardScheme(kCrosScheme);
376 #endif 377 #endif
377 378
378 // This call will also lock the list of standard schemes. 379 // This call will also lock the list of standard schemes.
379 RegisterContentSchemes(kSavableSchemes); 380 RegisterContentSchemes(kSavableSchemes);
380 } 381 }
381 382
382 } // namespace chrome 383 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698