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/chromeos/cros/burn_library.h" | 5 #include "chrome/browser/chromeos/cros/burn_library.h" |
6 | 6 |
7 #include <cstring> | 7 #include <cstring> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
11 #include "chrome/browser/chromeos/cros/cros_library.h" | 11 #include "chrome/browser/chromeos/cros/cros_library.h" |
12 #include "chrome/common/zip.h" | 12 #include "chrome/common/zip.h" |
13 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
14 | 14 |
| 15 using content::BrowserThread; |
| 16 |
15 namespace chromeos { | 17 namespace chromeos { |
16 | 18 |
17 class BurnLibraryImpl : public BurnLibrary, | 19 class BurnLibraryImpl : public BurnLibrary, |
18 public base::SupportsWeakPtr<BurnLibraryImpl> { | 20 public base::SupportsWeakPtr<BurnLibraryImpl> { |
19 public: | 21 public: |
20 BurnLibraryImpl(); | 22 BurnLibraryImpl(); |
21 virtual ~BurnLibraryImpl(); | 23 virtual ~BurnLibraryImpl(); |
22 | 24 |
23 // BurnLibrary implementation. | 25 // BurnLibrary implementation. |
24 virtual void AddObserver(Observer* observer) OVERRIDE; | 26 virtual void AddObserver(Observer* observer) OVERRIDE; |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 BurnLibrary* impl; | 275 BurnLibrary* impl; |
274 if (stub) | 276 if (stub) |
275 impl = new BurnLibraryStubImpl(); | 277 impl = new BurnLibraryStubImpl(); |
276 else | 278 else |
277 impl = new BurnLibraryImpl(); | 279 impl = new BurnLibraryImpl(); |
278 impl->Init(); | 280 impl->Init(); |
279 return impl; | 281 return impl; |
280 } | 282 } |
281 | 283 |
282 } // namespace chromeos | 284 } // namespace chromeos |
OLD | NEW |