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

Side by Side Diff: content/child/process_control_impl.h

Issue 1679573002: Move shell interfaces into the shell.mojom namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@delegate
Patch Set: . Created 4 years, 10 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CONTENT_CHILD_PROCESS_CONTROL_IMPL_H_ 5 #ifndef CONTENT_CHILD_PROCESS_CONTROL_IMPL_H_
6 #define CONTENT_CHILD_PROCESS_CONTROL_IMPL_H_ 6 #define CONTENT_CHILD_PROCESS_CONTROL_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 17 matching lines...) Expand all
28 ProcessControlImpl(); 28 ProcessControlImpl();
29 ~ProcessControlImpl() override; 29 ~ProcessControlImpl() override;
30 30
31 using URLToLoaderMap = std::map<GURL, mojo::shell::ApplicationLoader*>; 31 using URLToLoaderMap = std::map<GURL, mojo::shell::ApplicationLoader*>;
32 32
33 // Registers Mojo applications loaders for URLs. 33 // Registers Mojo applications loaders for URLs.
34 virtual void RegisterApplicationLoaders( 34 virtual void RegisterApplicationLoaders(
35 URLToLoaderMap* url_to_loader_map) = 0; 35 URLToLoaderMap* url_to_loader_map) = 0;
36 36
37 // ProcessControl: 37 // ProcessControl:
38 void LoadApplication(const mojo::String& url, 38 void LoadApplication(
39 mojo::InterfaceRequest<mojo::Application> request, 39 const mojo::String& url,
40 const LoadApplicationCallback& callback) override; 40 mojo::InterfaceRequest<mojo::shell::mojom::Application> request,
41 const LoadApplicationCallback& callback) override;
41 42
42 private: 43 private:
43 // Called if a LoadApplication request fails. 44 // Called if a LoadApplication request fails.
44 virtual void OnLoadFailed() {} 45 virtual void OnLoadFailed() {}
45 46
46 bool has_registered_loaders_ = false; 47 bool has_registered_loaders_ = false;
47 URLToLoaderMap url_to_loader_map_; 48 URLToLoaderMap url_to_loader_map_;
48 49
49 DISALLOW_COPY_AND_ASSIGN(ProcessControlImpl); 50 DISALLOW_COPY_AND_ASSIGN(ProcessControlImpl);
50 }; 51 };
51 52
52 } // namespace content 53 } // namespace content
53 54
54 #endif // CONTENT_CHILD_PROCESS_CONTROL_IMPL_H_ 55 #endif // CONTENT_CHILD_PROCESS_CONTROL_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/mojo/renderer_capability_filter.cc ('k') | content/child/process_control_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698