Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(903)

Unified Diff: chrome/browser/chromeos/dom_ui/imageburner_ui.h

Issue 6348006: Add IsBootPath to MountLibrary. Additional boot path check in imageburner so ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/cros/mount_library.cc ('k') | chrome/browser/chromeos/dom_ui/imageburner_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/dom_ui/imageburner_ui.h
===================================================================
--- chrome/browser/chromeos/dom_ui/imageburner_ui.h (revision 72694)
+++ chrome/browser/chromeos/dom_ui/imageburner_ui.h (working copy)
@@ -28,37 +28,9 @@
template <typename T> struct DefaultSingletonTraits;
-static const std::string kPropertyPath = "path";
-static const std::string kPropertyTitle = "title";
-static const std::string kPropertyDirectory = "isDirectory";
-static const std::string kImageBaseURL =
- "http://chrome-master.mtv.corp.google.com/chromeos/dev-channel/";
-static const std::string kImageFetcherName = "LATEST-x86-generic";
-static const std::string kImageFileName = "chromeos_image.bin.gz";
-static const std::string kTempImageFolderName = "chromeos_image";
-
class ImageBurnResourceManager;
class TabContents;
-class ImageBurnUIHTMLSource : public ChromeURLDataManager::DataSource {
- public:
- ImageBurnUIHTMLSource();
-
- // Called when the network layer has requested a resource underneath
- // the path we registered.
- virtual void StartDataRequest(const std::string& path,
- bool is_off_the_record,
- int request_id);
- virtual std::string GetMimeType(const std::string&) const {
- return "text/html";
- }
-
- private:
- ~ImageBurnUIHTMLSource() {}
-
- DISALLOW_COPY_AND_ASSIGN(ImageBurnUIHTMLSource);
-};
-
class ImageBurnHandler : public DOMMessageHandler,
public chromeos::MountLibrary::Observer,
public chromeos::BurnLibrary::Observer,
@@ -137,27 +109,6 @@
DISALLOW_COPY_AND_ASSIGN(ImageBurnHandler);
};
-class ImageBurnTaskProxy
- : public base::RefCountedThreadSafe<ImageBurnTaskProxy> {
- public:
- explicit ImageBurnTaskProxy(const base::WeakPtr<ImageBurnHandler>& handler);
-
- bool ReportDownloadInitialized();
- bool CheckDownloadFinished();
- void BurnImage();
- void FinalizeBurn(bool success);
-
- void CreateImageUrl(TabContents* tab_contents, ImageBurnHandler* downloader);
-
- private:
- base::WeakPtr<ImageBurnHandler> handler_;
- ImageBurnResourceManager* resource_manager_;
-
- friend class base::RefCountedThreadSafe<ImageBurnTaskProxy>;
-
- DISALLOW_COPY_AND_ASSIGN(ImageBurnTaskProxy);
-};
-
class ImageBurnResourceManager : public DownloadManager::Observer,
public DownloadItem::Observer {
public:
« no previous file with comments | « chrome/browser/chromeos/cros/mount_library.cc ('k') | chrome/browser/chromeos/dom_ui/imageburner_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698