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

Side by Side Diff: content/common/service_manager/child_connection.h

Issue 2644843007: Always notify Mojo EDK of incomplete content child process launch (Closed)
Patch Set: Created 3 years, 11 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COMMON_SERVICE_MANAGER_CHILD_CONNECTION_H_ 5 #ifndef CONTENT_COMMON_SERVICE_MANAGER_CHILD_CONNECTION_H_
6 #define CONTENT_COMMON_SERVICE_MANAGER_CHILD_CONNECTION_H_ 6 #define CONTENT_COMMON_SERVICE_MANAGER_CHILD_CONNECTION_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 std::string service_token() const { return service_token_; } 55 std::string service_token() const { return service_token_; }
56 56
57 // Sets the child connection's process handle. This should be called as soon 57 // Sets the child connection's process handle. This should be called as soon
58 // as the process has been launched, and the connection will not be fully 58 // as the process has been launched, and the connection will not be fully
59 // functional until this is called. 59 // functional until this is called.
60 void SetProcessHandle(base::ProcessHandle handle); 60 void SetProcessHandle(base::ProcessHandle handle);
61 61
62 private: 62 private:
63 class IOThreadContext; 63 class IOThreadContext;
64 64
65 const std::string child_token_;
65 scoped_refptr<IOThreadContext> context_; 66 scoped_refptr<IOThreadContext> context_;
66 service_manager::Identity child_identity_; 67 service_manager::Identity child_identity_;
67 const std::string service_token_; 68 const std::string service_token_;
69 base::ProcessHandle process_handle_ = base::kNullProcessHandle;
68 70
69 service_manager::InterfaceProvider remote_interfaces_; 71 service_manager::InterfaceProvider remote_interfaces_;
70 72
71 base::WeakPtrFactory<ChildConnection> weak_factory_; 73 base::WeakPtrFactory<ChildConnection> weak_factory_;
72 74
73 DISALLOW_COPY_AND_ASSIGN(ChildConnection); 75 DISALLOW_COPY_AND_ASSIGN(ChildConnection);
74 }; 76 };
75 77
76 } // namespace content 78 } // namespace content
77 79
78 #endif // CONTENT_COMMON_SERVICE_MANAGER_CHILD_CONNECTION_H_ 80 #endif // CONTENT_COMMON_SERVICE_MANAGER_CHILD_CONNECTION_H_
OLDNEW
« no previous file with comments | « content/browser/browser_child_process_host_impl.cc ('k') | content/common/service_manager/child_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698