Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(784)

Unified Diff: ports/tor/background.js

Issue 1311703003: Added Tor Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/tor/README.nacl ('k') | ports/tor/build.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/tor/background.js
diff --git a/ports/tor/background.js b/ports/tor/background.js
new file mode 100644
index 0000000000000000000000000000000000000000..a2f63cb99bc4d7ab7eef0479b3ec51b5cd27e528
--- /dev/null
+++ b/ports/tor/background.js
@@ -0,0 +1,22 @@
+/*
+ * Copyright 2015 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+'use strict';
+
+// mount points are defined in naclprocess.js
+// TODO(dt) make sure that datadirectory for tor is set to default for now
+chrome.app.runtime.onLaunched.addListener(function() {
+ chrome.app.window.create('index.html', {
+ 'bounds': {
+ 'width': 850,
+ 'height': 650,
+ },
+ });
+});
+
+chrome.runtime.onSuspend.addListener(function() {
+ // TODO(dt) add code to facilitate graceful exit of tor.
+});
« no previous file with comments | « ports/tor/README.nacl ('k') | ports/tor/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698