OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SKY_VIEWER_SERVICES_INSPECTOR_IMPL_H_ |
| 6 #define SKY_VIEWER_SERVICES_INSPECTOR_IMPL_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/memory/weak_ptr.h" |
| 10 #include "mojo/public/cpp/application/interface_factory_impl.h" |
| 11 #include "sky/viewer/services/inspector.mojom.h" |
| 12 |
| 13 namespace sky { |
| 14 class DocumentView; |
| 15 |
| 16 class InspectorServiceImpl : public mojo::InterfaceImpl<InspectorService> { |
| 17 public: |
| 18 explicit InspectorServiceImpl(DocumentView*); |
| 19 virtual ~InspectorServiceImpl(); |
| 20 |
| 21 private: |
| 22 // Overridden from Tracing: |
| 23 void Inject() override; |
| 24 |
| 25 base::WeakPtr<DocumentView> view_; |
| 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(InspectorServiceImpl); |
| 28 }; |
| 29 |
| 30 typedef mojo::InterfaceFactoryImplWithContext< |
| 31 InspectorServiceImpl, DocumentView> InspectorServiceFactory; |
| 32 |
| 33 } // namespace sky |
| 34 |
| 35 #endif // SKY_VIEWER_SERVICES_INSPECTOR_IMPL_H_ |
OLD | NEW |