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

Side by Side Diff: chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac.h

Issue 1885813002: Delete the utility process startup ping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BROWSER_SAFE_BROWSING_SANDBOXED_DMG_ANALYZER_MAC_H_ 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SANDBOXED_DMG_ANALYZER_MAC_H_
6 #define CHROME_BROWSER_SAFE_BROWSING_SANDBOXED_DMG_ANALYZER_MAC_H_ 6 #define CHROME_BROWSER_SAFE_BROWSING_SANDBOXED_DMG_ANALYZER_MAC_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/files/file.h" 9 #include "base/files/file.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 30 matching lines...) Expand all
41 void OpenDMGFile(); 41 void OpenDMGFile();
42 42
43 // Called on the IO thread, this starts the utility process. 43 // Called on the IO thread, this starts the utility process.
44 void StartAnalysis(); 44 void StartAnalysis();
45 45
46 // content::UtilityProcessHostClient: 46 // content::UtilityProcessHostClient:
47 void OnProcessCrashed(int exit_code) override; 47 void OnProcessCrashed(int exit_code) override;
48 void OnProcessLaunchFailed() override; 48 void OnProcessLaunchFailed() override;
49 bool OnMessageReceived(const IPC::Message& message) override; 49 bool OnMessageReceived(const IPC::Message& message) override;
50 50
51 // Message handler for reply ping when the utility process has started.
52 void OnUtilityProcessStarted();
53
54 // Message handler to receive the results of the analysis. Invokes the 51 // Message handler to receive the results of the analysis. Invokes the
55 // |callback_|. 52 // |callback_|.
56 void OnAnalysisFinished(const zip_analyzer::Results& results); 53 void OnAnalysisFinished(const zip_analyzer::Results& results);
57 54
58 const base::FilePath file_path_; // The path of the DMG file. 55 const base::FilePath file_path_; // The path of the DMG file.
59 base::File file_; // The opened file handle for |file_path_|. 56 base::File file_; // The opened file handle for |file_path_|.
60 57
61 // Weak reference to the utility process, which owns this.
62 base::WeakPtr<content::UtilityProcessHost> utility_process_host_;
63
64 const ResultsCallback callback_; // Result callback. 58 const ResultsCallback callback_; // Result callback.
65 bool callback_called_; // Whether |callback_| has already been invoked. 59 bool callback_called_; // Whether |callback_| has already been invoked.
66 60
67 DISALLOW_COPY_AND_ASSIGN(SandboxedDMGAnalyzer); 61 DISALLOW_COPY_AND_ASSIGN(SandboxedDMGAnalyzer);
68 }; 62 };
69 63
70 } // namespace safe_browsing 64 } // namespace safe_browsing
71 65
72 #endif // CHROME_BROWSER_SAFE_BROWSING_SANDBOXED_DMG_ANALYZER_MAC_H_ 66 #endif // CHROME_BROWSER_SAFE_BROWSING_SANDBOXED_DMG_ANALYZER_MAC_H_
OLDNEW
« no previous file with comments | « chrome/browser/printing/pwg_raster_converter.cc ('k') | chrome/browser/safe_browsing/sandboxed_dmg_analyzer_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698