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

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: Implement as data source instead. Also rebased across thousands of CLs. 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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 content::ResourceContext* rc) { 652 content::ResourceContext* rc) {
653 return (static_cast<ResourceContext*>(rc))->io_data_; 653 return (static_cast<ResourceContext*>(rc))->io_data_;
654 } 654 }
655 655
656 // static 656 // static
657 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) { 657 bool ProfileIOData::IsHandledProtocol(const std::string& scheme) {
658 DCHECK_EQ(scheme, StringToLowerASCII(scheme)); 658 DCHECK_EQ(scheme, StringToLowerASCII(scheme));
659 static const char* const kProtocolList[] = { 659 static const char* const kProtocolList[] = {
660 content::kFileScheme, 660 content::kFileScheme,
661 chrome::kChromeDevToolsScheme, 661 chrome::kChromeDevToolsScheme,
662 chrome::kDomDistillerScheme,
662 extensions::kExtensionScheme, 663 extensions::kExtensionScheme,
663 extensions::kExtensionResourceScheme, 664 extensions::kExtensionResourceScheme,
664 chrome::kChromeUIScheme, 665 chrome::kChromeUIScheme,
665 chrome::kDataScheme, 666 chrome::kDataScheme,
666 #if defined(OS_CHROMEOS) 667 #if defined(OS_CHROMEOS)
667 chrome::kDriveScheme, 668 chrome::kDriveScheme,
668 #endif // defined(OS_CHROMEOS) 669 #endif // defined(OS_CHROMEOS)
669 chrome::kAboutScheme, 670 chrome::kAboutScheme,
670 #if !defined(DISABLE_FTP_SUPPORT) 671 #if !defined(DISABLE_FTP_SUPPORT)
671 content::kFtpScheme, 672 content::kFtpScheme,
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 void ProfileIOData::SetCookieSettingsForTesting( 1180 void ProfileIOData::SetCookieSettingsForTesting(
1180 CookieSettings* cookie_settings) { 1181 CookieSettings* cookie_settings) {
1181 DCHECK(!cookie_settings_.get()); 1182 DCHECK(!cookie_settings_.get());
1182 cookie_settings_ = cookie_settings; 1183 cookie_settings_ = cookie_settings;
1183 } 1184 }
1184 1185
1185 void ProfileIOData::set_signin_names_for_testing( 1186 void ProfileIOData::set_signin_names_for_testing(
1186 SigninNamesOnIOThread* signin_names) { 1187 SigninNamesOnIOThread* signin_names) {
1187 signin_names_.reset(signin_names); 1188 signin_names_.reset(signin_names);
1188 } 1189 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698