Chromium Code Reviews| 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 #ifndef CHROME_BROWSER_UI_WEBUI_LOCAL_STATE_LOCAL_STATE_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_LOCAL_STATE_LOCAL_STATE_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_LOCAL_STATE_LOCAL_STATE_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_LOCAL_STATE_LOCAL_STATE_UI_H_ |
| 7 | 7 |
| 8 #include <string> | |
| 9 #include <vector> | |
| 10 | |
| 8 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/values.h" | |
|
Alexei Svitkine (slow)
2016/04/25 21:30:13
Nit: You can forward declare base::DictionaryValue
hamelphi
2016/04/26 15:25:28
Done.
However, can you explain why this is better
Alexei Svitkine (slow)
2016/04/26 15:33:34
Chromium diverges from Google Style here - as the
| |
| 9 #include "content/public/browser/web_ui_controller.h" | 13 #include "content/public/browser/web_ui_controller.h" |
| 10 | 14 |
| 15 namespace internal { | |
|
Alexei Svitkine (slow)
2016/04/25 21:30:13
Nit: Add a short comment about the purpose of this
hamelphi
2016/04/26 15:25:28
Done.
| |
| 16 void FilterPrefs(const std::vector<std::string>& valid_prefixes, | |
|
Alexei Svitkine (slow)
2016/04/25 21:30:13
Nit: Add a short comment about what this function
hamelphi
2016/04/26 15:25:28
Done.
| |
| 17 base::DictionaryValue* prefs); | |
| 18 } | |
| 19 | |
| 11 // Controller for chrome://local-state/ page. | 20 // Controller for chrome://local-state/ page. |
| 12 class LocalStateUI : public content::WebUIController { | 21 class LocalStateUI : public content::WebUIController { |
| 13 public: | 22 public: |
| 14 explicit LocalStateUI(content::WebUI* web_ui); | 23 explicit LocalStateUI(content::WebUI* web_ui); |
| 15 ~LocalStateUI() override; | 24 ~LocalStateUI() override; |
| 16 | 25 |
| 17 private: | 26 private: |
| 18 DISALLOW_COPY_AND_ASSIGN(LocalStateUI); | 27 DISALLOW_COPY_AND_ASSIGN(LocalStateUI); |
| 19 }; | 28 }; |
| 20 | 29 |
| 21 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_STATE_LOCAL_STATE_UI_H_ | 30 #endif // CHROME_BROWSER_UI_WEBUI_LOCAL_STATE_LOCAL_STATE_UI_H_ |
| OLD | NEW |