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

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

Issue 6579003: Add in chrome://login-container (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed some garbage that ended up in the CL and fixed a couple of headers that moved Created 9 years, 9 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
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
11 #include "base/string_piece.h"
12
11 class Browser; 13 class Browser;
12 class DictionaryValue; 14 class DictionaryValue;
13 class FilePath; 15 class FilePath;
14 class Profile; 16 class Profile;
15 class RefCountedBytes; 17 class RefCountedBytes;
16 18
17 namespace base {
18 class StringPiece;
19 }; // namespace base
20
21 namespace chromeos { 19 namespace chromeos {
22 20
23 // This class is used for encapsulating the statics and other other messy 21 // This class is used for encapsulating the statics and other other messy
24 // external calls that are required for getting the needed profile objects. This 22 // external calls that are required for getting the needed profile objects. This
25 // allows for easier mocking of this code and allows for modularity. 23 // allows for easier mocking of this code and allows for modularity.
26 class ProfileOperationsInterface { 24 class ProfileOperationsInterface {
27 public: 25 public:
28 ProfileOperationsInterface() {} 26 ProfileOperationsInterface() {}
29 virtual ~ProfileOperationsInterface() {} 27 virtual ~ProfileOperationsInterface() {}
30 28
(...skipping 27 matching lines...) Expand all
58 // external calls that are required for creating and getting the needed HTML 56 // 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 57 // 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 58 // 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. 59 // to, there is a case for refactoring it back into LoginUIHTMLSource.
62 class HTMLOperationsInterface { 60 class HTMLOperationsInterface {
63 public: 61 public:
64 HTMLOperationsInterface() {} 62 HTMLOperationsInterface() {}
65 virtual ~HTMLOperationsInterface() {} 63 virtual ~HTMLOperationsInterface() {}
66 64
67 virtual base::StringPiece GetLoginHTML(); 65 virtual base::StringPiece GetLoginHTML();
66 virtual base::StringPiece GetLoginContainerHTML();
68 virtual std::string GetFullHTML(base::StringPiece login_html, 67 virtual std::string GetFullHTML(base::StringPiece login_html,
69 DictionaryValue* localized_strings); 68 DictionaryValue* localized_strings);
70 virtual RefCountedBytes* CreateHTMLBytes(std::string full_html); 69 virtual RefCountedBytes* CreateHTMLBytes(std::string full_html);
71 70
72 private: 71 private:
73 DISALLOW_COPY_AND_ASSIGN(HTMLOperationsInterface); 72 DISALLOW_COPY_AND_ASSIGN(HTMLOperationsInterface);
74 }; 73 };
75 74
76 } // namespace chromeos 75 } // namespace chromeos
77 76
78 #endif // CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_LOGIN_UI_HELPERS_H_ 77 #endif // CHROME_BROWSER_CHROMEOS_WEBUI_LOGIN_LOGIN_UI_HELPERS_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/webui/login/login_ui.cc ('k') | chrome/browser/chromeos/webui/login/login_ui_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698