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

Side by Side Diff: chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.cc

Issue 8956019: base::Bind: Remove includes of base.bind in header files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Mac fix. Created 9 years 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 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/imageburner/imageburner_ui.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 //////////////////////////////////////////////////////////////////////////////// 107 ////////////////////////////////////////////////////////////////////////////////
108 108
109 WebUIHandlerTaskProxy::WebUIHandlerTaskProxy(Delegate* delegate) { 109 WebUIHandlerTaskProxy::WebUIHandlerTaskProxy(Delegate* delegate) {
110 delegate_ = delegate->AsWeakPtr(); 110 delegate_ = delegate->AsWeakPtr();
111 delegate_->DetachFromThread(); 111 delegate_->DetachFromThread();
112 } 112 }
113 113
114 WebUIHandlerTaskProxy::~WebUIHandlerTaskProxy() { 114 WebUIHandlerTaskProxy::~WebUIHandlerTaskProxy() {
115 } 115 }
116 116
117 void WebUIHandlerTaskProxy::DeleteOnUIThread() {
118 BrowserThread::PostTask(
119 BrowserThread::UI, FROM_HERE,
120 base::Bind(&WebUIHandlerTaskProxy::DoNothing, this));
121 }
122
117 //////////////////////////////////////////////////////////////////////////////// 123 ////////////////////////////////////////////////////////////////////////////////
118 // 124 //
119 // WebUIHandler 125 // WebUIHandler
120 // 126 //
121 //////////////////////////////////////////////////////////////////////////////// 127 ////////////////////////////////////////////////////////////////////////////////
122 128
123 WebUIHandler::WebUIHandler(TabContents* contents) 129 WebUIHandler::WebUIHandler(TabContents* contents)
124 : tab_contents_(contents), 130 : tab_contents_(contents),
125 download_manager_(NULL), 131 download_manager_(NULL),
126 active_download_item_(NULL), 132 active_download_item_(NULL),
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 //////////////////////////////////////////////////////////////////////////////// 646 ////////////////////////////////////////////////////////////////////////////////
641 647
642 ImageBurnUI::ImageBurnUI(TabContents* contents) : ChromeWebUI(contents) { 648 ImageBurnUI::ImageBurnUI(TabContents* contents) : ChromeWebUI(contents) {
643 imageburner::WebUIHandler* handler = new imageburner::WebUIHandler(contents); 649 imageburner::WebUIHandler* handler = new imageburner::WebUIHandler(contents);
644 AddMessageHandler((handler)->Attach(this)); 650 AddMessageHandler((handler)->Attach(this));
645 651
646 Profile* profile = Profile::FromBrowserContext(contents->browser_context()); 652 Profile* profile = Profile::FromBrowserContext(contents->browser_context());
647 profile->GetChromeURLDataManager()->AddDataSource( 653 profile->GetChromeURLDataManager()->AddDataSource(
648 CreateImageburnerUIHTMLSource()); 654 CreateImageburnerUIHTMLSource());
649 } 655 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/util/weak_handle.cc ('k') | chrome/browser/ui/webui/chromeos/imageburner/webui_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698