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_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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 bool is_post); | 44 bool is_post); |
45 | 45 |
46 // Returns true if an error page exists for the specified parameters. | 46 // Returns true if an error page exists for the specified parameters. |
47 static bool HasStrings(const std::string& error_domain, int error_code); | 47 static bool HasStrings(const std::string& error_domain, int error_code); |
48 | 48 |
49 static const char kHttpErrorDomain[]; | 49 static const char kHttpErrorDomain[]; |
50 | 50 |
51 private: | 51 private: |
52 // Sets up the Google Cached Copy button experiment if part of the | 52 // Sets up the Google Cached Copy button experiment if part of the |
53 // field trial. This promotes the Google cached copy suggestion from under | 53 // field trial. This promotes the Google cached copy suggestion from under |
54 // the details section to a blue button. | 54 // the details section to a blue button. Also experiments with the |
| 55 // button label. |
55 static void EnableGoogleCachedCopyButtonExperiment( | 56 static void EnableGoogleCachedCopyButtonExperiment( |
56 base::ListValue* suggestions, | 57 base::ListValue* suggestions, |
57 base::DictionaryValue* error_strings); | 58 base::DictionaryValue* error_strings); |
58 | 59 |
59 DISALLOW_IMPLICIT_CONSTRUCTORS(LocalizedError); | 60 DISALLOW_IMPLICIT_CONSTRUCTORS(LocalizedError); |
60 }; | 61 }; |
61 | 62 |
62 #endif // CHROME_COMMON_LOCALIZED_ERROR_H_ | 63 #endif // CHROME_COMMON_LOCALIZED_ERROR_H_ |
OLD | NEW |