Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/login_ui_helpers.h

Issue 7980012: [ChromeOS] Reland - Make WebUI login use only needed resources. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_HELPERS_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_HELPERS_H_
7 #pragma once
8
9 #include <string>
10
11 #include "base/string_piece.h"
12
13 class FilePath;
14 class RefCountedMemory;
15
16 namespace base {
17 class DictionaryValue;
18 }
19
20 namespace chromeos {
21
22 // This class is used for encapsulating the statics and other other messy
23 // external calls that are required for creating and getting the needed HTML
24 // objects. This allows for easier mocking of this code and allows for
25 // modularity. Since we don't currently unit the class that this code is related
26 // to, there is a case for refactoring it back into LoginUIHTMLSource.
27 class HTMLOperationsInterface {
28 public:
29 HTMLOperationsInterface() {}
30 virtual ~HTMLOperationsInterface() {}
31
32 virtual base::StringPiece GetLoginHTML();
33 virtual std::string GetFullHTML(base::StringPiece login_html,
34 base::DictionaryValue* localized_strings);
35
36 private:
37 DISALLOW_COPY_AND_ASSIGN(HTMLOperationsInterface);
38 };
39
40 } // namespace chromeos
41
42 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_LOGIN_UI_HELPERS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/login_ui.cc ('k') | chrome/browser/ui/webui/chromeos/login/login_ui_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698