| 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/ui/webui/slideshow_ui.h" | 5 #include "chrome/browser/ui/webui/slideshow_ui.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/memory/singleton.h" | 8 #include "base/memory/singleton.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 | 275 |
| 276 SlideshowUI::SlideshowUI(TabContents* contents) : WebUI(contents) { | 276 SlideshowUI::SlideshowUI(TabContents* contents) : WebUI(contents) { |
| 277 SlideshowHandler* handler = new SlideshowHandler(); | 277 SlideshowHandler* handler = new SlideshowHandler(); |
| 278 AddMessageHandler((handler)->Attach(this)); | 278 AddMessageHandler((handler)->Attach(this)); |
| 279 handler->Init(); | 279 handler->Init(); |
| 280 SlideshowUIHTMLSource* html_source = new SlideshowUIHTMLSource(); | 280 SlideshowUIHTMLSource* html_source = new SlideshowUIHTMLSource(); |
| 281 | 281 |
| 282 // Set up the chrome://slideshow/ source. | 282 // Set up the chrome://slideshow/ source. |
| 283 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); | 283 contents->profile()->GetChromeURLDataManager()->AddDataSource(html_source); |
| 284 } | 284 } |
| OLD | NEW |