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

Side by Side Diff: chrome/browser/ui/webui/interstitials/interstitial_ui.cc

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 years, 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/interstitials/interstitial_ui.h" 5 #include "chrome/browser/ui/webui/interstitials/interstitial_ui.h"
6 6
7 #include "base/strings/string_util.h" 7 #include "base/strings/string_util.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h" 10 #include "chrome/browser/safe_browsing/safe_browsing_blocking_page.h"
11 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 11 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
12 #include "chrome/browser/ssl/ssl_blocking_page.h" 12 #include "chrome/browser/ssl/ssl_blocking_page.h"
13 #include "chrome/common/url_constants.h" 13 #include "chrome/common/url_constants.h"
14 #include "content/public/browser/interstitial_page_delegate.h" 14 #include "content/public/browser/interstitial_page_delegate.h"
15 #include "content/public/browser/web_contents.h" 15 #include "content/public/browser/web_contents.h"
16 #include "content/public/browser/web_ui.h" 16 #include "content/public/browser/web_ui.h"
17 #include "content/public/browser/web_ui_controller.h" 17 #include "content/public/browser/web_ui_controller.h"
18 #include "content/public/browser/web_ui_data_source.h" 18 #include "content/public/browser/web_ui_data_source.h"
19 #include "grit/browser_resources.h"
20 #include "net/base/net_errors.h" 19 #include "net/base/net_errors.h"
21 #include "net/base/url_util.h" 20 #include "net/base/url_util.h"
22 #include "net/cert/x509_certificate.h" 21 #include "net/cert/x509_certificate.h"
23 #include "net/ssl/ssl_info.h" 22 #include "net/ssl/ssl_info.h"
24 23
25 namespace { 24 namespace {
26 25
27 class InterstitialHTMLSource : public content::URLDataSource { 26 class InterstitialHTMLSource : public content::URLDataSource {
28 public: 27 public:
29 InterstitialHTMLSource(Profile* profile, 28 InterstitialHTMLSource(Profile* profile,
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 "<a href='safebrowsing?type=clientside_malware'>" 192 "<a href='safebrowsing?type=clientside_malware'>"
194 " Client Side Malware</a><br>" 193 " Client Side Malware</a><br>"
195 "<a href='safebrowsing?type=clientside_phishing'>" 194 "<a href='safebrowsing?type=clientside_phishing'>"
196 " Client Side Phishing</a><br>" 195 " Client Side Phishing</a><br>"
197 "</body></html>"; 196 "</body></html>";
198 } 197 }
199 scoped_refptr<base::RefCountedString> html_bytes = new base::RefCountedString; 198 scoped_refptr<base::RefCountedString> html_bytes = new base::RefCountedString;
200 html_bytes->data().assign(html.begin(), html.end()); 199 html_bytes->data().assign(html.begin(), html.end());
201 callback.Run(html_bytes.get()); 200 callback.Run(html_bytes.get());
202 } 201 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/help/help_handler.cc ('k') | chrome/browser/ui/webui/media/webrtc_logs_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698