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

Side by Side Diff: components/view_manager/public/cpp/view_manager_context.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_PUBLIC_CPP_VIEW_MANAGER_CONTEXT_H_ 5 #ifndef COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_CONTEXT_H_
6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_CONTEXT_H_ 6 #define COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_CONTEXT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "mojo/application/public/cpp/service_provider_impl.h" 11 #include "mojo/application/public/cpp/service_provider_impl.h"
12 #include "mojo/services/network/public/interfaces/url_loader.mojom.h"
12 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" 13 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h"
13 14
14 namespace mojo { 15 namespace mojo {
15 class ApplicationImpl; 16 class ApplicationImpl;
16 17
17 class ViewManagerContext { 18 class ViewManagerContext {
18 public: 19 public:
19 explicit ViewManagerContext(ApplicationImpl* application_impl); 20 explicit ViewManagerContext(ApplicationImpl* application_impl);
20 ~ViewManagerContext(); 21 ~ViewManagerContext();
21 22
22 // Embed an application @ |url| at an appropriate View. 23 // Embed an application @ |url| at an appropriate View.
23 // The first time this method is called in the life time of the View Manager 24 // The first time this method is called in the life time of the View Manager
24 // service the "appropriate View" is defined as being the service' root View. 25 // service the "appropriate View" is defined as being the service' root View.
25 // Subsequent times, the implementation of this method is delegated to the 26 // Subsequent times, the implementation of this method is delegated to the
26 // application embedded at the service root View. This application will have a 27 // application embedded at the service root View. This application will have a
27 // specific definition of where within its View hierarchy to embed an 28 // specific definition of where within its View hierarchy to embed an
28 // un-parented URL. 29 // un-parented URL.
29 // |services| encapsulates services offered by the embedder to the embedded 30 // |services| encapsulates services offered by the embedder to the embedded
30 // app alongside this Embed() call. |exposed_services| provides a means for 31 // app alongside this Embed() call. |exposed_services| provides a means for
31 // the embedder to connect to services exposed by the embedded app. 32 // the embedder to connect to services exposed by the embedded app.
32 void Embed(const String& url); 33 void Embed(const String& url);
33 void Embed(const String& url, 34 void Embed(mojo::URLRequestPtr request,
34 InterfaceRequest<ServiceProvider> services, 35 InterfaceRequest<ServiceProvider> services,
35 ServiceProviderPtr exposed_Services); 36 ServiceProviderPtr exposed_Services);
36 37
37 private: 38 private:
38 class InternalState; 39 class InternalState;
39 InternalState* state_; 40 InternalState* state_;
40 41
41 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewManagerContext); 42 MOJO_DISALLOW_COPY_AND_ASSIGN(ViewManagerContext);
42 }; 43 };
43 44
44 } // namespace mojo 45 } // namespace mojo
45 46
46 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_CONTEXT_H_ 47 #endif // COMPONENTS_VIEW_MANAGER_PUBLIC_CPP_VIEW_MANAGER_CONTEXT_H_
OLDNEW
« no previous file with comments | « components/view_manager/public/cpp/view.h ('k') | components/view_manager/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698