Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Unified Diff: sky/viewer/services/inspector_impl.h

Issue 690433004: Add inspect command to skydb (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/viewer/services/inspector_impl.h
diff --git a/sky/viewer/services/inspector_impl.h b/sky/viewer/services/inspector_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..d2365ff4f76251f9e94b17121dc7d1c8d1d7c5e0
--- /dev/null
+++ b/sky/viewer/services/inspector_impl.h
@@ -0,0 +1,35 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SKY_VIEWER_SERVICES_INSPECTOR_IMPL_H_
+#define SKY_VIEWER_SERVICES_INSPECTOR_IMPL_H_
+
+#include "base/basictypes.h"
+#include "base/memory/weak_ptr.h"
+#include "mojo/public/cpp/application/interface_factory_impl.h"
+#include "sky/viewer/services/inspector.mojom.h"
+
+namespace sky {
+class DocumentView;
+
+class InspectorServiceImpl : public mojo::InterfaceImpl<InspectorService> {
+ public:
+ explicit InspectorServiceImpl(DocumentView*);
+ virtual ~InspectorServiceImpl();
+
+ private:
+ // Overridden from Tracing:
+ void Inject() override;
+
+ base::WeakPtr<DocumentView> view_;
+
+ DISALLOW_COPY_AND_ASSIGN(InspectorServiceImpl);
+};
+
+typedef mojo::InterfaceFactoryImplWithContext<
+ InspectorServiceImpl, DocumentView> InspectorServiceFactory;
+
+} // namespace sky
+
+#endif // SKY_VIEWER_SERVICES_INSPECTOR_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698