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_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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 private: | 50 private: |
51 friend class base::RefCountedThreadSafe<PackExtensionJob>; | 51 friend class base::RefCountedThreadSafe<PackExtensionJob>; |
52 | 52 |
53 virtual ~PackExtensionJob(); | 53 virtual ~PackExtensionJob(); |
54 | 54 |
55 // If |asynchronous_| is false, this is run on whichever thread calls it. | 55 // If |asynchronous_| is false, this is run on whichever thread calls it. |
56 void Run(); | 56 void Run(); |
57 void ReportSuccessOnClientThread(); | 57 void ReportSuccessOnClientThread(); |
58 void ReportFailureOnClientThread(const std::string& error); | 58 void ReportFailureOnClientThread(const std::string& error); |
59 | 59 |
60 BrowserThread::ID client_thread_id_; | 60 content::BrowserThread::ID client_thread_id_; |
61 Client* client_; | 61 Client* client_; |
62 FilePath root_directory_; | 62 FilePath root_directory_; |
63 FilePath key_file_; | 63 FilePath key_file_; |
64 FilePath crx_file_out_; | 64 FilePath crx_file_out_; |
65 FilePath key_file_out_; | 65 FilePath key_file_out_; |
66 bool asynchronous_; | 66 bool asynchronous_; |
67 | 67 |
68 DISALLOW_COPY_AND_ASSIGN(PackExtensionJob); | 68 DISALLOW_COPY_AND_ASSIGN(PackExtensionJob); |
69 }; | 69 }; |
70 | 70 |
71 #endif // CHROME_BROWSER_EXTENSIONS_PACK_EXTENSION_JOB_H_ | 71 #endif // CHROME_BROWSER_EXTENSIONS_PACK_EXTENSION_JOB_H_ |
OLD | NEW |