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

Side by Side Diff: chrome/utility/chrome_content_utility_client.h

Issue 2810343002: Convert UtilityThread/Clients to add ConnectionFilters instead of using ChildThread's InterfaceRegi… (Closed)
Patch Set: . Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 5 #ifndef CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "content/public/utility/content_utility_client.h" 12 #include "content/public/utility/content_utility_client.h"
13 13
14 class UtilityMessageHandler; 14 class UtilityMessageHandler;
15 15
16 class ChromeContentUtilityClient : public content::ContentUtilityClient { 16 class ChromeContentUtilityClient : public content::ContentUtilityClient {
17 public: 17 public:
18 ChromeContentUtilityClient(); 18 ChromeContentUtilityClient();
19 ~ChromeContentUtilityClient() override; 19 ~ChromeContentUtilityClient() override;
20 20
21 // content::ContentUtilityClient: 21 // content::ContentUtilityClient:
22 void UtilityThreadStarted() override; 22 void UtilityThreadStarted() override;
23 bool OnMessageReceived(const IPC::Message& message) override; 23 bool OnMessageReceived(const IPC::Message& message) override;
24 void ExposeInterfacesToBrowser(
25 service_manager::InterfaceRegistry* registry) override;
26 24
27 static void PreSandboxStartup(); 25 static void PreSandboxStartup();
28 26
29 private: 27 private:
30 // IPC message handlers. 28 // IPC message handlers.
31 using Handlers = std::vector<std::unique_ptr<UtilityMessageHandler>>; 29 using Handlers = std::vector<std::unique_ptr<UtilityMessageHandler>>;
32 Handlers handlers_; 30 Handlers handlers_;
33 31
34 // True if the utility process runs with elevated privileges. 32 // True if the utility process runs with elevated privileges.
35 bool utility_process_running_elevated_; 33 bool utility_process_running_elevated_;
36 34
37 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); 35 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
38 }; 36 };
39 37
40 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 38 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/utility/chrome_content_utility_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698