OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This class gathers state related to a single user profile. | 5 // This class gathers state related to a single user profile. |
6 | 6 |
7 #ifndef CHROME_BROWSER_PROFILE_H_ | 7 #ifndef CHROME_BROWSER_PROFILE_H_ |
8 #define CHROME_BROWSER_PROFILE_H_ | 8 #define CHROME_BROWSER_PROFILE_H_ |
9 | 9 |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "app/theme_provider.h" | 13 #include "app/theme_provider.h" |
14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
15 #include "base/file_path.h" | 15 #include "base/file_path.h" |
16 #include "base/scoped_ptr.h" | 16 #include "base/scoped_ptr.h" |
17 #include "base/timer.h" | 17 #include "base/timer.h" |
18 #include "chrome/browser/web_resource/web_resource_service.h" | 18 #include "chrome/browser/web_resource/web_resource_service.h" |
19 #include "chrome/common/notification_registrar.h" | 19 #include "chrome/common/notification_registrar.h" |
20 | 20 |
| 21 #if defined(OS_CHROMEOS) |
| 22 #include "chrome/browser/chromeos/touchpad.h" |
| 23 #endif |
| 24 |
21 namespace net { | 25 namespace net { |
22 class StrictTransportSecurityState; | 26 class StrictTransportSecurityState; |
23 class SSLConfigService; | 27 class SSLConfigService; |
24 } | 28 } |
25 class Blacklist; | 29 class Blacklist; |
26 class BookmarkModel; | 30 class BookmarkModel; |
27 class BrowserThemeProvider; | 31 class BrowserThemeProvider; |
28 class ChromeAppCacheService; | 32 class ChromeAppCacheService; |
29 class ChromeURLRequestContext; | 33 class ChromeURLRequestContext; |
30 class DownloadManager; | 34 class DownloadManager; |
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 scoped_refptr<TabRestoreService> tab_restore_service_; | 518 scoped_refptr<TabRestoreService> tab_restore_service_; |
515 | 519 |
516 // This can not be a scoped_refptr because we must release it on the I/O | 520 // This can not be a scoped_refptr because we must release it on the I/O |
517 // thread. | 521 // thread. |
518 SpellChecker* spellchecker_; | 522 SpellChecker* spellchecker_; |
519 | 523 |
520 // Set to true when ShutdownSessionService is invoked. If true | 524 // Set to true when ShutdownSessionService is invoked. If true |
521 // GetSessionService won't recreate the SessionService. | 525 // GetSessionService won't recreate the SessionService. |
522 bool shutdown_session_service_; | 526 bool shutdown_session_service_; |
523 | 527 |
| 528 #if defined(OS_CHROMEOS) |
| 529 Touchpad touchpad_; |
| 530 #endif |
| 531 |
524 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 532 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
525 }; | 533 }; |
526 | 534 |
527 #if defined(COMPILER_GCC) | 535 #if defined(COMPILER_GCC) |
528 namespace __gnu_cxx { | 536 namespace __gnu_cxx { |
529 | 537 |
530 template<> | 538 template<> |
531 struct hash<Profile*> { | 539 struct hash<Profile*> { |
532 std::size_t operator()(Profile* const& p) const { | 540 std::size_t operator()(Profile* const& p) const { |
533 return reinterpret_cast<std::size_t>(p); | 541 return reinterpret_cast<std::size_t>(p); |
534 } | 542 } |
535 }; | 543 }; |
536 | 544 |
537 } // namespace __gnu_cxx | 545 } // namespace __gnu_cxx |
538 #endif | 546 #endif |
539 | 547 |
540 // This struct is used to pass the spellchecker object through the notification | 548 // This struct is used to pass the spellchecker object through the notification |
541 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the | 549 // NOTIFY_SPELLCHECKER_REINITIALIZED. This is used as the details for the |
542 // notification service. | 550 // notification service. |
543 struct SpellcheckerReinitializedDetails { | 551 struct SpellcheckerReinitializedDetails { |
544 scoped_refptr<SpellChecker> spellchecker; | 552 scoped_refptr<SpellChecker> spellchecker; |
545 }; | 553 }; |
546 | 554 |
547 #endif // CHROME_BROWSER_PROFILE_H_ | 555 #endif // CHROME_BROWSER_PROFILE_H_ |
OLD | NEW |