OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_WEBUI_INTERSTITIALS_INTERSTITIAL_UI_H_ | |
6 #define CHROME_BROWSER_UI_WEBUI_INTERSTITIALS_INTERSTITIAL_UI_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "content/public/browser/url_data_source.h" | |
11 #include "content/public/browser/web_ui_controller.h" | |
12 | |
13 class Profile; | |
14 | |
15 namespace content { | |
16 class WebContents; | |
17 } | |
18 | |
19 class InterstitialUI : public content::WebUIController { | |
20 public: | |
21 explicit InterstitialUI(content::WebUI* web_ui); | |
22 | |
23 virtual ~InterstitialUI(); | |
24 | |
25 private: | |
26 class InterstitialHTMLSource : public content::URLDataSource { | |
27 public: | |
felt
2014/07/15 01:38:26
^ nit: indent one?
meacer
2014/07/15 19:48:07
Done.
| |
28 InterstitialHTMLSource(Profile* profile, | |
29 content::WebContents* web_contents); | |
30 virtual ~InterstitialHTMLSource(); | |
31 | |
32 // content::URLDataSource: | |
33 virtual std::string GetMimeType( | |
34 const std::string& mime_type) const OVERRIDE; | |
35 virtual std::string GetSource() const OVERRIDE; | |
36 virtual bool ShouldAddContentSecurityPolicy() const OVERRIDE; | |
37 virtual void StartDataRequest( | |
38 const std::string& path, | |
39 int render_process_id, | |
40 int render_frame_id, | |
41 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; | |
42 | |
43 private: | |
felt
2014/07/15 01:38:26
^ nit: indent one?
meacer
2014/07/15 19:48:07
Actually the next two lines had unnecessary indent
| |
44 Profile* profile_; | |
45 content::WebContents* web_contents_; | |
46 DISALLOW_COPY_AND_ASSIGN(InterstitialHTMLSource); | |
47 }; | |
48 | |
49 DISALLOW_COPY_AND_ASSIGN(InterstitialUI); | |
50 }; | |
51 | |
52 #endif // CHROME_BROWSER_UI_WEBUI_INTERSTITIALS_INTERSTITIAL_UI_H_ | |
OLD | NEW |