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

Side by Side Diff: chrome/common/localized_error.h

Issue 880313002: webui: add [lang] attribute to <html> element on all webui pages so (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cros Created 5 years, 10 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
« no previous file with comments | « chrome/browser/ui/webui/system_info_ui.cc ('k') | chrome/common/localized_error.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COMMON_LOCALIZED_ERROR_H_ 5 #ifndef CHROME_COMMON_LOCALIZED_ERROR_H_
6 #define CHROME_COMMON_LOCALIZED_ERROR_H_ 6 #define CHROME_COMMON_LOCALIZED_ERROR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // Returns true if an error page exists for the specified parameters. 50 // Returns true if an error page exists for the specified parameters.
51 static bool HasStrings(const std::string& error_domain, int error_code); 51 static bool HasStrings(const std::string& error_domain, int error_code);
52 52
53 #if defined(ENABLE_EXTENSIONS) 53 #if defined(ENABLE_EXTENSIONS)
54 // Fills |error_strings| with values to be used to build an error page used 54 // Fills |error_strings| with values to be used to build an error page used
55 // on HTTP errors, like 404 or connection reset, but using information from 55 // on HTTP errors, like 404 or connection reset, but using information from
56 // the associated |app| in order to make the error page look like it's more 56 // the associated |app| in order to make the error page look like it's more
57 // part of the app. 57 // part of the app.
58 static void GetAppErrorStrings(const GURL& display_url, 58 static void GetAppErrorStrings(const GURL& display_url,
59 const extensions::Extension* app, 59 const extensions::Extension* app,
60 const std::string& locale,
60 base::DictionaryValue* error_strings); 61 base::DictionaryValue* error_strings);
61 #endif 62 #endif
62 63
63 static const char kHttpErrorDomain[]; 64 static const char kHttpErrorDomain[];
64 65
65 private: 66 private:
66 DISALLOW_IMPLICIT_CONSTRUCTORS(LocalizedError); 67 DISALLOW_IMPLICIT_CONSTRUCTORS(LocalizedError);
67 }; 68 };
68 69
69 #endif // CHROME_COMMON_LOCALIZED_ERROR_H_ 70 #endif // CHROME_COMMON_LOCALIZED_ERROR_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/system_info_ui.cc ('k') | chrome/common/localized_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698