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_EXTENSION_BROWSERTEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 // Loads unpacked extension from |path| with manifest |manifest_relative_path| | 83 // Loads unpacked extension from |path| with manifest |manifest_relative_path| |
84 // and imitates that it is a component extension. | 84 // and imitates that it is a component extension. |
85 // |manifest_relative_path| is relative to |path|. | 85 // |manifest_relative_path| is relative to |path|. |
86 const extensions::Extension* LoadExtensionAsComponentWithManifest( | 86 const extensions::Extension* LoadExtensionAsComponentWithManifest( |
87 const base::FilePath& path, | 87 const base::FilePath& path, |
88 const base::FilePath::CharType* manifest_relative_path); | 88 const base::FilePath::CharType* manifest_relative_path); |
89 | 89 |
90 // Loads unpacked extension from |path| and imitates that it is a component | 90 // Loads unpacked extension from |path| and imitates that it is a component |
91 // extension. Equivalent to | 91 // extension. Equivalent to |
92 // LoadExtensionAsComponentWithManifest(path, Extensions::kManifestFilename). | 92 // LoadExtensionAsComponentWithManifest(path, extensions::kManifestFilename). |
93 const extensions::Extension* LoadExtensionAsComponent( | 93 const extensions::Extension* LoadExtensionAsComponent( |
94 const base::FilePath& path); | 94 const base::FilePath& path); |
95 | 95 |
96 // Pack the extension in |dir_path| into a crx file and return its path. | 96 // Pack the extension in |dir_path| into a crx file and return its path. |
97 // Return an empty FilePath if there were errors. | 97 // Return an empty FilePath if there were errors. |
98 base::FilePath PackExtension(const base::FilePath& dir_path); | 98 base::FilePath PackExtension(const base::FilePath& dir_path); |
99 | 99 |
100 // Pack the extension in |dir_path| into a crx file at |crx_path|, using the | 100 // Pack the extension in |dir_path| into a crx file at |crx_path|, using the |
101 // key |pem_path|. If |pem_path| does not exist, create a new key at | 101 // key |pem_path|. If |pem_path| does not exist, create a new key at |
102 // |pem_out_path|. | 102 // |pem_out_path|. |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 292 |
293 // Disable the sideload wipeout UI. | 293 // Disable the sideload wipeout UI. |
294 extensions::FeatureSwitch::ScopedOverride | 294 extensions::FeatureSwitch::ScopedOverride |
295 override_sideload_wipeout_; | 295 override_sideload_wipeout_; |
296 | 296 |
297 // The default profile to be used. | 297 // The default profile to be used. |
298 Profile* profile_; | 298 Profile* profile_; |
299 }; | 299 }; |
300 | 300 |
301 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 301 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
OLD | NEW |