Chromium Code Reviews| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 80 | 80 |
| 81 const extensions::Extension* LoadExtension(const base::FilePath& path); | 81 const extensions::Extension* LoadExtension(const base::FilePath& path); |
| 82 | 82 |
| 83 // Same as above, but enables the extension in incognito mode first. | 83 // Same as above, but enables the extension in incognito mode first. |
| 84 const extensions::Extension* LoadExtensionIncognito( | 84 const extensions::Extension* LoadExtensionIncognito( |
| 85 const base::FilePath& path); | 85 const base::FilePath& path); |
| 86 | 86 |
| 87 const extensions::Extension* LoadExtensionWithFlags( | 87 const extensions::Extension* LoadExtensionWithFlags( |
| 88 const base::FilePath& path, int flags); | 88 const base::FilePath& path, int flags); |
| 89 | 89 |
| 90 const extensions::Extension* LoadExtensionWithInstallParam( | |
| 91 const base::FilePath& path, | |
| 92 int flags, | |
| 93 const std::string& install_param); | |
|
Finnur
2014/03/13 16:37:51
I think we should add comments for at least these
vasilii
2014/03/14 10:54:58
Done.
| |
| 94 | |
| 90 // Loads unpacked extension from |path| with manifest |manifest_relative_path| | 95 // Loads unpacked extension from |path| with manifest |manifest_relative_path| |
| 91 // and imitates that it is a component extension. | 96 // and imitates that it is a component extension. |
| 92 // |manifest_relative_path| is relative to |path|. | 97 // |manifest_relative_path| is relative to |path|. |
| 93 const extensions::Extension* LoadExtensionAsComponentWithManifest( | 98 const extensions::Extension* LoadExtensionAsComponentWithManifest( |
| 94 const base::FilePath& path, | 99 const base::FilePath& path, |
| 95 const base::FilePath::CharType* manifest_relative_path); | 100 const base::FilePath::CharType* manifest_relative_path); |
| 96 | 101 |
| 97 // Loads unpacked extension from |path| and imitates that it is a component | 102 // Loads unpacked extension from |path| and imitates that it is a component |
| 98 // extension. Equivalent to | 103 // extension. Equivalent to |
| 99 // LoadExtensionAsComponentWithManifest(path, extensions::kManifestFilename). | 104 // LoadExtensionAsComponentWithManifest(path, extensions::kManifestFilename). |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 342 override_prompt_for_external_extensions_; | 347 override_prompt_for_external_extensions_; |
| 343 | 348 |
| 344 // The default profile to be used. | 349 // The default profile to be used. |
| 345 Profile* profile_; | 350 Profile* profile_; |
| 346 | 351 |
| 347 // Cache cache implementation. | 352 // Cache cache implementation. |
| 348 scoped_ptr<extensions::ExtensionCacheFake> test_extension_cache_; | 353 scoped_ptr<extensions::ExtensionCacheFake> test_extension_cache_; |
| 349 }; | 354 }; |
| 350 | 355 |
| 351 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ | 356 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BROWSERTEST_H_ |
| OLD | NEW |