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

Side by Side Diff: chrome/browser/profiles/profile_io_data.cc

Issue 105723002: Add the scheme chrome-distiller:// and hook up data source. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments from jam@ Created 6 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
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/browser/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 content::ResourceContext* rc) { 596 content::ResourceContext* rc) {
597 return (static_cast<ResourceContext*>(rc))->io_data_; 597 return (static_cast<ResourceContext*>(rc))->io_data_;
598 } 598 }
599 599
600 // static 600 // static
601 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { 601 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) {
602 DCHECK_EQ(scheme, StringToLowerASCII(scheme)); 602 DCHECK_EQ(scheme, StringToLowerASCII(scheme));
603 static const char* const kProtocolList[] = { 603 static const char* const kProtocolList[] = {
604 content::kFileScheme, 604 content::kFileScheme,
605 chrome::kChromeDevToolsScheme, 605 chrome::kChromeDevToolsScheme,
606 chrome::kDomDistillerScheme,
606 extensions::kExtensionScheme, 607 extensions::kExtensionScheme,
607 extensions::kExtensionResourceScheme, 608 extensions::kExtensionResourceScheme,
608 chrome::kChromeUIScheme, 609 chrome::kChromeUIScheme,
609 chrome::kDataScheme, 610 chrome::kDataScheme,
610 #if defined(OS_CHROMEOS) 611 #if defined(OS_CHROMEOS)
611 chrome::kDriveScheme, 612 chrome::kDriveScheme,
612 #endif // defined(OS_CHROMEOS) 613 #endif // defined(OS_CHROMEOS)
613 chrome::kAboutScheme, 614 chrome::kAboutScheme,
614 #if !defined(DISABLE_FTP_SUPPORT) 615 #if !defined(DISABLE_FTP_SUPPORT)
615 content::kFtpScheme, 616 content::kFtpScheme,
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 void ProfileIOData::SetCookieSettingsForTesting( 1124 void ProfileIOData::SetCookieSettingsForTesting(
1124 CookieSettings* cookie_settings) { 1125 CookieSettings* cookie_settings) {
1125 DCHECK(!cookie_settings_.get()); 1126 DCHECK(!cookie_settings_.get());
1126 cookie_settings_ = cookie_settings; 1127 cookie_settings_ = cookie_settings;
1127 } 1128 }
1128 1129
1129 void ProfileIOData::set_signin_names_for_testing( 1130 void ProfileIOData::set_signin_names_for_testing(
1130 SigninNamesOnIOThread* signin_names) { 1131 SigninNamesOnIOThread* signin_names) {
1131 signin_names_.reset(signin_names); 1132 signin_names_.reset(signin_names);
1132 } 1133 }
OLDNEW
« no previous file with comments | « chrome/browser/history/history_service.cc ('k') | chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698