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

Side by Side Diff: mojo/services/view_manager/connection_manager_delegate.h

Issue 1049993002: Get mojo_shell building inside chromium checkout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit Created 5 years, 8 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
(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 SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_
6 #define SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_
7
8 #include <string>
9
10 #include "mojo/public/cpp/bindings/interface_request.h"
11 #include "third_party/mojo_services/src/view_manager/public/cpp/types.h"
12
13 namespace mojo {
14 class ViewManagerService;
15 }
16
17 namespace view_manager {
18
19 class ClientConnection;
20 class ConnectionManager;
21 struct ViewId;
22
23 class ConnectionManagerDelegate {
24 public:
25 virtual void OnLostConnectionToWindowManager() = 0;
26
27 // Creates a ClientConnection in response to Embed() calls on the
28 // ConnectionManager.
29 virtual ClientConnection* CreateClientConnectionForEmbedAtView(
30 ConnectionManager* connection_manager,
31 mojo::InterfaceRequest<mojo::ViewManagerService> service_request,
32 mojo::ConnectionSpecificId creator_id,
33 const std::string& creator_url,
34 const std::string& url,
35 const ViewId& root_id) = 0;
36 virtual ClientConnection* CreateClientConnectionForEmbedAtView(
37 ConnectionManager* connection_manager,
38 mojo::InterfaceRequest<mojo::ViewManagerService> service_request,
39 mojo::ConnectionSpecificId creator_id,
40 const std::string& creator_url,
41 const ViewId& root_id,
42 mojo::ViewManagerClientPtr view_manager_client) = 0;
43
44 protected:
45 virtual ~ConnectionManagerDelegate() {}
46 };
47
48 } // namespace view_manager
49
50 #endif // SERVICES_VIEW_MANAGER_CONNECTION_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « mojo/services/view_manager/connection_manager.cc ('k') | mojo/services/view_manager/default_access_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698