| OLD | NEW |
| 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 // Browser-side interface to analyze zip files for SafeBrowsing download | 5 // Browser-side interface to analyze zip files for SafeBrowsing download |
| 6 // protection. The actual zip decoding is performed in a sandboxed utility | 6 // protection. The actual zip decoding is performed in a sandboxed utility |
| 7 // process. | 7 // process. |
| 8 // | 8 // |
| 9 // This class lives on the UI thread. | 9 // This class lives on the UI thread. |
| 10 | 10 |
| 11 #ifndef CHROME_BROWSER_SAFE_BROWSING_SANDBOXED_ZIP_ANALYZER_H_ | 11 #ifndef CHROME_BROWSER_SAFE_BROWSING_SANDBOXED_ZIP_ANALYZER_H_ |
| 12 #define CHROME_BROWSER_SAFE_BROWSING_SANDBOXED_ZIP_ANALYZER_H_ | 12 #define CHROME_BROWSER_SAFE_BROWSING_SANDBOXED_ZIP_ANALYZER_H_ |
| 13 | 13 |
| 14 #include "base/basictypes.h" | |
| 15 #include "base/callback.h" | 14 #include "base/callback.h" |
| 16 #include "base/files/file.h" | 15 #include "base/files/file.h" |
| 17 #include "base/files/file_path.h" | 16 #include "base/files/file_path.h" |
| 17 #include "base/macros.h" |
| 18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
| 19 #include "content/public/browser/utility_process_host.h" | 19 #include "content/public/browser/utility_process_host.h" |
| 20 #include "content/public/browser/utility_process_host_client.h" | 20 #include "content/public/browser/utility_process_host_client.h" |
| 21 | 21 |
| 22 namespace IPC { | 22 namespace IPC { |
| 23 class Message; | 23 class Message; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace safe_browsing { | 26 namespace safe_browsing { |
| 27 namespace zip_analyzer { | 27 namespace zip_analyzer { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 const ResultCallback callback_; | 77 const ResultCallback callback_; |
| 78 // Initialized on the UI thread, but only accessed on the IO thread. | 78 // Initialized on the UI thread, but only accessed on the IO thread. |
| 79 bool callback_called_; | 79 bool callback_called_; |
| 80 | 80 |
| 81 DISALLOW_COPY_AND_ASSIGN(SandboxedZipAnalyzer); | 81 DISALLOW_COPY_AND_ASSIGN(SandboxedZipAnalyzer); |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace safe_browsing | 84 } // namespace safe_browsing |
| 85 | 85 |
| 86 #endif // CHROME_BROWSER_SAFE_BROWSING_SANDBOXED_ZIP_ANALYZER_H_ | 86 #endif // CHROME_BROWSER_SAFE_BROWSING_SANDBOXED_ZIP_ANALYZER_H_ |
| OLD | NEW |