OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CONTENT_BROWSER_FRAME_SERVICE_IMPL_H_ | |
6 #define CONTENT_BROWSER_FRAME_SERVICE_IMPL_H_ | |
7 | |
8 #include "content/common/frame_service.mojom.h" | |
9 #include "mojo/public/cpp/bindings/interface_request.h" | |
10 #include "mojo/public/cpp/bindings/strong_binding.h" | |
11 | |
12 namespace content { | |
13 | |
14 class BrowserContext; | |
15 | |
16 class FrameServiceImpl : public mojom::FrameService { | |
Ben Goodger (Google)
2016/05/17 14:44:51
can you have RenderFrameHostImpl just implement th
scottmg
2016/05/17 17:36:16
Done.
| |
17 public: | |
18 FrameServiceImpl(int render_process_id, | |
19 int routing_id, | |
20 mojom::FrameServiceRequest request); | |
21 ~FrameServiceImpl() override; | |
22 | |
23 static void Create(int render_process_id, | |
24 int routing_id, | |
25 mojom::FrameServiceRequest request); | |
26 | |
27 private: | |
28 // mojom::FrameService: | |
29 void GetHostZoomLevel(const GURL& url, | |
30 const GetHostZoomLevelCallback& callback) override; | |
31 | |
32 mojo::StrongBinding<mojom::FrameService> binding_; | |
33 int render_process_id_; | |
34 int routing_id_; | |
35 | |
36 DISALLOW_COPY_AND_ASSIGN(FrameServiceImpl); | |
37 }; | |
38 | |
39 } // namespace content | |
40 | |
41 #endif // CONTENT_BROWSER_FRAME_SERVICE_IMPL_H_ | |
OLD | NEW |