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

Side by Side Diff: chrome/browser/webui/constrained_html_ui.cc

Issue 6532069: Reland "WebUI: Move more files from chrome/browser/dom_ui to chrome/browser/webui. Part 5." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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
« no previous file with comments | « chrome/browser/webui/constrained_html_ui.h ('k') | chrome/browser/webui/crashes_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/dom_ui/constrained_html_ui.h" 5 #include "chrome/browser/webui/constrained_html_ui.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "chrome/browser/dom_ui/html_dialog_ui.h"
9 #include "chrome/browser/renderer_host/render_view_host.h" 8 #include "chrome/browser/renderer_host/render_view_host.h"
10 #include "chrome/browser/tab_contents/tab_contents.h" 9 #include "chrome/browser/tab_contents/tab_contents.h"
10 #include "chrome/browser/webui/html_dialog_ui.h"
11 #include "chrome/browser/webui/web_ui_util.h" 11 #include "chrome/browser/webui/web_ui_util.h"
12 #include "chrome/common/bindings_policy.h" 12 #include "chrome/common/bindings_policy.h"
13 13
14 static base::LazyInstance<PropertyAccessor<ConstrainedHtmlUIDelegate*> > 14 static base::LazyInstance<PropertyAccessor<ConstrainedHtmlUIDelegate*> >
15 g_constrained_html_ui_property_accessor(base::LINKER_INITIALIZED); 15 g_constrained_html_ui_property_accessor(base::LINKER_INITIALIZED);
16 16
17 ConstrainedHtmlUI::ConstrainedHtmlUI(TabContents* contents) 17 ConstrainedHtmlUI::ConstrainedHtmlUI(TabContents* contents)
18 : WebUI(contents) { 18 : WebUI(contents) {
19 } 19 }
20 20
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 ConstrainedHtmlUIDelegate** property = 58 ConstrainedHtmlUIDelegate** property =
59 GetPropertyAccessor().GetProperty(tab_contents()->property_bag()); 59 GetPropertyAccessor().GetProperty(tab_contents()->property_bag());
60 return property ? *property : NULL; 60 return property ? *property : NULL;
61 } 61 }
62 62
63 // static 63 // static
64 PropertyAccessor<ConstrainedHtmlUIDelegate*>& 64 PropertyAccessor<ConstrainedHtmlUIDelegate*>&
65 ConstrainedHtmlUI::GetPropertyAccessor() { 65 ConstrainedHtmlUI::GetPropertyAccessor() {
66 return g_constrained_html_ui_property_accessor.Get(); 66 return g_constrained_html_ui_property_accessor.Get();
67 } 67 }
OLDNEW
« no previous file with comments | « chrome/browser/webui/constrained_html_ui.h ('k') | chrome/browser/webui/crashes_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698