OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/proxy_settings_ui.h" | 5 #include "chrome/browser/ui/webui/chromeos/proxy_settings_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 15 matching lines...) Loading... |
26 using content::WebContents; | 26 using content::WebContents; |
27 using content::WebUIMessageHandler; | 27 using content::WebUIMessageHandler; |
28 | 28 |
29 namespace { | 29 namespace { |
30 | 30 |
31 class ProxySettingsHTMLSource : public content::URLDataSource { | 31 class ProxySettingsHTMLSource : public content::URLDataSource { |
32 public: | 32 public: |
33 explicit ProxySettingsHTMLSource(base::DictionaryValue* localized_strings); | 33 explicit ProxySettingsHTMLSource(base::DictionaryValue* localized_strings); |
34 | 34 |
35 // content::URLDataSource implementation. | 35 // content::URLDataSource implementation. |
36 virtual std::string GetSource() const OVERRIDE; | 36 virtual std::string GetSource() const override; |
37 virtual void StartDataRequest( | 37 virtual void StartDataRequest( |
38 const std::string& path, | 38 const std::string& path, |
39 int render_process_id, | 39 int render_process_id, |
40 int render_frame_id, | 40 int render_frame_id, |
41 const content::URLDataSource::GotDataCallback& callback) OVERRIDE; | 41 const content::URLDataSource::GotDataCallback& callback) override; |
42 virtual std::string GetMimeType(const std::string&) const OVERRIDE { | 42 virtual std::string GetMimeType(const std::string&) const override { |
43 return "text/html"; | 43 return "text/html"; |
44 } | 44 } |
45 virtual bool ShouldAddContentSecurityPolicy() const OVERRIDE { | 45 virtual bool ShouldAddContentSecurityPolicy() const override { |
46 return false; | 46 return false; |
47 } | 47 } |
48 | 48 |
49 protected: | 49 protected: |
50 virtual ~ProxySettingsHTMLSource() {} | 50 virtual ~ProxySettingsHTMLSource() {} |
51 | 51 |
52 private: | 52 private: |
53 scoped_ptr<base::DictionaryValue> localized_strings_; | 53 scoped_ptr<base::DictionaryValue> localized_strings_; |
54 | 54 |
55 DISALLOW_COPY_AND_ASSIGN(ProxySettingsHTMLSource); | 55 DISALLOW_COPY_AND_ASSIGN(ProxySettingsHTMLSource); |
(...skipping 68 matching lines...) Loading... |
124 if (!initialized_handlers_) { | 124 if (!initialized_handlers_) { |
125 core_handler_->InitializeHandler(); | 125 core_handler_->InitializeHandler(); |
126 proxy_handler_->InitializeHandler(); | 126 proxy_handler_->InitializeHandler(); |
127 initialized_handlers_ = true; | 127 initialized_handlers_ = true; |
128 } | 128 } |
129 core_handler_->InitializePage(); | 129 core_handler_->InitializePage(); |
130 proxy_handler_->InitializePage(); | 130 proxy_handler_->InitializePage(); |
131 } | 131 } |
132 | 132 |
133 } // namespace chromeos | 133 } // namespace chromeos |
OLD | NEW |