| 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 #ifndef EXTENSIONS_BROWSER_UPDATER_SAFE_MANIFEST_PARSER_H_ | 5 #ifndef EXTENSIONS_BROWSER_UPDATER_SAFE_MANIFEST_PARSER_H_ |
| 6 #define EXTENSIONS_BROWSER_UPDATER_SAFE_MANIFEST_PARSER_H_ | 6 #define EXTENSIONS_BROWSER_UPDATER_SAFE_MANIFEST_PARSER_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/callback.h" | 11 #include "base/callback.h" |
| 11 #include "base/macros.h" | 12 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "content/public/browser/utility_process_host_client.h" | 13 #include "content/public/browser/utility_process_host_client.h" |
| 14 #include "extensions/browser/updater/manifest_fetch_data.h" | 14 #include "extensions/browser/updater/manifest_fetch_data.h" |
| 15 #include "extensions/common/update_manifest.h" | 15 #include "extensions/common/update_manifest.h" |
| 16 | 16 |
| 17 namespace extensions { | 17 namespace extensions { |
| 18 | 18 |
| 19 // Utility class to handle doing xml parsing in a sandboxed utility process. | 19 // Utility class to handle doing xml parsing in a sandboxed utility process. |
| 20 class SafeManifestParser : public content::UtilityProcessHostClient { | 20 class SafeManifestParser : public content::UtilityProcessHostClient { |
| 21 public: | 21 public: |
| 22 // Callback that is invoked when the manifest results are ready. | 22 // Callback that is invoked when the manifest results are ready. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 45 | 45 |
| 46 // Should be accessed only on UI thread. | 46 // Should be accessed only on UI thread. |
| 47 ResultsCallback results_callback_; | 47 ResultsCallback results_callback_; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(SafeManifestParser); | 49 DISALLOW_COPY_AND_ASSIGN(SafeManifestParser); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 } // namespace extensions | 52 } // namespace extensions |
| 53 | 53 |
| 54 #endif // EXTENSIONS_BROWSER_UPDATER_SAFE_MANIFEST_PARSER_H_ | 54 #endif // EXTENSIONS_BROWSER_UPDATER_SAFE_MANIFEST_PARSER_H_ |
| OLD | NEW |