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

Side by Side Diff: chrome/browser/ui/webui/app_launcher_page_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
« no previous file with comments | « chrome/browser/ui/webui/about_ui.cc ('k') | chrome/browser/ui/webui/app_launcher_page_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_APP_LAUNCHER_PAGE_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_APP_LAUNCHER_PAGE_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_APP_LAUNCHER_PAGE_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_APP_LAUNCHER_PAGE_UI_H_
7 7
8 #include "content/public/browser/url_data_source.h" 8 #include "content/public/browser/url_data_source.h"
9 #include "content/public/browser/web_ui_controller.h" 9 #include "content/public/browser/web_ui_controller.h"
10 #include "ui/base/layout.h" 10 #include "ui/base/layout.h"
(...skipping 13 matching lines...) Expand all
24 static base::RefCountedMemory* GetFaviconResourceBytes( 24 static base::RefCountedMemory* GetFaviconResourceBytes(
25 ui::ScaleFactor scale_factor); 25 ui::ScaleFactor scale_factor);
26 26
27 private: 27 private:
28 class HTMLSource : public content::URLDataSource { 28 class HTMLSource : public content::URLDataSource {
29 public: 29 public:
30 explicit HTMLSource(Profile* profile); 30 explicit HTMLSource(Profile* profile);
31 virtual ~HTMLSource(); 31 virtual ~HTMLSource();
32 32
33 // content::URLDataSource implementation. 33 // content::URLDataSource implementation.
34 virtual std::string GetSource() OVERRIDE; 34 virtual std::string GetSource() const OVERRIDE;
35 virtual void StartDataRequest( 35 virtual void StartDataRequest(
36 const std::string& path, 36 const std::string& path,
37 bool is_incognito, 37 bool is_incognito,
38 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; 38 const content::URLDataSource::GotDataCallback& callback) OVERRIDE;
39 virtual std::string GetMimeType(const std::string&) const OVERRIDE; 39 virtual std::string GetMimeType(const std::string&) const OVERRIDE;
40 virtual bool ShouldReplaceExistingSource() const OVERRIDE; 40 virtual bool ShouldReplaceExistingSource() const OVERRIDE;
41 virtual bool ShouldAddContentSecurityPolicy() const OVERRIDE; 41 virtual bool ShouldAddContentSecurityPolicy() const OVERRIDE;
42 42
43 private: 43 private:
44 44
45 // Pointer back to the original profile. 45 // Pointer back to the original profile.
46 Profile* profile_; 46 Profile* profile_;
47 47
48 DISALLOW_COPY_AND_ASSIGN(HTMLSource); 48 DISALLOW_COPY_AND_ASSIGN(HTMLSource);
49 }; 49 };
50 50
51 Profile* GetProfile() const; 51 Profile* GetProfile() const;
52 52
53 DISALLOW_COPY_AND_ASSIGN(AppLauncherPageUI); 53 DISALLOW_COPY_AND_ASSIGN(AppLauncherPageUI);
54 }; 54 };
55 55
56 #endif // CHROME_BROWSER_UI_WEBUI_APP_LAUNCHER_PAGE_UI_H_ 56 #endif // CHROME_BROWSER_UI_WEBUI_APP_LAUNCHER_PAGE_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/about_ui.cc ('k') | chrome/browser/ui/webui/app_launcher_page_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698