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

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

Issue 647853002: Create a proprietary scheme for loading web-accessible resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update include guards too Created 6 years, 1 month 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 "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 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 #if defined(OS_CHROMEOS) 709 #if defined(OS_CHROMEOS)
710 content::kExternalFileScheme, 710 content::kExternalFileScheme,
711 #endif // defined(OS_CHROMEOS) 711 #endif // defined(OS_CHROMEOS)
712 url::kAboutScheme, 712 url::kAboutScheme,
713 #if !defined(DISABLE_FTP_SUPPORT) 713 #if !defined(DISABLE_FTP_SUPPORT)
714 url::kFtpScheme, 714 url::kFtpScheme,
715 #endif // !defined(DISABLE_FTP_SUPPORT) 715 #endif // !defined(DISABLE_FTP_SUPPORT)
716 url::kBlobScheme, 716 url::kBlobScheme,
717 url::kFileSystemScheme, 717 url::kFileSystemScheme,
718 chrome::kChromeSearchScheme, 718 chrome::kChromeSearchScheme,
719 content::kResourceScheme,
719 }; 720 };
720 for (size_t i = 0; i < arraysize(kProtocolList); ++i) { 721 for (size_t i = 0; i < arraysize(kProtocolList); ++i) {
721 if (scheme == kProtocolList[i]) 722 if (scheme == kProtocolList[i])
722 return true; 723 return true;
723 } 724 }
724 return net::URLRequest::IsHandledProtocol(scheme); 725 return net::URLRequest::IsHandledProtocol(scheme);
725 } 726 }
726 727
727 // static 728 // static
728 bool ProfileIOData::IsHandledURL(const GURL& url) { 729 bool ProfileIOData::IsHandledURL(const GURL& url) {
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 void ProfileIOData::SetCookieSettingsForTesting( 1289 void ProfileIOData::SetCookieSettingsForTesting(
1289 CookieSettings* cookie_settings) { 1290 CookieSettings* cookie_settings) {
1290 DCHECK(!cookie_settings_.get()); 1291 DCHECK(!cookie_settings_.get());
1291 cookie_settings_ = cookie_settings; 1292 cookie_settings_ = cookie_settings;
1292 } 1293 }
1293 1294
1294 void ProfileIOData::set_signin_names_for_testing( 1295 void ProfileIOData::set_signin_names_for_testing(
1295 SigninNamesOnIOThread* signin_names) { 1296 SigninNamesOnIOThread* signin_names) {
1296 signin_names_.reset(signin_names); 1297 signin_names_.reset(signin_names);
1297 } 1298 }
OLDNEW
« no previous file with comments | « android_webview/browser/net/aw_url_request_context_getter.cc ('k') | content/browser/child_process_security_policy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698