-
Notifications
You must be signed in to change notification settings - Fork 894
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
490 additions
and
6 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// 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/. | ||
|
||
module tor.mojom; | ||
|
||
import "brave/common/tor/tor_config.mojom"; | ||
|
||
const string kTorLauncherServiceName = "tor_launcher"; | ||
|
||
interface TorLauncher { | ||
Launch(tor.mojom.TorConfig config) => (bool result, int64 pid); | ||
|
||
ReLaunch(tor.mojom.TorConfig config) => (bool result, int64 pid); | ||
|
||
SetCrashHandler() => (int64 pid); | ||
}; | ||
|
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
12 changes: 12 additions & 0 deletions
12
patches/chrome-browser-chrome_content_browser_manifest_overlay.json.patch
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/chrome/browser/chrome_content_browser_manifest_overlay.json b/chrome/browser/chrome_content_browser_manifest_overlay.json | ||
index 3425d64746dfd37466b8544e1650f5c60fa20125..7294bcd1e903d3076e048b74603c47cbd5ff2d17 100644 | ||
--- a/chrome/browser/chrome_content_browser_manifest_overlay.json | ||
+++ b/chrome/browser/chrome_content_browser_manifest_overlay.json | ||
@@ -64,6 +64,7 @@ | ||
"removable_storage_writer": [ "removable_storage_writer" ], | ||
"secure_channel": [ "secure_channel" ], | ||
"shortcut_viewer_app": [ "shortcut_viewer" ], | ||
+ "tor_launcher": [ "tor_launcher" ], | ||
"ui": [ | ||
"ime_registrar", | ||
"input_device_controller", |
12 changes: 12 additions & 0 deletions
12
patches/chrome-browser-chrome_content_utility_manifest_overlay.json.patch
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/chrome/browser/chrome_content_utility_manifest_overlay.json b/chrome/browser/chrome_content_utility_manifest_overlay.json | ||
index 03d7cd6b486001765096df3bfe95624fd2700c42..a5dbd36e97f36417b861c41a2bfb201a8640aba2 100644 | ||
--- a/chrome/browser/chrome_content_utility_manifest_overlay.json | ||
+++ b/chrome/browser/chrome_content_utility_manifest_overlay.json | ||
@@ -10,6 +10,7 @@ | ||
"payments.mojom.PaymentManifestParser", | ||
"heap_profiling.mojom.ProfilingClient", | ||
"proxy_resolver.mojom.ProxyResolverFactory", | ||
+ "tor.mojom.TorLauncher", | ||
"safe_json.mojom.SafeJsonParser" | ||
] | ||
} |
4 changes: 2 additions & 2 deletions
4
patches/mojo-public-tools-bindings-chromium_bindings_configuration.gni.patch
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,12 +1,12 @@ | ||
diff --git a/mojo/public/tools/bindings/chromium_bindings_configuration.gni b/mojo/public/tools/bindings/chromium_bindings_configuration.gni | ||
index 1893db1ac954c0fa065a2a8dcc22367ebd298ff4..eb0a01da5c6c67e89335ac3b2563d8317a4e4100 100644 | ||
index 5c3c59f7926bc12df1381823b8f91d2d885fafe5..21a5e76e760d27782d1d1076702774bab6ad453d 100644 | ||
--- a/mojo/public/tools/bindings/chromium_bindings_configuration.gni | ||
+++ b/mojo/public/tools/bindings/chromium_bindings_configuration.gni | ||
@@ -4,6 +4,7 @@ | ||
|
||
_typemap_imports = [ | ||
"//ash/public/interfaces/typemaps.gni", | ||
+ "//brave/common/tor/typemaps.gni", | ||
"//chrome/chrome_cleaner/interfaces/typemaps/typemaps.gni", | ||
"//chrome/common/extensions/typemaps.gni", | ||
"//chrome/common/importer/typemaps.gni", | ||
"//chrome/common/media_router/mojo/typemaps.gni", |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# 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/. | ||
|
||
import("//services/service_manager/public/service_manifest.gni") | ||
|
||
source_set("tor") { | ||
sources = [ | ||
"tor_launcher_impl.cc", | ||
"tor_launcher_impl.h", | ||
"tor_launcher_service.cc", | ||
"tor_launcher_service.h", | ||
] | ||
|
||
deps = [ | ||
"//base", | ||
"//brave/common/tor", | ||
"//brave/common/tor:tor_mojom_bindings", | ||
"//services/service_manager", | ||
] | ||
} | ||
|
||
service_manifest("tor_launcher_manifest") { | ||
name = "tor_launcher" | ||
source = "tor_launcher_manifest.json" | ||
} |
Oops, something went wrong.