OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/dom_ui/constrained_html_ui.h" | 5 #include "chrome/browser/dom_ui/constrained_html_ui.h" |
6 | 6 |
| 7 #include "base/singleton.h" |
7 #include "chrome/browser/dom_ui/dom_ui_util.h" | 8 #include "chrome/browser/dom_ui/dom_ui_util.h" |
8 #include "chrome/browser/dom_ui/html_dialog_ui.h" | 9 #include "chrome/browser/dom_ui/html_dialog_ui.h" |
9 #include "chrome/browser/renderer_host/render_view_host.h" | 10 #include "chrome/browser/renderer_host/render_view_host.h" |
10 #include "chrome/common/bindings_policy.h" | 11 #include "chrome/common/bindings_policy.h" |
11 | 12 |
12 ConstrainedHtmlUI::ConstrainedHtmlUI(TabContents* contents) | 13 ConstrainedHtmlUI::ConstrainedHtmlUI(TabContents* contents) |
13 : DOMUI(contents) { | 14 : DOMUI(contents) { |
14 } | 15 } |
15 | 16 |
16 ConstrainedHtmlUI::~ConstrainedHtmlUI() { | 17 ConstrainedHtmlUI::~ConstrainedHtmlUI() { |
(...skipping 27 matching lines...) Expand all Loading... |
44 ConstrainedHtmlUIDelegate* | 45 ConstrainedHtmlUIDelegate* |
45 ConstrainedHtmlUI::GetConstrainedDelegate() { | 46 ConstrainedHtmlUI::GetConstrainedDelegate() { |
46 return *GetPropertyAccessor().GetProperty(tab_contents()->property_bag()); | 47 return *GetPropertyAccessor().GetProperty(tab_contents()->property_bag()); |
47 } | 48 } |
48 | 49 |
49 // static | 50 // static |
50 PropertyAccessor<ConstrainedHtmlUIDelegate*>& | 51 PropertyAccessor<ConstrainedHtmlUIDelegate*>& |
51 ConstrainedHtmlUI::GetPropertyAccessor() { | 52 ConstrainedHtmlUI::GetPropertyAccessor() { |
52 return *Singleton<PropertyAccessor<ConstrainedHtmlUIDelegate*> >::get(); | 53 return *Singleton<PropertyAccessor<ConstrainedHtmlUIDelegate*> >::get(); |
53 } | 54 } |
OLD | NEW |