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

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

Issue 7637026: Add content-security-policy to chrome://quota-internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 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_QUOTA_INTERNALS_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/ui/webui/chrome_web_ui.h" 11 #include "chrome/browser/ui/webui/chrome_web_ui.h"
12 #include "chrome/browser/ui/webui/chrome_web_ui_data_source.h"
13 12
14 class QuotaInternalsUI : public ChromeWebUI { 13 class QuotaInternalsUI : public ChromeWebUI {
15 public: 14 public:
16 explicit QuotaInternalsUI(TabContents* contents); 15 explicit QuotaInternalsUI(TabContents* contents);
17 virtual ~QuotaInternalsUI() {} 16 virtual ~QuotaInternalsUI() {}
18 private: 17 private:
19 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsUI); 18 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsUI);
20 }; 19 };
21 20
22 namespace quota_internals {
23
24 class QuotaInternalsHTMLSource : public ChromeWebUIDataSource {
25 public:
26 static const char kStringsJSPath[];
27
28 QuotaInternalsHTMLSource();
29 virtual void StartDataRequest(const std::string& path,
30 bool is_incognito,
31 int request_id) OVERRIDE;
32 virtual std::string GetMimeType(const std::string& path) const OVERRIDE;
33
34 private:
35 virtual ~QuotaInternalsHTMLSource() {}
36
37 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsHTMLSource);
38 };
39
40 } // namespace quota_internals
41
42 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_UI_H_ 21 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/quota_internals_resources.grd ('k') | chrome/browser/ui/webui/quota_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698