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

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

Issue 2802973003: Remove ScopedVector from chrome/ (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
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>
9 #include <vector>
10
8 #include "base/macros.h" 11 #include "base/macros.h"
9 #include "base/memory/scoped_vector.h"
10 #include "content/public/utility/content_utility_client.h" 12 #include "content/public/utility/content_utility_client.h"
11 13
12 class UtilityMessageHandler; 14 class UtilityMessageHandler;
13 15
14 class ChromeContentUtilityClient : public content::ContentUtilityClient { 16 class ChromeContentUtilityClient : public content::ContentUtilityClient {
15 public: 17 public:
16 ChromeContentUtilityClient(); 18 ChromeContentUtilityClient();
17 ~ChromeContentUtilityClient() override; 19 ~ChromeContentUtilityClient() override;
18 20
19 // content::ContentUtilityClient: 21 // content::ContentUtilityClient:
20 void UtilityThreadStarted() override; 22 void UtilityThreadStarted() override;
21 bool OnMessageReceived(const IPC::Message& message) override; 23 bool OnMessageReceived(const IPC::Message& message) override;
22 void ExposeInterfacesToBrowser( 24 void ExposeInterfacesToBrowser(
23 service_manager::InterfaceRegistry* registry) override; 25 service_manager::InterfaceRegistry* registry) override;
24 26
25 static void PreSandboxStartup(); 27 static void PreSandboxStartup();
26 28
27 private: 29 private:
28 // IPC message handlers. 30 // IPC message handlers.
29 typedef ScopedVector<UtilityMessageHandler> Handlers; 31 using Handlers = std::vector<std::unique_ptr<UtilityMessageHandler>>;
30 Handlers handlers_; 32 Handlers handlers_;
31 33
32 // True if the utility process runs with elevated privileges. 34 // True if the utility process runs with elevated privileges.
33 bool utility_process_running_elevated_; 35 bool utility_process_running_elevated_;
34 36
35 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); 37 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
36 }; 38 };
37 39
38 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 40 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698