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

Side by Side Diff: chrome/browser/extensions/crx_installer_error.h

Issue 10683003: Moved CrxInstaller and CrxInstallerError into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_CRX_INSTALLER_ERROR_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_ERROR_H_
6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_ERROR_H_ 6 #define CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_ERROR_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 10
11 namespace extensions {
12
11 // Simple error class for CrxInstaller. 13 // Simple error class for CrxInstaller.
12 class CrxInstallerError { 14 class CrxInstallerError {
13 public: 15 public:
14 // Typed errors that need to be handled specially by clients. 16 // Typed errors that need to be handled specially by clients.
15 enum Type { 17 enum Type {
16 ERROR_NONE, 18 ERROR_NONE,
17 ERROR_OFF_STORE, 19 ERROR_OFF_STORE,
18 ERROR_OTHER 20 ERROR_OTHER
19 }; 21 };
20 22
(...skipping 10 matching lines...) Expand all
31 } 33 }
32 34
33 Type type() const { return type_; } 35 Type type() const { return type_; }
34 const string16& message() const { return message_; } 36 const string16& message() const { return message_; }
35 37
36 private: 38 private:
37 Type type_; 39 Type type_;
38 string16 message_; 40 string16 message_;
39 }; 41 };
40 42
43 } // namespace extensions
44
41 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_ERROR_H_ 45 #endif // CHROME_BROWSER_EXTENSIONS_CRX_INSTALLER_ERROR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698