| OLD | NEW |
| 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 SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ | 5 #ifndef SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ |
| 6 #define SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ | 6 #define SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 mojo::Array<uint8_t> value, | 203 mojo::Array<uint8_t> value, |
| 204 const mojo::Callback<void(bool)>& callback) override; | 204 const mojo::Callback<void(bool)>& callback) override; |
| 205 void EmbedUrl(const mojo::String& url, | 205 void EmbedUrl(const mojo::String& url, |
| 206 mojo::Id transport_view_id, | 206 mojo::Id transport_view_id, |
| 207 mojo::InterfaceRequest<mojo::ServiceProvider> services, | 207 mojo::InterfaceRequest<mojo::ServiceProvider> services, |
| 208 mojo::ServiceProviderPtr exposed_services, | 208 mojo::ServiceProviderPtr exposed_services, |
| 209 const mojo::Callback<void(bool)>& callback) override; | 209 const mojo::Callback<void(bool)>& callback) override; |
| 210 void Embed(mojo::Id transport_view_id, | 210 void Embed(mojo::Id transport_view_id, |
| 211 mojo::ViewManagerClientPtr client, | 211 mojo::ViewManagerClientPtr client, |
| 212 const mojo::Callback<void(bool)>& callback) override; | 212 const mojo::Callback<void(bool)>& callback) override; |
| 213 void PerformAction(mojo::Id transport_view_id, |
| 214 const mojo::String& action, |
| 215 const mojo::Callback<void(bool)>& callback) override; |
| 213 | 216 |
| 214 // AccessPolicyDelegate: | 217 // AccessPolicyDelegate: |
| 215 bool IsRootForAccessPolicy(const ViewId& id) const override; | 218 bool IsRootForAccessPolicy(const ViewId& id) const override; |
| 216 bool IsViewKnownForAccessPolicy(const ServerView* view) const override; | 219 bool IsViewKnownForAccessPolicy(const ServerView* view) const override; |
| 217 bool IsViewRootOfAnotherConnectionForAccessPolicy( | 220 bool IsViewRootOfAnotherConnectionForAccessPolicy( |
| 218 const ServerView* view) const override; | 221 const ServerView* view) const override; |
| 219 | 222 |
| 220 ConnectionManager* connection_manager_; | 223 ConnectionManager* connection_manager_; |
| 221 | 224 |
| 222 // Id of this connection as assigned by ConnectionManager. | 225 // Id of this connection as assigned by ConnectionManager. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 248 // connection may have no root. A connection has no root if either the root | 251 // connection may have no root. A connection has no root if either the root |
| 249 // is destroyed or Embed() is invoked on the root. | 252 // is destroyed or Embed() is invoked on the root. |
| 250 scoped_ptr<ViewId> root_; | 253 scoped_ptr<ViewId> root_; |
| 251 | 254 |
| 252 DISALLOW_COPY_AND_ASSIGN(ViewManagerServiceImpl); | 255 DISALLOW_COPY_AND_ASSIGN(ViewManagerServiceImpl); |
| 253 }; | 256 }; |
| 254 | 257 |
| 255 } // namespace view_manager | 258 } // namespace view_manager |
| 256 | 259 |
| 257 #endif // SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ | 260 #endif // SERVICES_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ |
| OLD | NEW |