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

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

Issue 11783038: Allow multiple WebUIControllerFactory objects to be registered. This makes is possible to implement… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: reland after bogus revert of r175971 Created 7 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/chrome_content_client.h ('k') | chrome/common/chrome_content_client_ios.mm » ('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) 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 "chrome/common/chrome_content_client.h" 5 #include "chrome/common/chrome_content_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/cpu.h" 8 #include "base/cpu.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 std::vector<std::string>* savable_schemes) { 379 std::vector<std::string>* savable_schemes) {
380 standard_schemes->push_back(extensions::kExtensionScheme); 380 standard_schemes->push_back(extensions::kExtensionScheme);
381 savable_schemes->push_back(extensions::kExtensionScheme); 381 savable_schemes->push_back(extensions::kExtensionScheme);
382 standard_schemes->push_back(kExtensionResourceScheme); 382 standard_schemes->push_back(kExtensionResourceScheme);
383 savable_schemes->push_back(kExtensionResourceScheme); 383 savable_schemes->push_back(kExtensionResourceScheme);
384 #if defined(OS_CHROMEOS) 384 #if defined(OS_CHROMEOS)
385 standard_schemes->push_back(kCrosScheme); 385 standard_schemes->push_back(kCrosScheme);
386 #endif 386 #endif
387 } 387 }
388 388
389 bool ChromeContentClient::HasWebUIScheme(const GURL& url) const {
390 return url.SchemeIs(chrome::kChromeDevToolsScheme) ||
391 url.SchemeIs(chrome::kChromeInternalScheme) ||
392 url.SchemeIs(chrome::kChromeUIScheme);
393 }
394
395 bool ChromeContentClient::CanHandleWhileSwappedOut( 389 bool ChromeContentClient::CanHandleWhileSwappedOut(
396 const IPC::Message& msg) { 390 const IPC::Message& msg) {
397 // Any Chrome-specific messages (apart from those listed in 391 // Any Chrome-specific messages (apart from those listed in
398 // CanSendWhileSwappedOut) that must be handled by the browser when sent from 392 // CanSendWhileSwappedOut) that must be handled by the browser when sent from
399 // swapped out renderers. 393 // swapped out renderers.
400 switch (msg.type()) { 394 switch (msg.type()) {
401 case ChromeViewHostMsg_Snapshot::ID: 395 case ChromeViewHostMsg_Snapshot::ID:
402 return true; 396 return true;
403 default: 397 default:
404 break; 398 break;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 } 448 }
455 return false; 449 return false;
456 } 450 }
457 451
458 std::string ChromeContentClient::GetCarbonInterposePath() const { 452 std::string ChromeContentClient::GetCarbonInterposePath() const {
459 return std::string(kInterposeLibraryPath); 453 return std::string(kInterposeLibraryPath);
460 } 454 }
461 #endif 455 #endif
462 456
463 } // namespace chrome 457 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/common/chrome_content_client.h ('k') | chrome/common/chrome_content_client_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698