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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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/renderer/extensions/webstore_bindings.cc ('k') | chrome/renderer/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_RENDERER_LOCALIZED_ERROR_H_ 5 #ifndef CHROME_RENDERER_LOCALIZED_ERROR_H_
6 #define CHROME_RENDERER_LOCALIZED_ERROR_H_ 6 #define CHROME_RENDERER_LOCALIZED_ERROR_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/string16.h" 12 #include "base/string16.h"
13 13
14 class Extension;
15 class GURL; 14 class GURL;
16 15
17 namespace base { 16 namespace base {
18 class DictionaryValue; 17 class DictionaryValue;
19 } 18 }
20 19
20 namespace extensions {
21 class Extension;
22 }
23
21 namespace WebKit { 24 namespace WebKit {
22 struct WebURLError; 25 struct WebURLError;
23 } 26 }
24 27
25 class LocalizedError { 28 class LocalizedError {
26 public: 29 public:
27 // Fills |error_strings| with values to be used to build an error page used 30 // Fills |error_strings| with values to be used to build an error page used
28 // on HTTP errors, like 404 or connection reset. 31 // on HTTP errors, like 404 or connection reset.
29 static void GetStrings(const WebKit::WebURLError& error, 32 static void GetStrings(const WebKit::WebURLError& error,
30 base::DictionaryValue* strings); 33 base::DictionaryValue* strings);
(...skipping 10 matching lines...) Expand all
41 // enough strings localized to meaningfully fill the net error template. 44 // enough strings localized to meaningfully fill the net error template.
42 static void GetFormRepostStrings(const GURL& display_url, 45 static void GetFormRepostStrings(const GURL& display_url,
43 base::DictionaryValue* error_strings); 46 base::DictionaryValue* error_strings);
44 47
45 // Fills |error_strings| with values to be used to build an error page used 48 // Fills |error_strings| with values to be used to build an error page used
46 // on HTTP errors, like 404 or connection reset, but using information from 49 // on HTTP errors, like 404 or connection reset, but using information from
47 // the associated |app| in order to make the error page look like it's more 50 // the associated |app| in order to make the error page look like it's more
48 // part of the app. 51 // part of the app.
49 static void GetAppErrorStrings(const WebKit::WebURLError& error, 52 static void GetAppErrorStrings(const WebKit::WebURLError& error,
50 const GURL& display_url, 53 const GURL& display_url,
51 const Extension* app, 54 const extensions::Extension* app,
52 base::DictionaryValue* error_strings); 55 base::DictionaryValue* error_strings);
53 56
54 static const char kHttpErrorDomain[]; 57 static const char kHttpErrorDomain[];
55 58
56 private: 59 private:
57 DISALLOW_IMPLICIT_CONSTRUCTORS(LocalizedError); 60 DISALLOW_IMPLICIT_CONSTRUCTORS(LocalizedError);
58 }; 61 };
59 62
60 #endif // CHROME_RENDERER_LOCALIZED_ERROR_H_ 63 #endif // CHROME_RENDERER_LOCALIZED_ERROR_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/webstore_bindings.cc ('k') | chrome/renderer/localized_error.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698