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

Side by Side Diff: chrome/browser/ui/webui/chromeos/imageburner/webui_handler.h

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 5
6 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_ 6 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_
7 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_ 7 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/file_path.h" 11 #include "base/file_path.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/chromeos/cros/burn_library.h" 14 #include "chrome/browser/chromeos/cros/burn_library.h"
15 #include "chrome/browser/chromeos/cros/cros_library.h" 15 #include "chrome/browser/chromeos/cros/cros_library.h"
16 #include "chrome/browser/chromeos/cros/network_library.h" 16 #include "chrome/browser/chromeos/cros/network_library.h"
17 #include "chrome/browser/chromeos/disks/disk_mount_manager.h" 17 #include "chrome/browser/chromeos/disks/disk_mount_manager.h"
18 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 18 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
19 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.h" 19 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_utils.h"
20 #include "content/browser/tab_contents/tab_contents.h" 20 #include "content/browser/tab_contents/tab_contents.h"
21 #include "content/public/browser/download_item.h" 21 #include "content/public/browser/download_item.h"
22 #include "content/public/browser/download_manager.h" 22 #include "content/public/browser/download_manager.h"
23 #include "content/public/browser/web_ui_message_handler.h"
23 #include "googleurl/src/gurl.h" 24 #include "googleurl/src/gurl.h"
24 25
25 using content::BrowserThread; 26 using content::BrowserThread;
26 27
27 namespace imageburner { 28 namespace imageburner {
28 29
29 enum ProgressType { 30 enum ProgressType {
30 DOWNLOAD, 31 DOWNLOAD,
31 UNZIP, 32 UNZIP,
32 BURN 33 BURN
(...skipping 29 matching lines...) Expand all
62 private: 63 private:
63 base::WeakPtr<Delegate> delegate_; 64 base::WeakPtr<Delegate> delegate_;
64 65
65 friend class base::RefCountedThreadSafe<WebUIHandlerTaskProxy>; 66 friend class base::RefCountedThreadSafe<WebUIHandlerTaskProxy>;
66 ~WebUIHandlerTaskProxy(); 67 ~WebUIHandlerTaskProxy();
67 68
68 DISALLOW_COPY_AND_ASSIGN(WebUIHandlerTaskProxy); 69 DISALLOW_COPY_AND_ASSIGN(WebUIHandlerTaskProxy);
69 }; 70 };
70 71
71 class WebUIHandler 72 class WebUIHandler
72 : public WebUIMessageHandler, 73 : public content::WebUIMessageHandler,
73 public chromeos::disks::DiskMountManager::Observer, 74 public chromeos::disks::DiskMountManager::Observer,
74 public chromeos::BurnLibrary::Observer, 75 public chromeos::BurnLibrary::Observer,
75 public chromeos::NetworkLibrary::NetworkManagerObserver, 76 public chromeos::NetworkLibrary::NetworkManagerObserver,
76 public content::DownloadItem::Observer, 77 public content::DownloadItem::Observer,
77 public content::DownloadManager::Observer, 78 public content::DownloadManager::Observer,
78 public Downloader::Listener, 79 public Downloader::Listener,
79 public StateMachine::Observer, 80 public StateMachine::Observer,
80 public WebUIHandlerTaskProxy::Delegate, 81 public WebUIHandlerTaskProxy::Delegate,
81 public BurnManager::Delegate { 82 public BurnManager::Delegate {
82 public: 83 public:
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 BurnManager* burn_manager_; 203 BurnManager* burn_manager_;
203 StateMachine* state_machine_; 204 StateMachine* state_machine_;
204 bool observing_burn_lib_; 205 bool observing_burn_lib_;
205 bool working_; 206 bool working_;
206 207
207 DISALLOW_COPY_AND_ASSIGN(WebUIHandler); 208 DISALLOW_COPY_AND_ASSIGN(WebUIHandler);
208 }; 209 };
209 210
210 } // namespace imageburner. 211 } // namespace imageburner.
211 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_ 212 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_IMAGEBURNER_WEBUI_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698