Chromium Code Reviews| Index: chrome/browser/ui/webui/interstitials/interstitial_ui.h |
| diff --git a/chrome/browser/ui/webui/interstitials/interstitial_ui.h b/chrome/browser/ui/webui/interstitials/interstitial_ui.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a80e93666f642e728d8bbf83387d95ce6fd410f3 |
| --- /dev/null |
| +++ b/chrome/browser/ui/webui/interstitials/interstitial_ui.h |
| @@ -0,0 +1,52 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_WEBUI_INTERSTITIALS_INTERSTITIAL_UI_H_ |
| +#define CHROME_BROWSER_UI_WEBUI_INTERSTITIALS_INTERSTITIAL_UI_H_ |
| + |
| +#include <string> |
| + |
| +#include "content/public/browser/url_data_source.h" |
| +#include "content/public/browser/web_ui_controller.h" |
| + |
| +class Profile; |
| + |
| +namespace content { |
| +class WebContents; |
| +} |
| + |
| +class InterstitialUI : public content::WebUIController { |
| + public: |
| + explicit InterstitialUI(content::WebUI* web_ui); |
| + |
| + virtual ~InterstitialUI(); |
| + |
| + private: |
| + class InterstitialHTMLSource : public content::URLDataSource { |
| + public: |
|
felt
2014/07/15 01:38:26
^ nit: indent one?
meacer
2014/07/15 19:48:07
Done.
|
| + InterstitialHTMLSource(Profile* profile, |
| + content::WebContents* web_contents); |
| + virtual ~InterstitialHTMLSource(); |
| + |
| + // content::URLDataSource: |
| + virtual std::string GetMimeType( |
| + const std::string& mime_type) const OVERRIDE; |
| + virtual std::string GetSource() const OVERRIDE; |
| + virtual bool ShouldAddContentSecurityPolicy() const OVERRIDE; |
| + virtual void StartDataRequest( |
| + const std::string& path, |
| + int render_process_id, |
| + int render_frame_id, |
| + const content::URLDataSource::GotDataCallback& callback) OVERRIDE; |
| + |
| + 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
|
| + Profile* profile_; |
| + content::WebContents* web_contents_; |
| + DISALLOW_COPY_AND_ASSIGN(InterstitialHTMLSource); |
| + }; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(InterstitialUI); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_WEBUI_INTERSTITIALS_INTERSTITIAL_UI_H_ |