-
Notifications
You must be signed in to change notification settings - Fork 862
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2328 from brave/install_ipfs_as_extension
Install ipfs as a normal extension
- Loading branch information
Showing
11 changed files
with
114 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,43 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
/* Copyright (c) 2019 The Brave Authors. All rights reserved. | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
#ifndef BRAVE_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ | ||
#define BRAVE_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ | ||
#ifndef BRAVE_BROWSER_EXTENSIONS_BRAVE_EXTENSION_MANAGEMENT_H_ | ||
#define BRAVE_BROWSER_EXTENSIONS_BRAVE_EXTENSION_MANAGEMENT_H_ | ||
|
||
#include "base/scoped_observer.h" | ||
#include "chrome/browser/extensions/extension_management.h" | ||
#include "extensions/browser/extension_registry_observer.h" | ||
|
||
namespace extensions { | ||
|
||
class BraveExtensionManagement : public ExtensionManagement { | ||
class ExtensionRegistry; | ||
|
||
class BraveExtensionManagement : public ExtensionManagement, | ||
public ExtensionRegistryObserver { | ||
public: | ||
BraveExtensionManagement(Profile* profile); | ||
explicit BraveExtensionManagement(Profile* profile); | ||
~BraveExtensionManagement() override; | ||
|
||
private: | ||
void RegisterBraveExtensions(); | ||
|
||
// ExtensionRegistryObserver implementation. | ||
void OnExtensionLoaded( | ||
content::BrowserContext* browser_context, | ||
const Extension* extension) override; | ||
void OnExtensionUnloaded( | ||
content::BrowserContext* browser_context, | ||
const Extension* extension, | ||
UnloadedExtensionReason reason) override; | ||
|
||
ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> | ||
extension_registry_observer_; | ||
|
||
DISALLOW_COPY_AND_ASSIGN(BraveExtensionManagement); | ||
}; | ||
|
||
} // namespace extensions | ||
|
||
#endif // BRAVE_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ | ||
#endif // BRAVE_BROWSER_EXTENSIONS_BRAVE_EXTENSION_MANAGEMENT_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters