| 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.
|
| +});
|
|
|