Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module arc; | 5 module arc; |
| 6 | 6 |
| 7 interface VideoHost { | 7 interface PolicyHost { |
| 8 // Notifies Chrome a request for ipc channel of video acceleration. | 8 // Get policies from Chrome OS. |
|
Luis Héctor Chávez
2016/03/15 18:01:56
You are currently returning a single JSON-encoded
phweiss
2016/03/16 18:45:12
The "Policy" in GetPolicy and PolicyHost refers to
phweiss
2016/03/17 15:52:59
I reconsidered this, and renamed the function now
| |
| 9 OnRequestArcVideoAcceleratorChannel() => (handle channel_handle); | 9 GetPolicy() => (string policy); |
| 10 }; | 10 }; |
| 11 | 11 |
| 12 interface VideoInstance { | 12 interface PolicyInstance { |
| 13 // Establishes full-duplex communication with the host. | 13 // Establishes full-duplex communication with the host. |
| 14 Init(VideoHost host_ptr); | 14 Init(PolicyHost host_ptr); |
| 15 | |
| 16 // Indicates policy has changed | |
| 17 OnPolicyChanged(); | |
|
phweiss
2016/03/17 15:52:59
This function is now renamed to OnPolicyUpdated fo
| |
| 15 }; | 18 }; |
| OLD | NEW |