| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_MEDIA_GALLERIES_FILEAPI_SAFE_ITUNES_PREF_PARSER_WIN_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_ITUNES_PREF_PARSER_WIN_H_ |
| 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_ITUNES_PREF_PARSER_WIN_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_ITUNES_PREF_PARSER_WIN_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // Private because content::UtilityProcessHostClient is ref-counted. | 45 // Private because content::UtilityProcessHostClient is ref-counted. |
| 46 virtual ~SafeITunesPrefParserWin(); | 46 virtual ~SafeITunesPrefParserWin(); |
| 47 | 47 |
| 48 void StartWorkOnIOThread(); | 48 void StartWorkOnIOThread(); |
| 49 | 49 |
| 50 // Handles the results from OnProcessCrashed() and OnMessageReceived() on | 50 // Handles the results from OnProcessCrashed() and OnMessageReceived() on |
| 51 // the IO thread. | 51 // the IO thread. |
| 52 void OnGotITunesDirectory(const base::FilePath& library_file); | 52 void OnGotITunesDirectory(const base::FilePath& library_file); |
| 53 | 53 |
| 54 // UtilityProcessHostClient implementation. | 54 // UtilityProcessHostClient implementation. |
| 55 virtual void OnProcessCrashed(int exit_code) OVERRIDE; | 55 virtual void OnProcessCrashed(int exit_code) override; |
| 56 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 56 virtual bool OnMessageReceived(const IPC::Message& message) override; |
| 57 | 57 |
| 58 const std::string unsafe_xml_; | 58 const std::string unsafe_xml_; |
| 59 const ParserCallback callback_; | 59 const ParserCallback callback_; |
| 60 | 60 |
| 61 // Verifies the messages from the utility process came at the right time. | 61 // Verifies the messages from the utility process came at the right time. |
| 62 // Initialized on the FILE thread, but only accessed on the IO thread. | 62 // Initialized on the FILE thread, but only accessed on the IO thread. |
| 63 ParserState parser_state_; | 63 ParserState parser_state_; |
| 64 | 64 |
| 65 DISALLOW_COPY_AND_ASSIGN(SafeITunesPrefParserWin); | 65 DISALLOW_COPY_AND_ASSIGN(SafeITunesPrefParserWin); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace itunes | 68 } // namespace itunes |
| 69 | 69 |
| 70 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_ITUNES_PREF_PARSER_WIN_H_ | 70 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SAFE_ITUNES_PREF_PARSER_WIN_H_ |
| OLD | NEW |