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

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

Issue 2774263002: Specify AllowCaching = false for dynamically-generated contents (Closed)
Patch Set: typo Created 3 years, 9 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/app_launcher_page_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 26 matching lines...) Expand all
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/app_launcher_page_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698