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

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

Issue 2003963004: Enable CSP on more WebUI pages (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: revert devtools, fix comments, split methods Created 4 years, 7 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
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 "base/macros.h" 8 #include "base/macros.h"
9 #include "content/public/browser/url_data_source.h" 9 #include "content/public/browser/url_data_source.h"
10 #include "content/public/browser/web_ui_controller.h" 10 #include "content/public/browser/web_ui_controller.h"
(...skipping 27 matching lines...) Expand all
38 38
39 // content::URLDataSource implementation. 39 // content::URLDataSource implementation.
40 std::string GetSource() const override; 40 std::string GetSource() const override;
41 void StartDataRequest( 41 void StartDataRequest(
42 const std::string& path, 42 const std::string& path,
43 int render_process_id, 43 int render_process_id,
44 int render_frame_id, 44 int render_frame_id,
45 const content::URLDataSource::GotDataCallback& callback) override; 45 const content::URLDataSource::GotDataCallback& callback) override;
46 std::string GetMimeType(const std::string&) const override; 46 std::string GetMimeType(const std::string&) const override;
47 bool ShouldReplaceExistingSource() const override; 47 bool ShouldReplaceExistingSource() const override;
48 bool ShouldAddContentSecurityPolicy() const override; 48 std::string GetContentSecurityPolicyScriptSrc() const override;
49 std::string GetContentSecurityPolicyStyleSrc() const override;
50 std::string GetContentSecurityPolicyImgSrc() const override;
49 51
50 private: 52 private:
51 53
52 // Pointer back to the original profile. 54 // Pointer back to the original profile.
53 Profile* profile_; 55 Profile* profile_;
54 56
55 DISALLOW_COPY_AND_ASSIGN(HTMLSource); 57 DISALLOW_COPY_AND_ASSIGN(HTMLSource);
56 }; 58 };
57 59
58 Profile* GetProfile() const; 60 Profile* GetProfile() const;
59 61
60 DISALLOW_COPY_AND_ASSIGN(AppLauncherPageUI); 62 DISALLOW_COPY_AND_ASSIGN(AppLauncherPageUI);
61 }; 63 };
62 64
63 #endif // CHROME_BROWSER_UI_WEBUI_APP_LAUNCHER_PAGE_UI_H_ 65 #endif // CHROME_BROWSER_UI_WEBUI_APP_LAUNCHER_PAGE_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698