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

Side by Side Diff: chrome/browser/ui/webui/about_ui.h

Issue 13945023: Make URLDataSource::GetSource() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: And another one. Created 7 years, 8 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 (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 #ifndef CHROME_BROWSER_UI_WEBUI_ABOUT_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_ABOUT_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_ABOUT_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_ABOUT_UI_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "content/public/browser/url_data_source.h" 12 #include "content/public/browser/url_data_source.h"
13 #include "content/public/browser/web_ui_controller.h" 13 #include "content/public/browser/web_ui_controller.h"
14 14
15 class Profile; 15 class Profile;
16 16
17 // We expose this class because the OOBE flow may need to explicitly add the 17 // We expose this class because the OOBE flow may need to explicitly add the
18 // chrome://terms source outside of the normal flow. 18 // chrome://terms source outside of the normal flow.
19 class AboutUIHTMLSource : public content::URLDataSource { 19 class AboutUIHTMLSource : public content::URLDataSource {
20 public: 20 public:
21 // Construct a data source for the specified |source_name|. 21 // Construct a data source for the specified |source_name|.
22 AboutUIHTMLSource(const std::string& source_name, Profile* profile); 22 AboutUIHTMLSource(const std::string& source_name, Profile* profile);
23 23
24 // content::URLDataSource implementation. 24 // content::URLDataSource implementation.
25 virtual std::string GetSource() OVERRIDE; 25 virtual std::string GetSource() const OVERRIDE;
26 virtual void StartDataRequest( 26 virtual void StartDataRequest(
27 const std::string& path, 27 const std::string& path,
28 bool is_incognito, 28 bool is_incognito,
29 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; 29 const content::URLDataSource::GotDataCallback& callback) OVERRIDE;
30 virtual std::string GetMimeType(const std::string& path) const OVERRIDE; 30 virtual std::string GetMimeType(const std::string& path) const OVERRIDE;
31 virtual bool ShouldAddContentSecurityPolicy() const OVERRIDE; 31 virtual bool ShouldAddContentSecurityPolicy() const OVERRIDE;
32 virtual bool ShouldDenyXFrameOptions() const OVERRIDE; 32 virtual bool ShouldDenyXFrameOptions() const OVERRIDE;
33 33
34 // Send the response data. 34 // Send the response data.
35 void FinishDataRequest( 35 void FinishDataRequest(
(...skipping 24 matching lines...) Expand all
60 60
61 // Helper functions 61 // Helper functions
62 void AppendHeader(std::string* output, int refresh, 62 void AppendHeader(std::string* output, int refresh,
63 const std::string& unescaped_title); 63 const std::string& unescaped_title);
64 void AppendBody(std::string *output); 64 void AppendBody(std::string *output);
65 void AppendFooter(std::string *output); 65 void AppendFooter(std::string *output);
66 66
67 } // namespace about_ui 67 } // namespace about_ui
68 68
69 #endif // CHROME_BROWSER_UI_WEBUI_ABOUT_UI_H_ 69 #endif // CHROME_BROWSER_UI_WEBUI_ABOUT_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/search/local_omnibox_popup_source.cc ('k') | chrome/browser/ui/webui/about_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698