// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_HELPERS_H_ #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_HELPERS_H_ #pragma once #include #include "base/string_piece.h" class DictionaryValue; class FilePath; class RefCountedBytes; namespace chromeos { // This class is used for encapsulating the statics and other other messy // external calls that are required for creating and getting the needed HTML // objects. This allows for easier mocking of this code and allows for // modularity. Since we don't currently unit the class that this code is related // to, there is a case for refactoring it back into LoginUIHTMLSource. class HTMLOperationsInterface { public: HTMLOperationsInterface() {} virtual ~HTMLOperationsInterface() {} virtual base::StringPiece GetLoginHTML(); virtual std::string GetFullHTML(base::StringPiece login_html, DictionaryValue* localized_strings); virtual RefCountedBytes* CreateHTMLBytes(std::string full_html); private: DISALLOW_COPY_AND_ASSIGN(HTMLOperationsInterface); }; } // namespace chromeos #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_HELPERS_H_