| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROMEOS_WEBUI_LOGIN_LOGIN_UI_HELPERS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_LOGIN_UI_HELPERS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_LOGIN_UI_HELPERS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_LOGIN_UI_HELPERS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // external calls that are required for creating and getting the needed HTML | 58 // external calls that are required for creating and getting the needed HTML |
| 59 // objects. This allows for easier mocking of this code and allows for | 59 // objects. This allows for easier mocking of this code and allows for |
| 60 // modularity. Since we don't currently unit the class that this code is related | 60 // modularity. Since we don't currently unit the class that this code is related |
| 61 // to, there is a case for refactoring it back into LoginUIHTMLSource. | 61 // to, there is a case for refactoring it back into LoginUIHTMLSource. |
| 62 class HTMLOperationsInterface { | 62 class HTMLOperationsInterface { |
| 63 public: | 63 public: |
| 64 HTMLOperationsInterface() {} | 64 HTMLOperationsInterface() {} |
| 65 virtual ~HTMLOperationsInterface() {} | 65 virtual ~HTMLOperationsInterface() {} |
| 66 | 66 |
| 67 virtual base::StringPiece GetLoginHTML(); | 67 virtual base::StringPiece GetLoginHTML(); |
| 68 virtual base::StringPiece GetLoginContainerHTML(); |
| 68 virtual std::string GetFullHTML(base::StringPiece login_html, | 69 virtual std::string GetFullHTML(base::StringPiece login_html, |
| 69 DictionaryValue* localized_strings); | 70 DictionaryValue* localized_strings); |
| 70 virtual RefCountedBytes* CreateHTMLBytes(std::string full_html); | 71 virtual RefCountedBytes* CreateHTMLBytes(std::string full_html); |
| 71 | 72 |
| 72 private: | 73 private: |
| 73 DISALLOW_COPY_AND_ASSIGN(HTMLOperationsInterface); | 74 DISALLOW_COPY_AND_ASSIGN(HTMLOperationsInterface); |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } // namespace chromeos | 77 } // namespace chromeos |
| 77 | 78 |
| 78 #endif // CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_LOGIN_UI_HELPERS_H_ | 79 #endif // CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_LOGIN_UI_HELPERS_H_ |
| OLD | NEW |