| OLD | NEW |
| 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_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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "chrome/browser/extensions/extension_creator.h" | 13 #include "chrome/browser/extensions/extension_creator.h" |
| 14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 | 15 |
| 16 namespace extensions { | 16 namespace extensions { |
| 17 | 17 |
| 18 // Manages packing an extension on the file thread and reporting the result | 18 // Manages packing an extension on the file thread and reporting the result |
| 19 // back to the UI. | 19 // back to the UI. |
| 20 class PackExtensionJob : public base::RefCountedThreadSafe<PackExtensionJob> { | 20 class PackExtensionJob : public base::RefCountedThreadSafe<PackExtensionJob> { |
| 21 public: | 21 public: |
| 22 // Interface for people who want to use PackExtensionJob to implement. | 22 // Interface for people who want to use PackExtensionJob to implement. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 bool asynchronous_; | 69 bool asynchronous_; |
| 70 int run_flags_; // Bitset of ExtensionCreator::RunFlags values - we always | 70 int run_flags_; // Bitset of ExtensionCreator::RunFlags values - we always |
| 71 // assume kRequireModernManifestVersion, though. | 71 // assume kRequireModernManifestVersion, though. |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(PackExtensionJob); | 73 DISALLOW_COPY_AND_ASSIGN(PackExtensionJob); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 } // namespace extensions | 76 } // namespace extensions |
| 77 | 77 |
| 78 #endif // CHROME_BROWSER_EXTENSIONS_PACK_EXTENSION_JOB_H_ | 78 #endif // CHROME_BROWSER_EXTENSIONS_PACK_EXTENSION_JOB_H_ |
| OLD | NEW |