OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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.h" | 5 #include "chrome/browser/profiles/profile.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 } | 468 } |
469 | 469 |
470 virtual bool DidLastSessionExitCleanly() { | 470 virtual bool DidLastSessionExitCleanly() { |
471 return profile_->DidLastSessionExitCleanly(); | 471 return profile_->DidLastSessionExitCleanly(); |
472 } | 472 } |
473 | 473 |
474 virtual BookmarkModel* GetBookmarkModel() { | 474 virtual BookmarkModel* GetBookmarkModel() { |
475 return profile_->GetBookmarkModel(); | 475 return profile_->GetBookmarkModel(); |
476 } | 476 } |
477 | 477 |
| 478 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() { |
| 479 return profile_->GetProtocolHandlerRegistry(); |
| 480 } |
| 481 |
478 virtual DesktopNotificationService* GetDesktopNotificationService() { | 482 virtual DesktopNotificationService* GetDesktopNotificationService() { |
479 if (!desktop_notification_service_.get()) { | 483 if (!desktop_notification_service_.get()) { |
480 desktop_notification_service_.reset(new DesktopNotificationService( | 484 desktop_notification_service_.reset(new DesktopNotificationService( |
481 this, g_browser_process->notification_ui_manager())); | 485 this, g_browser_process->notification_ui_manager())); |
482 } | 486 } |
483 return desktop_notification_service_.get(); | 487 return desktop_notification_service_.get(); |
484 } | 488 } |
485 | 489 |
486 virtual TokenService* GetTokenService() { | 490 virtual TokenService* GetTokenService() { |
487 return NULL; | 491 return NULL; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 } | 550 } |
547 | 551 |
548 virtual void InitExtensions() { | 552 virtual void InitExtensions() { |
549 NOTREACHED(); | 553 NOTREACHED(); |
550 } | 554 } |
551 | 555 |
552 virtual void InitWebResources() { | 556 virtual void InitWebResources() { |
553 NOTREACHED(); | 557 NOTREACHED(); |
554 } | 558 } |
555 | 559 |
| 560 virtual void InitRegisteredProtocolHandlers() { |
| 561 NOTREACHED(); |
| 562 } |
| 563 |
556 virtual NTPResourceCache* GetNTPResourceCache() { | 564 virtual NTPResourceCache* GetNTPResourceCache() { |
557 // Just return the real profile resource cache. | 565 // Just return the real profile resource cache. |
558 return profile_->GetNTPResourceCache(); | 566 return profile_->GetNTPResourceCache(); |
559 } | 567 } |
560 | 568 |
561 virtual FilePath last_selected_directory() { | 569 virtual FilePath last_selected_directory() { |
562 const FilePath& directory = last_selected_directory_; | 570 const FilePath& directory = last_selected_directory_; |
563 if (directory.empty()) { | 571 if (directory.empty()) { |
564 return profile_->last_selected_directory(); | 572 return profile_->last_selected_directory(); |
565 } | 573 } |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
707 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_; | 715 scoped_refptr<fileapi::SandboxedFileSystemContext> file_system_context_; |
708 | 716 |
709 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 717 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
710 | 718 |
711 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); | 719 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); |
712 }; | 720 }; |
713 | 721 |
714 Profile* Profile::CreateOffTheRecordProfile() { | 722 Profile* Profile::CreateOffTheRecordProfile() { |
715 return new OffTheRecordProfileImpl(this); | 723 return new OffTheRecordProfileImpl(this); |
716 } | 724 } |
OLD | NEW |