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

Unified Diff: chrome/browser/ui/webui/about_ui.h

Issue 8623001: Move remaining about: handlers to webUI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/ui/webui/about_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/about_ui.h
===================================================================
--- chrome/browser/ui/webui/about_ui.h (revision 0)
+++ chrome/browser/ui/webui/about_ui.h (revision 0)
@@ -0,0 +1,55 @@
+// Copyright (c) 2011 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_ABOUT_UI_H_
+#define CHROME_BROWSER_UI_WEBUI_ABOUT_UI_H_
+#pragma once
+
+#include <string>
+
+#include "base/basictypes.h"
+#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
+#include "chrome/browser/ui/webui/chrome_web_ui.h"
+
+class Profile;
+class TabContents;
+
+// We expose this class because the OOBE flow may need to explicitly add the
+// chrome://terms source outside of the normal flow.
+class AboutUIHTMLSource : public ChromeURLDataManager::DataSource {
+ public:
+ // Construct a data source for the specified |source_name|.
+ AboutUIHTMLSource(const std::string& source_name, Profile* profile);
+
+ // Called when the network layer has requested a resource underneath
+ // the path we registered.
+ virtual void StartDataRequest(const std::string& path,
+ bool is_incognito,
+ int request_id) OVERRIDE;
+
+ virtual std::string GetMimeType(const std::string& path) const OVERRIDE;
+
+ // Send the response data.
+ void FinishDataRequest(const std::string& html, int request_id);
+
+ Profile* profile() { return profile_; }
+
+ private:
+ virtual ~AboutUIHTMLSource();
+
+ Profile* profile_;
+
+ DISALLOW_COPY_AND_ASSIGN(AboutUIHTMLSource);
+};
+
+class AboutUI : public ChromeWebUI {
+ public:
+ explicit AboutUI(TabContents* contents, const std::string& host);
+ virtual ~AboutUI() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AboutUI);
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_ABOUT_UI_H_
Property changes on: chrome/browser/ui/webui/about_ui.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/ui/webui/about_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698