OLD | NEW |
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 26 matching lines...) Expand all Loading... |
37 ~HTMLSource() override; | 37 ~HTMLSource() override; |
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 const content::ResourceRequestInfo::WebContentsGetter& wc_getter, | 43 const content::ResourceRequestInfo::WebContentsGetter& wc_getter, |
44 const content::URLDataSource::GotDataCallback& callback) override; | 44 const content::URLDataSource::GotDataCallback& callback) override; |
45 std::string GetMimeType(const std::string&) const override; | 45 std::string GetMimeType(const std::string&) const override; |
46 bool ShouldReplaceExistingSource() const override; | 46 bool ShouldReplaceExistingSource() const override; |
| 47 bool AllowCaching() const override; |
47 std::string GetContentSecurityPolicyScriptSrc() const override; | 48 std::string GetContentSecurityPolicyScriptSrc() const override; |
48 std::string GetContentSecurityPolicyStyleSrc() const override; | 49 std::string GetContentSecurityPolicyStyleSrc() const override; |
49 std::string GetContentSecurityPolicyImgSrc() const override; | 50 std::string GetContentSecurityPolicyImgSrc() const override; |
50 | 51 |
51 private: | 52 private: |
52 | 53 |
53 // Pointer back to the original profile. | 54 // Pointer back to the original profile. |
54 Profile* profile_; | 55 Profile* profile_; |
55 | 56 |
56 DISALLOW_COPY_AND_ASSIGN(HTMLSource); | 57 DISALLOW_COPY_AND_ASSIGN(HTMLSource); |
57 }; | 58 }; |
58 | 59 |
59 Profile* GetProfile() const; | 60 Profile* GetProfile() const; |
60 | 61 |
61 DISALLOW_COPY_AND_ASSIGN(AppLauncherPageUI); | 62 DISALLOW_COPY_AND_ASSIGN(AppLauncherPageUI); |
62 }; | 63 }; |
63 | 64 |
64 #endif // CHROME_BROWSER_UI_WEBUI_APP_LAUNCHER_PAGE_UI_H_ | 65 #endif // CHROME_BROWSER_UI_WEBUI_APP_LAUNCHER_PAGE_UI_H_ |
OLD | NEW |