Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 content.mojom; | 5 module content.mojom; |
| 6 | 6 |
| 7 import "mojo/common/string16.mojom"; | |
|
whywhat
2017/04/12 16:02:13
nit: remove?
Hzj_jie
2017/04/13 00:38:54
Done.
| |
| 8 | |
| 7 import "services/service_manager/public/interfaces/interface_provider.mojom"; | 9 import "services/service_manager/public/interfaces/interface_provider.mojom"; |
| 8 | 10 |
| 9 // The name of the InterfaceProviderSpec in service manifests used by the | 11 // The name of the InterfaceProviderSpec in service manifests used by the |
| 10 // frame tree to expose frame-specific interfaces between renderer and browser. | 12 // frame tree to expose frame-specific interfaces between renderer and browser. |
| 11 const string kNavigation_FrameSpec = "navigation:frame"; | 13 const string kNavigation_FrameSpec = "navigation:frame"; |
| 12 | 14 |
| 13 // Implemented by the frame provider (e.g. renderer processes). | 15 // Implemented by the frame provider (e.g. renderer processes). |
| 14 interface Frame { | 16 interface Frame { |
| 15 GetInterfaceProvider(service_manager.mojom.InterfaceProvider& interfaces); | 17 GetInterfaceProvider(service_manager.mojom.InterfaceProvider& interfaces); |
| 16 }; | 18 }; |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 28 // Implemented by the frame server (i.e. the browser process). | 30 // Implemented by the frame server (i.e. the browser process). |
| 29 interface FrameHost { | 31 interface FrameHost { |
| 30 GetInterfaceProvider(service_manager.mojom.InterfaceProvider& interfaces); | 32 GetInterfaceProvider(service_manager.mojom.InterfaceProvider& interfaces); |
| 31 }; | 33 }; |
| 32 | 34 |
| 33 // Implemented by a service that provides implementations of the Frame | 35 // Implemented by a service that provides implementations of the Frame |
| 34 // interface. (e.g. renderer processes). | 36 // interface. (e.g. renderer processes). |
| 35 interface FrameFactory { | 37 interface FrameFactory { |
| 36 CreateFrame(int32 frame_routing_id, Frame& frame, FrameHost host); | 38 CreateFrame(int32 frame_routing_id, Frame& frame, FrameHost host); |
| 37 }; | 39 }; |
| OLD | NEW |