diff options
author | dilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-21 18:17:22 +0000 |
---|---|---|
committer | dilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-21 18:17:22 +0000 |
commit | 0649c7b3862bf1a800809b846ddde17b3e036ca7 (patch) | |
tree | 73d375111aafaedfb00c53307140deb1ab06c24d /chrome/browser/chromeos | |
parent | 0e56a116e515bce367456da764c35065fd3909c2 (diff) | |
download | chromium_src-0649c7b3862bf1a800809b846ddde17b3e036ca7.zip chromium_src-0649c7b3862bf1a800809b846ddde17b3e036ca7.tar.gz chromium_src-0649c7b3862bf1a800809b846ddde17b3e036ca7.tar.bz2 |
Hide private stuff into .cc file
No functionality change, just code move.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/6257008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72152 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos')
-rw-r--r-- | chrome/browser/chromeos/locale_change_guard.cc | 17 | ||||
-rw-r--r-- | chrome/browser/chromeos/locale_change_guard.h | 19 |
2 files changed, 20 insertions, 16 deletions
diff --git a/chrome/browser/chromeos/locale_change_guard.cc b/chrome/browser/chromeos/locale_change_guard.cc index f107751..627c992 100644 --- a/chrome/browser/chromeos/locale_change_guard.cc +++ b/chrome/browser/chromeos/locale_change_guard.cc @@ -8,7 +8,9 @@ #include "base/utf_string_conversions.h" #include "chrome/app/chrome_command_ids.h" #include "chrome/browser/browser_process.h" +#include "chrome/browser/chromeos/notifications/system_notification.h" #include "chrome/browser/metrics/user_metrics.h" +#include "chrome/browser/notifications/notification_delegate.h" #include "chrome/browser/prefs/pref_service.h" #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/browser/ui/browser.h" @@ -25,6 +27,21 @@ base::LazyInstance<chromeos::LocaleChangeGuard> g_locale_change_guard( namespace chromeos { +class LocaleChangeGuard::Delegate : public NotificationDelegate { + public: + explicit Delegate(chromeos::LocaleChangeGuard* master) : master_(master) {} + void Close(bool by_user); + void Display() {} + void Error() {} + void Click() {} + std::string id() const; + + private: + chromeos::LocaleChangeGuard* master_; + + DISALLOW_COPY_AND_ASSIGN(Delegate); +}; + LocaleChangeGuard::LocaleChangeGuard() : profile_id_(Profile::InvalidProfileId), tab_contents_(NULL), diff --git a/chrome/browser/chromeos/locale_change_guard.h b/chrome/browser/chromeos/locale_change_guard.h index ed6fa43..0391761 100644 --- a/chrome/browser/chromeos/locale_change_guard.h +++ b/chrome/browser/chromeos/locale_change_guard.h @@ -8,8 +8,6 @@ #include "base/lazy_instance.h" #include "base/scoped_ptr.h" -#include "chrome/browser/chromeos/notifications/system_notification.h" -#include "chrome/browser/notifications/notification_delegate.h" #include "chrome/browser/profiles/profile.h" class ListValue; @@ -17,6 +15,8 @@ class TabContents; namespace chromeos { +class SystemNotification; + class LocaleChangeGuard { public: // When called first time for user profile: performs check whether @@ -26,20 +26,7 @@ class LocaleChangeGuard { static void Check(TabContents* tab_contents); private: - class Delegate : public NotificationDelegate { - public: - explicit Delegate(chromeos::LocaleChangeGuard* master) : master_(master) {} - void Close(bool by_user); - void Display() {} - void Error() {} - void Click() {} - std::string id() const; - - private: - chromeos::LocaleChangeGuard* master_; - - DISALLOW_COPY_AND_ASSIGN(Delegate); - }; + class Delegate; LocaleChangeGuard(); void CheckLocaleChange(TabContents* tab_contents); |