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

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

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More IWYU, missing link-time dependency for Chrome Frame. Created 9 years, 1 month 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/repost_form_warning_ui.h" 5 #include "chrome/browser/ui/webui/repost_form_warning_ui.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
11 #include "base/message_loop.h"
11 #include "base/string_piece.h" 12 #include "base/string_piece.h"
12 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
13 #include "base/values.h" 14 #include "base/values.h"
14 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/repost_form_warning_controller.h" 16 #include "chrome/browser/repost_form_warning_controller.h"
16 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 17 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
17 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 18 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
18 #include "chrome/browser/ui/webui/constrained_html_ui.h" 19 #include "chrome/browser/ui/webui/constrained_html_ui.h"
19 #include "chrome/browser/ui/webui/html_dialog_ui.h" 20 #include "chrome/browser/ui/webui/html_dialog_ui.h"
20 #include "chrome/common/jstemplate_builder.h" 21 #include "chrome/common/jstemplate_builder.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 153
153 RepostFormWarningUI::~RepostFormWarningUI() {} 154 RepostFormWarningUI::~RepostFormWarningUI() {}
154 155
155 void RepostFormWarningUI::OnDialogClosed(bool repost) { 156 void RepostFormWarningUI::OnDialogClosed(bool repost) {
156 if (repost) 157 if (repost)
157 controller_->Continue(); 158 controller_->Continue();
158 else 159 else
159 controller_->Cancel(); 160 controller_->Cancel();
160 delete this; 161 delete this;
161 } 162 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698