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

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

Issue 2645713004: 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 std::string service_token() const { return service_token_; } 54 std::string service_token() const { return service_token_; }
55 55
56 // Sets the child connection's process handle. This should be called as soon 56 // Sets the child connection's process handle. This should be called as soon
57 // as the process has been launched, and the connection will not be fully 57 // as the process has been launched, and the connection will not be fully
58 // functional until this is called. 58 // functional until this is called.
59 void SetProcessHandle(base::ProcessHandle handle); 59 void SetProcessHandle(base::ProcessHandle handle);
60 60
61 private: 61 private:
62 class IOThreadContext; 62 class IOThreadContext;
63 63
64 const std::string child_token_;
64 scoped_refptr<IOThreadContext> context_; 65 scoped_refptr<IOThreadContext> context_;
65 service_manager::Identity child_identity_; 66 service_manager::Identity child_identity_;
66 const std::string service_token_; 67 const std::string service_token_;
68 base::ProcessHandle process_handle_ = base::kNullProcessHandle;
67 69
68 service_manager::InterfaceProvider remote_interfaces_; 70 service_manager::InterfaceProvider remote_interfaces_;
69 71
70 base::WeakPtrFactory<ChildConnection> weak_factory_; 72 base::WeakPtrFactory<ChildConnection> weak_factory_;
71 73
72 DISALLOW_COPY_AND_ASSIGN(ChildConnection); 74 DISALLOW_COPY_AND_ASSIGN(ChildConnection);
73 }; 75 };
74 76
75 } // namespace content 77 } // namespace content
76 78
77 #endif // CONTENT_COMMON_SERVICE_MANAGER_CHILD_CONNECTION_H_ 79 #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