| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/ui/webui/external_web_dialog_ui.h" |
| 6 |
| 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" |
| 9 #include "base/lazy_instance.h" |
| 10 #include "base/property_bag.h" |
| 11 #include "base/values.h" |
| 12 #include "content/public/browser/notification_service.h" |
| 13 #include "content/public/browser/render_view_host.h" |
| 14 #include "content/public/browser/web_contents.h" |
| 15 #include "content/public/browser/web_ui.h" |
| 16 #include "content/public/browser/web_ui_message_handler.h" |
| 17 #include "content/public/common/bindings_policy.h" |
| 18 |
| 19 |
| 20 ExternalWebDialogUI::ExternalWebDialogUI(content::WebUI* web_ui) |
| 21 : web_dialogs::WebDialogUI(web_ui) { |
| 22 // Non-file based UI needs to not have access to the Web UI bindings |
| 23 // for security reasons. The code hosting the dialog should provide |
| 24 // dialog specific functionality through other bindings and methods |
| 25 // that are scoped in duration to the dialogs existence. |
| 26 web_ui->SetBindings(web_ui->GetBindings() & ~content::BINDINGS_POLICY_WEB_UI); |
| 27 } |
| 28 |
| 29 ExternalWebDialogUI::~ExternalWebDialogUI() { |
| 30 } |
| OLD | NEW |