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

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

Issue 10836206: Removed static factories for data, ftp, file, and about jobs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: small fix Created 8 years, 3 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 chrome::kExtensionScheme, 312 chrome::kExtensionScheme,
313 chrome::kChromeUIScheme, 313 chrome::kChromeUIScheme,
314 chrome::kChromeDevToolsScheme, 314 chrome::kChromeDevToolsScheme,
315 #if defined(OS_CHROMEOS) 315 #if defined(OS_CHROMEOS)
316 chrome::kMetadataScheme, 316 chrome::kMetadataScheme,
317 chrome::kDriveScheme, 317 chrome::kDriveScheme,
318 #endif // defined(OS_CHROMEOS) 318 #endif // defined(OS_CHROMEOS)
319 chrome::kBlobScheme, 319 chrome::kBlobScheme,
320 chrome::kFileSystemScheme, 320 chrome::kFileSystemScheme,
321 chrome::kExtensionResourceScheme, 321 chrome::kExtensionResourceScheme,
322 chrome::kFtpScheme,
322 }; 323 };
323 for (size_t i = 0; i < arraysize(kProtocolList); ++i) { 324 for (size_t i = 0; i < arraysize(kProtocolList); ++i) {
324 if (scheme == kProtocolList[i]) 325 if (scheme == kProtocolList[i])
325 return true; 326 return true;
326 } 327 }
327 return net::URLRequest::IsHandledProtocol(scheme); 328 return net::URLRequest::IsHandledProtocol(scheme);
328 } 329 }
329 330
330 bool ProfileIOData::IsHandledURL(const GURL& url) { 331 bool ProfileIOData::IsHandledURL(const GURL& url) {
331 if (!url.is_valid()) { 332 if (!url.is_valid()) {
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 } 646 }
646 647
647 void ProfileIOData::set_server_bound_cert_service( 648 void ProfileIOData::set_server_bound_cert_service(
648 net::ServerBoundCertService* server_bound_cert_service) const { 649 net::ServerBoundCertService* server_bound_cert_service) const {
649 server_bound_cert_service_.reset(server_bound_cert_service); 650 server_bound_cert_service_.reset(server_bound_cert_service);
650 } 651 }
651 652
652 void ProfileIOData::DestroyResourceContext() { 653 void ProfileIOData::DestroyResourceContext() {
653 resource_context_.reset(); 654 resource_context_.reset();
654 } 655 }
OLDNEW
« no previous file with comments | « chrome/browser/net/about_protocol_handler.cc ('k') | net/proxy/proxy_script_fetcher_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698