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

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: address comments 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 GetContentSecurityPolicyObjectSrc() const override;
49 50
50 private: 51 private:
51 52
52 // Pointer back to the original profile. 53 // Pointer back to the original profile.
53 Profile* profile_; 54 Profile* profile_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(HTMLSource); 56 DISALLOW_COPY_AND_ASSIGN(HTMLSource);
56 }; 57 };
57 58
58 Profile* GetProfile() const; 59 Profile* GetProfile() const;
59 60
60 DISALLOW_COPY_AND_ASSIGN(AppLauncherPageUI); 61 DISALLOW_COPY_AND_ASSIGN(AppLauncherPageUI);
61 }; 62 };
62 63
63 #endif // CHROME_BROWSER_UI_WEBUI_APP_LAUNCHER_PAGE_UI_H_ 64 #endif // CHROME_BROWSER_UI_WEBUI_APP_LAUNCHER_PAGE_UI_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/app_launcher_page_ui.cc » ('j') | chrome/browser/ui/webui/app_launcher_page_ui.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698