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

Side by Side Diff: components/view_manager/view_manager_service_impl.h

Issue 1121783003: Move navigations with POST or referrer to the shell. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 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 COMPONENTS_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_
6 #define COMPONENTS_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ 6 #define COMPONENTS_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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // Invoked when a connection is about to be destroyed. 73 // Invoked when a connection is about to be destroyed.
74 void OnWillDestroyViewManagerServiceImpl(ViewManagerServiceImpl* connection); 74 void OnWillDestroyViewManagerServiceImpl(ViewManagerServiceImpl* connection);
75 75
76 // These functions are synchronous variants of those defined in the mojom. The 76 // These functions are synchronous variants of those defined in the mojom. The
77 // ViewManagerService implementations all call into these. See the mojom for 77 // ViewManagerService implementations all call into these. See the mojom for
78 // details. 78 // details.
79 mojo::ErrorCode CreateView(const ViewId& view_id); 79 mojo::ErrorCode CreateView(const ViewId& view_id);
80 bool AddView(const ViewId& parent_id, const ViewId& child_id); 80 bool AddView(const ViewId& parent_id, const ViewId& child_id);
81 std::vector<const ServerView*> GetViewTree(const ViewId& view_id) const; 81 std::vector<const ServerView*> GetViewTree(const ViewId& view_id) const;
82 bool SetViewVisibility(const ViewId& view_id, bool visible); 82 bool SetViewVisibility(const ViewId& view_id, bool visible);
83 bool EmbedUrl(const std::string& url, 83 bool EmbedRequest(mojo::URLRequestPtr request,
84 const ViewId& view_id, 84 const ViewId& view_id,
85 mojo::InterfaceRequest<mojo::ServiceProvider> services, 85 mojo::InterfaceRequest<mojo::ServiceProvider> services,
86 mojo::ServiceProviderPtr exposed_services); 86 mojo::ServiceProviderPtr exposed_services);
87 bool Embed(const ViewId& view_id, mojo::ViewManagerClientPtr client); 87 bool Embed(const ViewId& view_id, mojo::ViewManagerClientPtr client);
88 88
89 // The following methods are invoked after the corresponding change has been 89 // The following methods are invoked after the corresponding change has been
90 // processed. They do the appropriate bookkeeping and update the client as 90 // processed. They do the appropriate bookkeeping and update the client as
91 // necessary. 91 // necessary.
92 void ProcessViewBoundsChanged(const ServerView* view, 92 void ProcessViewBoundsChanged(const ServerView* view,
93 const gfx::Rect& old_bounds, 93 const gfx::Rect& old_bounds,
94 const gfx::Rect& new_bounds, 94 const gfx::Rect& new_bounds,
95 bool originated_change); 95 bool originated_change);
96 void ProcessViewportMetricsChanged(const mojo::ViewportMetrics& old_metrics, 96 void ProcessViewportMetricsChanged(const mojo::ViewportMetrics& old_metrics,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 void SetViewBounds(mojo::Id view_id, 195 void SetViewBounds(mojo::Id view_id,
196 mojo::RectPtr bounds, 196 mojo::RectPtr bounds,
197 const mojo::Callback<void(bool)>& callback) override; 197 const mojo::Callback<void(bool)>& callback) override;
198 void SetViewVisibility(mojo::Id view_id, 198 void SetViewVisibility(mojo::Id view_id,
199 bool visible, 199 bool visible,
200 const mojo::Callback<void(bool)>& callback) override; 200 const mojo::Callback<void(bool)>& callback) override;
201 void SetViewProperty(mojo::Id view_id, 201 void SetViewProperty(mojo::Id view_id,
202 const mojo::String& name, 202 const mojo::String& name,
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 EmbedRequest(mojo::URLRequestPtr request,
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 SetFocus(uint32_t view_id, const SetFocusCallback& callback) override; 213 void SetFocus(uint32_t view_id, const SetFocusCallback& callback) override;
214 214
215 // AccessPolicyDelegate: 215 // AccessPolicyDelegate:
216 bool IsRootForAccessPolicy(const ViewId& id) const override; 216 bool IsRootForAccessPolicy(const ViewId& id) const override;
217 bool IsViewKnownForAccessPolicy(const ServerView* view) const override; 217 bool IsViewKnownForAccessPolicy(const ServerView* view) const override;
218 bool IsViewRootOfAnotherConnectionForAccessPolicy( 218 bool IsViewRootOfAnotherConnectionForAccessPolicy(
219 const ServerView* view) const override; 219 const ServerView* view) const override;
(...skipping 29 matching lines...) Expand all
249 // connection may have no root. A connection has no root if either the root 249 // connection may have no root. A connection has no root if either the root
250 // is destroyed or Embed() is invoked on the root. 250 // is destroyed or Embed() is invoked on the root.
251 scoped_ptr<ViewId> root_; 251 scoped_ptr<ViewId> root_;
252 252
253 DISALLOW_COPY_AND_ASSIGN(ViewManagerServiceImpl); 253 DISALLOW_COPY_AND_ASSIGN(ViewManagerServiceImpl);
254 }; 254 };
255 255
256 } // namespace view_manager 256 } // namespace view_manager
257 257
258 #endif // COMPONENTS_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_ 258 #endif // COMPONENTS_VIEW_MANAGER_VIEW_MANAGER_SERVICE_IMPL_H_
OLDNEW
« no previous file with comments | « components/view_manager/view_manager_service_apptest.cc ('k') | components/view_manager/view_manager_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698