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

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

Issue 2705613003: Convert utility process zip creator IPC to mojo (Closed)
Patch Set: Add a comment about release references. Created 3 years, 9 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 <stdint.h>
9
10 #include <memory>
11 #include <set>
12 #include <string>
13 #include <vector>
14
15 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
16 #include "base/macros.h" 9 #include "base/macros.h"
17 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
18 #include "build/build_config.h" 11 #include "build/build_config.h"
19 #include "content/public/utility/content_utility_client.h" 12 #include "content/public/utility/content_utility_client.h"
20 #include "ipc/ipc_platform_file.h" 13 #include "ipc/ipc_platform_file.h"
21 14
22 namespace base {
23 class FilePath;
24 struct FileDescriptor;
25 }
26
27 class UtilityMessageHandler; 15 class UtilityMessageHandler;
28 16
29 class ChromeContentUtilityClient : public content::ContentUtilityClient { 17 class ChromeContentUtilityClient : public content::ContentUtilityClient {
30 public: 18 public:
31 ChromeContentUtilityClient(); 19 ChromeContentUtilityClient();
32 ~ChromeContentUtilityClient() override; 20 ~ChromeContentUtilityClient() override;
33 21
22 // content::ContentUtilityClient:
34 void UtilityThreadStarted() override; 23 void UtilityThreadStarted() override;
35 bool OnMessageReceived(const IPC::Message& message) override; 24 bool OnMessageReceived(const IPC::Message& message) override;
36 void ExposeInterfacesToBrowser( 25 void ExposeInterfacesToBrowser(
37 service_manager::InterfaceRegistry* registry) override; 26 service_manager::InterfaceRegistry* registry) override;
38 void RegisterServices(StaticServiceMap* services) override; 27 void RegisterServices(StaticServiceMap* services) override;
39 28
40 static void PreSandboxStartup(); 29 static void PreSandboxStartup();
41 30
42 private: 31 private:
43 // IPC message handlers. 32 // IPC message handlers.
44 #if defined(OS_CHROMEOS)
45 void OnCreateZipFile(const base::FilePath& src_dir,
46 const std::vector<base::FilePath>& src_relative_paths,
47 const base::FileDescriptor& dest_fd);
48 #endif // defined(OS_CHROMEOS)
49
50 void OnStartupPing(); 33 void OnStartupPing();
51 #if defined(FULL_SAFE_BROWSING) 34 #if defined(FULL_SAFE_BROWSING)
52 void OnAnalyzeZipFileForDownloadProtection( 35 void OnAnalyzeZipFileForDownloadProtection(
53 const IPC::PlatformFileForTransit& zip_file, 36 const IPC::PlatformFileForTransit& zip_file,
54 const IPC::PlatformFileForTransit& temp_file); 37 const IPC::PlatformFileForTransit& temp_file);
55 #if defined(OS_MACOSX) 38 #if defined(OS_MACOSX)
56 void OnAnalyzeDmgFileForDownloadProtection( 39 void OnAnalyzeDmgFileForDownloadProtection(
57 const IPC::PlatformFileForTransit& dmg_file); 40 const IPC::PlatformFileForTransit& dmg_file);
58 #endif // defined(OS_MACOSX) 41 #endif // defined(OS_MACOSX)
59 #endif // defined(FULL_SAFE_BROWSING) 42 #endif // defined(FULL_SAFE_BROWSING)
60 43
61 typedef ScopedVector<UtilityMessageHandler> Handlers; 44 typedef ScopedVector<UtilityMessageHandler> Handlers;
62 Handlers handlers_; 45 Handlers handlers_;
63 46
64 bool utility_process_running_elevated_; 47 bool utility_process_running_elevated_;
65 48
66 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient); 49 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityClient);
67 }; 50 };
68 51
69 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_ 52 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698