OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_UI_H_ | |
6 #define CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_UI_H_ | |
7 #pragma once | |
8 | |
9 #include <string> | |
10 | |
11 #include "base/values.h" | |
12 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" | |
13 #include "content/browser/webui/web_ui.h" | |
14 | |
15 class QuotaInternalsUI : public WebUI { | |
16 public: | |
17 explicit QuotaInternalsUI(TabContents* contents); | |
Evan Stade
2011/06/04 02:43:17
define virtual destructor
tzik
2011/06/06 10:57:44
Done.
| |
18 private: | |
19 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsUI); | |
20 }; | |
21 | |
22 namespace quota_internals { | |
23 | |
24 class QuotaInternalsHTMLSource : public ChromeURLDataManager::DataSource { | |
25 public: | |
26 static const char kStringsJSPath[]; | |
27 | |
28 QuotaInternalsHTMLSource(); | |
Evan Stade
2011/06/04 02:43:17
define virtual destructor
tzik
2011/06/06 10:57:44
Done.
| |
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; | |
33 | |
34 private: | |
35 void AddLocalizedString(const std::string& name, int ids); | |
36 | |
37 DictionaryValue localized_strings_; | |
38 DISALLOW_COPY_AND_ASSIGN(QuotaInternalsHTMLSource); | |
39 }; | |
40 | |
41 } // namespace quota_internals | |
42 | |
43 #endif // CHROME_BROWSER_UI_WEBUI_QUOTA_INTERNALS_UI_H_ | |
OLD | NEW |