| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_MOJO_CLIENT_IMPL_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_MOJO_CLIENT_IMPL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/strings/string16.h" |
| 13 #include "content/common/content_export.h" |
| 14 #include "mojo/public/cpp/system/message_pipe.h" |
| 15 |
| 16 namespace content { |
| 17 |
| 18 // Non-templated implementation of UtilityProcessMojoClient. |
| 19 class CONTENT_EXPORT UtilityProcessMojoClientImpl { |
| 20 public: |
| 21 explicit UtilityProcessMojoClientImpl(const base::string16& process_name); |
| 22 ~UtilityProcessMojoClientImpl(); |
| 23 |
| 24 // Disables the sandbox in the utility process. |
| 25 void set_disable_sandbox(); |
| 26 |
| 27 // Starts the utility process and connect to the remote Mojo service called |
| 28 // |mojo_interface_name| using the |interface_pipe|. |
| 29 void Start(const std::string& mojo_interface_name, |
| 30 mojo::ScopedMessagePipeHandle interface_pipe); |
| 31 |
| 32 private: |
| 33 class Helper; |
| 34 |
| 35 scoped_refptr<Helper> helper_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(UtilityProcessMojoClientImpl); |
| 38 }; |
| 39 |
| 40 } // namespace content |
| 41 |
| 42 #endif // CONTENT_PUBLIC_BROWSER_UTILITY_PROCESS_MOJO_CLIENT_IMPL_H_ |
| OLD | NEW |