| OLD | NEW |
| 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 "base/memory/ref_counted_memory.h" | 7 #include "base/memory/ref_counted_memory.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/chromeos/system/input_device_settings.h" | 10 #include "chrome/browser/chromeos/system/input_device_settings.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 namespace { | 29 namespace { |
| 30 | 30 |
| 31 const char kLocalizedStringsFile[] = "strings.js"; | 31 const char kLocalizedStringsFile[] = "strings.js"; |
| 32 | 32 |
| 33 class CertificateManagerDialogHTMLSource : public content::URLDataSource { | 33 class CertificateManagerDialogHTMLSource : public content::URLDataSource { |
| 34 public: | 34 public: |
| 35 explicit CertificateManagerDialogHTMLSource( | 35 explicit CertificateManagerDialogHTMLSource( |
| 36 base::DictionaryValue* localized_strings); | 36 base::DictionaryValue* localized_strings); |
| 37 | 37 |
| 38 // content::URLDataSource implementation. | 38 // content::URLDataSource implementation. |
| 39 virtual std::string GetSource() const OVERRIDE; | 39 virtual std::string GetSource() const override; |
| 40 virtual void StartDataRequest( | 40 virtual void StartDataRequest( |
| 41 const std::string& path, | 41 const std::string& path, |
| 42 int render_process_id, | 42 int render_process_id, |
| 43 int render_frame_id, | 43 int render_frame_id, |
| 44 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; | 44 const content::URLDataSource::GotDataCallback& callback) override; |
| 45 virtual std::string GetMimeType(const std::string&) const OVERRIDE { | 45 virtual std::string GetMimeType(const std::string&) const override { |
| 46 return "text/html"; | 46 return "text/html"; |
| 47 } | 47 } |
| 48 virtual bool ShouldAddContentSecurityPolicy() const OVERRIDE { | 48 virtual bool ShouldAddContentSecurityPolicy() const override { |
| 49 return false; | 49 return false; |
| 50 } | 50 } |
| 51 | 51 |
| 52 protected: | 52 protected: |
| 53 virtual ~CertificateManagerDialogHTMLSource() {} | 53 virtual ~CertificateManagerDialogHTMLSource() {} |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 scoped_ptr<base::DictionaryValue> localized_strings_; | 56 scoped_ptr<base::DictionaryValue> localized_strings_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(CertificateManagerDialogHTMLSource); | 58 DISALLOW_COPY_AND_ASSIGN(CertificateManagerDialogHTMLSource); |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 if (!initialized_handlers_) { | 133 if (!initialized_handlers_) { |
| 134 core_handler_->InitializeHandler(); | 134 core_handler_->InitializeHandler(); |
| 135 cert_handler_->InitializeHandler(); | 135 cert_handler_->InitializeHandler(); |
| 136 initialized_handlers_ = true; | 136 initialized_handlers_ = true; |
| 137 } | 137 } |
| 138 core_handler_->InitializePage(); | 138 core_handler_->InitializePage(); |
| 139 cert_handler_->InitializePage(); | 139 cert_handler_->InitializePage(); |
| 140 } | 140 } |
| 141 | 141 |
| 142 } // namespace chromeos | 142 } // namespace chromeos |
| OLD | NEW |