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

Unified Diff: services/native_viewport/native_viewport_app.h

Issue 2011383002: Get rid of {Run,Terminate}MainApplication(), and more ApplicationDelegate conversion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 4 years, 7 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
« no previous file with comments | « services/native_viewport/main.cc ('k') | services/native_viewport/native_viewport_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/native_viewport/native_viewport_app.h
diff --git a/services/native_viewport/native_viewport_app.h b/services/native_viewport/native_viewport_app.h
new file mode 100644
index 0000000000000000000000000000000000000000..da8c74379ea493c13ae5de76fc5cca0e06315b96
--- /dev/null
+++ b/services/native_viewport/native_viewport_app.h
@@ -0,0 +1,37 @@
+// 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 SERVICES_NATIVE_VIEWPORT_APP_H_
+#define SERVICES_NATIVE_VIEWPORT_APP_H_
+
+#include "base/macros.h"
+#include "mojo/common/tracing_impl.h"
+#include "mojo/public/cpp/application/application_impl_base.h"
+#include "services/gles2/gpu_state.h"
+
+namespace native_viewport {
+
+class NativeViewportApp : public mojo::ApplicationImplBase {
+ public:
+ NativeViewportApp();
+ ~NativeViewportApp() override;
+
+ // mojo::ApplicationImplBase overrides.
+ void OnInitialize() override;
+ bool OnAcceptConnection(
+ mojo::ServiceProviderImpl* service_provider_impl) override;
+
+ private:
+ void InitLogging();
+
+ scoped_refptr<gles2::GpuState> gpu_state_;
+ bool is_headless_;
+ mojo::TracingImpl tracing_;
+
+ DISALLOW_COPY_AND_ASSIGN(NativeViewportApp);
+};
+
+} // namespace native_viewport
+
+#endif // SERVICES_NATIVE_VIEWPORT_APP_H_
« no previous file with comments | « services/native_viewport/main.cc ('k') | services/native_viewport/native_viewport_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698