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

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

Issue 10353007: Extract a minimal subset of WebDialogUI/WebDialogDelegate from src/chrome -> src/ui/web_dialogs Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 7 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
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698