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

Side by Side Diff: chrome/browser/ui/webui/html_dialog_ui.cc

Issue 6874038: Remove the last Chrome dependencies from renderer, and enforce no more includes through DEPS. I ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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 #include "chrome/browser/ui/webui/html_dialog_ui.h" 5 #include "chrome/browser/ui/webui/html_dialog_ui.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/common/bindings_policy.h"
11 #include "content/browser/renderer_host/render_view_host.h" 10 #include "content/browser/renderer_host/render_view_host.h"
12 #include "content/browser/tab_contents/tab_contents.h" 11 #include "content/browser/tab_contents/tab_contents.h"
12 #include "content/common/bindings_policy.h"
13 13
14 static base::LazyInstance<PropertyAccessor<HtmlDialogUIDelegate*> > 14 static base::LazyInstance<PropertyAccessor<HtmlDialogUIDelegate*> >
15 g_html_dialog_ui_property_accessor(base::LINKER_INITIALIZED); 15 g_html_dialog_ui_property_accessor(base::LINKER_INITIALIZED);
16 16
17 HtmlDialogUI::HtmlDialogUI(TabContents* tab_contents) : WebUI(tab_contents) { 17 HtmlDialogUI::HtmlDialogUI(TabContents* tab_contents) : WebUI(tab_contents) {
18 } 18 }
19 19
20 HtmlDialogUI::~HtmlDialogUI() { 20 HtmlDialogUI::~HtmlDialogUI() {
21 // Don't unregister our property. During the teardown of the TabContents, 21 // Don't unregister our property. During the teardown of the TabContents,
22 // this will be deleted, but the TabContents will already be destroyed. 22 // this will be deleted, but the TabContents will already be destroyed.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // that are scoped in duration to the dialogs existence. 81 // that are scoped in duration to the dialogs existence.
82 bindings_ &= ~BindingsPolicy::WEB_UI; 82 bindings_ &= ~BindingsPolicy::WEB_UI;
83 } 83 }
84 84
85 ExternalHtmlDialogUI::~ExternalHtmlDialogUI() { 85 ExternalHtmlDialogUI::~ExternalHtmlDialogUI() {
86 } 86 }
87 87
88 bool HtmlDialogUIDelegate::HandleContextMenu(const ContextMenuParams& params) { 88 bool HtmlDialogUIDelegate::HandleContextMenu(const ContextMenuParams& params) {
89 return false; 89 return false;
90 } 90 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698