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

Side by Side Diff: chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.cc

Issue 2763013003: Specify AllowCaching = false for some ChromeOS UI pages (Closed)
Patch Set: one more build fix 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/chromeos/mobile_setup_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/certificate_manager_dialog_ui.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // content::URLDataSource implementation. 42 // content::URLDataSource implementation.
43 std::string GetSource() const override; 43 std::string GetSource() const override;
44 void StartDataRequest( 44 void StartDataRequest(
45 const std::string& path, 45 const std::string& path,
46 const content::ResourceRequestInfo::WebContentsGetter& wc_getter, 46 const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
47 const content::URLDataSource::GotDataCallback& callback) override; 47 const content::URLDataSource::GotDataCallback& callback) override;
48 std::string GetMimeType(const std::string&) const override { 48 std::string GetMimeType(const std::string&) const override {
49 return "text/html"; 49 return "text/html";
50 } 50 }
51 bool ShouldAddContentSecurityPolicy() const override { return false; } 51 bool ShouldAddContentSecurityPolicy() const override { return false; }
52 bool AllowCaching() const override {
53 // Should not be cached to reflect dynamically-generated contents that may
54 // depend on current locale setting.
55 return false;
56 }
52 57
53 protected: 58 protected:
54 ~CertificateManagerDialogHTMLSource() override {} 59 ~CertificateManagerDialogHTMLSource() override {}
55 60
56 private: 61 private:
57 std::unique_ptr<base::DictionaryValue> localized_strings_; 62 std::unique_ptr<base::DictionaryValue> localized_strings_;
58 63
59 DISALLOW_COPY_AND_ASSIGN(CertificateManagerDialogHTMLSource); 64 DISALLOW_COPY_AND_ASSIGN(CertificateManagerDialogHTMLSource);
60 }; 65 };
61 66
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 if (!initialized_handlers_) { 141 if (!initialized_handlers_) {
137 core_handler_->InitializeHandler(); 142 core_handler_->InitializeHandler();
138 cert_handler_->InitializeHandler(); 143 cert_handler_->InitializeHandler();
139 initialized_handlers_ = true; 144 initialized_handlers_ = true;
140 } 145 }
141 core_handler_->InitializePage(); 146 core_handler_->InitializePage();
142 cert_handler_->InitializePage(); 147 cert_handler_->InitializePage();
143 } 148 }
144 149
145 } // namespace chromeos 150 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/chromeos/mobile_setup_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698