summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorachuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-12 19:08:57 +0000
committerachuith@chromium.org <achuith@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-12 19:08:57 +0000
commitfe46d722a53b188530b6b9ae2affdedab41ece44 (patch)
tree4b43f215860dd541e62f1abeb2c212b925318b25
parentf86b491c0bc369e574c0e77613d402a1f84b0160 (diff)
downloadchromium_src-fe46d722a53b188530b6b9ae2affdedab41ece44.zip
chromium_src-fe46d722a53b188530b6b9ae2affdedab41ece44.tar.gz
chromium_src-fe46d722a53b188530b6b9ae2affdedab41ece44.tar.bz2
Cleanup - move BurnLibraryImpl declaration to .cc
BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/6157006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71209 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/chromeos/cros/burn_library.cc48
-rw-r--r--chrome/browser/chromeos/cros/burn_library.h48
2 files changed, 48 insertions, 48 deletions
diff --git a/chrome/browser/chromeos/cros/burn_library.cc b/chrome/browser/chromeos/cros/burn_library.cc
index f1c2c51..dcae858 100644
--- a/chrome/browser/chromeos/cros/burn_library.cc
+++ b/chrome/browser/chromeos/cros/burn_library.cc
@@ -11,6 +11,54 @@
namespace chromeos {
+class BurnLibraryImpl : public BurnLibrary,
+ public base::SupportsWeakPtr<BurnLibraryImpl> {
+ public:
+
+ BurnLibraryImpl();
+ virtual ~BurnLibraryImpl();
+
+ // BurnLibrary implementation.
+ virtual void AddObserver(Observer* observer);
+ virtual void RemoveObserver(Observer* observer);
+ virtual bool DoBurn(const FilePath& from_path, const FilePath& to_path);
+
+ bool BurnImage(const FilePath& from_path, const FilePath& to_path);
+ void UpdateBurnStatus(const ImageBurnStatus& status, BurnEventType evt);
+
+ private:
+ void Init();
+ static void BurnStatusChangedHandler(void* object,
+ const BurnStatus& status,
+ BurnEventType evt);
+
+ private:
+ ObserverList<BurnLibrary::Observer> observers_;
+ BurnStatusConnection burn_status_connection_;
+
+ // Holds a path that is currently being burnt to.
+ std::string target_path_;
+
+ DISALLOW_COPY_AND_ASSIGN(BurnLibraryImpl);
+};
+
+class BurnLibraryTaskProxy
+ : public base::RefCountedThreadSafe<BurnLibraryTaskProxy> {
+ public:
+ explicit BurnLibraryTaskProxy(const base::WeakPtr<BurnLibraryImpl>& library);
+
+ void BurnImage(const FilePath& from_path, const FilePath& to_path);
+
+ void UpdateBurnStatus(ImageBurnStatus* status, BurnEventType evt);
+
+ private:
+ base::WeakPtr<BurnLibraryImpl> library_;
+
+ friend class base::RefCountedThreadSafe<BurnLibraryTaskProxy>;
+
+ DISALLOW_COPY_AND_ASSIGN(BurnLibraryTaskProxy);
+};
+
BurnLibraryImpl::BurnLibraryImpl() {
if (CrosLibrary::Get()->EnsureLoaded()) {
Init();
diff --git a/chrome/browser/chromeos/cros/burn_library.h b/chrome/browser/chromeos/cros/burn_library.h
index bc4a657..cfed778 100644
--- a/chrome/browser/chromeos/cros/burn_library.h
+++ b/chrome/browser/chromeos/cros/burn_library.h
@@ -49,54 +49,6 @@ class BurnLibrary {
static BurnLibrary* GetImpl(bool stub);
};
-class BurnLibraryImpl : public BurnLibrary,
- public base::SupportsWeakPtr<BurnLibraryImpl> {
- public:
-
- BurnLibraryImpl();
- virtual ~BurnLibraryImpl();
-
- // BurnLibrary implementation.
- virtual void AddObserver(Observer* observer);
- virtual void RemoveObserver(Observer* observer);
- virtual bool DoBurn(const FilePath& from_path, const FilePath& to_path);
-
- bool BurnImage(const FilePath& from_path, const FilePath& to_path);
- void UpdateBurnStatus(const ImageBurnStatus& status, BurnEventType evt);
-
- private:
- void Init();
- static void BurnStatusChangedHandler(void* object,
- const BurnStatus& status,
- BurnEventType evt);
-
- private:
- ObserverList<BurnLibrary::Observer> observers_;
- BurnStatusConnection burn_status_connection_;
-
- // Holds a path that is currently being burnt to.
- std::string target_path_;
-
- DISALLOW_COPY_AND_ASSIGN(BurnLibraryImpl);
-};
-
-class BurnLibraryTaskProxy
- : public base::RefCountedThreadSafe<BurnLibraryTaskProxy> {
- public:
- explicit BurnLibraryTaskProxy(const base::WeakPtr<BurnLibraryImpl>& library);
-
- void BurnImage(const FilePath& from_path, const FilePath& to_path);
-
- void UpdateBurnStatus(ImageBurnStatus* status, BurnEventType evt);
-
- private:
- base::WeakPtr<BurnLibraryImpl> library_;
-
- friend class base::RefCountedThreadSafe<BurnLibraryTaskProxy>;
-
- DISALLOW_COPY_AND_ASSIGN(BurnLibraryTaskProxy);
-};
-
} // namespace chromeos
#endif // CHROME_BROWSER_CHROMEOS_CROS_BURN_LIBRARY_H_