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

Side by Side Diff: shell/android/native_viewport_application_loader.h

Issue 1975993002: Change InterfaceFactory<I>::Create() to take a ConnectionContext instead of an ApplicationConnectio… (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
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 #ifndef MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ 5 #ifndef MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_
6 #define MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ 6 #define MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_
7 7
8 #include "mojo/public/cpp/application/application_delegate.h" 8 #include "mojo/public/cpp/application/application_delegate.h"
9 #include "mojo/public/cpp/application/interface_factory.h" 9 #include "mojo/public/cpp/application/interface_factory.h"
10 #include "mojo/services/gpu/interfaces/gpu.mojom.h" 10 #include "mojo/services/gpu/interfaces/gpu.mojom.h"
(...skipping 24 matching lines...) Expand all
35 // ApplicationLoader implementation. 35 // ApplicationLoader implementation.
36 void Load( 36 void Load(
37 const GURL& url, 37 const GURL& url,
38 mojo::InterfaceRequest<mojo::Application> application_request) override; 38 mojo::InterfaceRequest<mojo::Application> application_request) override;
39 39
40 // mojo::ApplicationDelegate implementation. 40 // mojo::ApplicationDelegate implementation.
41 bool ConfigureIncomingConnection( 41 bool ConfigureIncomingConnection(
42 mojo::ApplicationConnection* connection) override; 42 mojo::ApplicationConnection* connection) override;
43 43
44 // mojo::InterfaceFactory<mojo::NativeViewport> implementation. 44 // mojo::InterfaceFactory<mojo::NativeViewport> implementation.
45 void Create(mojo::ApplicationConnection* connection, 45 void Create(const mojo::ConnectionContext& connection_context,
46 mojo::InterfaceRequest<mojo::NativeViewport> request) override; 46 mojo::InterfaceRequest<mojo::NativeViewport> request) override;
47 47
48 // mojo::InterfaceFactory<mojo::Gpu> implementation. 48 // mojo::InterfaceFactory<mojo::Gpu> implementation.
49 void Create(mojo::ApplicationConnection* connection, 49 void Create(const mojo::ConnectionContext& connection_context,
50 mojo::InterfaceRequest<mojo::Gpu> request) override; 50 mojo::InterfaceRequest<mojo::Gpu> request) override;
51 51
52 scoped_refptr<gles2::GpuState> gpu_state_; 52 scoped_refptr<gles2::GpuState> gpu_state_;
53 scoped_ptr<mojo::ApplicationImpl> app_; 53 scoped_ptr<mojo::ApplicationImpl> app_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader); 55 DISALLOW_COPY_AND_ASSIGN(NativeViewportApplicationLoader);
56 }; 56 };
57 57
58 } // namespace shell 58 } // namespace shell
59 59
60 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_ 60 #endif // MOJO_SHELL_ANDROID_NATIVE_VIEWPORT_APPLICATION_LOADER_H_
OLDNEW
« no previous file with comments | « services/url_response_disk_cache/url_response_disk_cache_app.cc ('k') | shell/android/native_viewport_application_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698