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

Side by Side Diff: content/public/browser/utility_process_mojo_client_impl.h

Issue 2049303002: Add the UtilityProcessMojoClient class and convert SafeJsonParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: bauerb@ comment Created 4 years, 6 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
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698