1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
7 function reportConnected_request() {
8 var msg = ['connected_response'];
9 embedder.postMessage(JSON.stringify(msg), '*');
12 window.addEventListener('message', function(e) {
14 var data = JSON.parse(e.data);
16 case 'connect_request': {
17 reportConnected_request();