OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_PACK_EXTENSION_JOB_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_PACK_EXTENSION_JOB_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_PACK_EXTENSION_JOB_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_PACK_EXTENSION_JOB_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 // PackExtensionJob from attempting to access it. | 41 // PackExtensionJob from attempting to access it. |
42 void ClearClient(); | 42 void ClearClient(); |
43 | 43 |
44 // The standard packing success message. | 44 // The standard packing success message. |
45 static std::wstring StandardSuccessMessage(const FilePath& crx_file, | 45 static std::wstring StandardSuccessMessage(const FilePath& crx_file, |
46 const FilePath& key_file); | 46 const FilePath& key_file); |
47 | 47 |
48 private: | 48 private: |
49 friend class base::RefCountedThreadSafe<PackExtensionJob>; | 49 friend class base::RefCountedThreadSafe<PackExtensionJob>; |
50 | 50 |
51 ~PackExtensionJob() {} | 51 virtual ~PackExtensionJob(); |
52 | 52 |
53 void RunOnFileThread(); | 53 void RunOnFileThread(); |
54 void ReportSuccessOnClientThread(); | 54 void ReportSuccessOnClientThread(); |
55 void ReportFailureOnClientThread(const std::string& error); | 55 void ReportFailureOnClientThread(const std::string& error); |
56 | 56 |
57 BrowserThread::ID client_thread_id_; | 57 BrowserThread::ID client_thread_id_; |
58 Client* client_; | 58 Client* client_; |
59 FilePath root_directory_; | 59 FilePath root_directory_; |
60 FilePath key_file_; | 60 FilePath key_file_; |
61 FilePath crx_file_out_; | 61 FilePath crx_file_out_; |
62 FilePath key_file_out_; | 62 FilePath key_file_out_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(PackExtensionJob); | 64 DISALLOW_COPY_AND_ASSIGN(PackExtensionJob); |
65 }; | 65 }; |
66 | 66 |
67 #endif // CHROME_BROWSER_EXTENSIONS_PACK_EXTENSION_JOB_H_ | 67 #endif // CHROME_BROWSER_EXTENSIONS_PACK_EXTENSION_JOB_H_ |
OLD | NEW |