| 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 #include "chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.h" | 5 #include "chrome/browser/media_galleries/fileapi/safe_picasa_albums_indexer.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" | 8 #include "chrome/browser/media_galleries/fileapi/media_file_system_backend.h" |
| 9 #include "chrome/common/chrome_utility_messages.h" | 9 #include "chrome/common/chrome_utility_messages.h" |
| 10 #include "content/public/browser/browser_thread.h" | 10 #include "content/public/browser/browser_thread.h" |
| 11 #include "content/public/browser/child_process_data.h" | 11 #include "content/public/browser/child_process_data.h" |
| 12 #include "content/public/browser/utility_process_host.h" | 12 #include "content/public/browser/utility_process_host.h" |
| 13 | 13 |
| 14 using chrome::MediaFileSystemBackend; | |
| 15 using content::BrowserThread; | 14 using content::BrowserThread; |
| 16 using content::UtilityProcessHost; | 15 using content::UtilityProcessHost; |
| 17 | 16 |
| 18 namespace picasa { | 17 namespace picasa { |
| 19 | 18 |
| 20 namespace { | 19 namespace { |
| 21 | 20 |
| 22 // Arbitrarily chosen to be a decent size but not block thread too much. | 21 // Arbitrarily chosen to be a decent size but not block thread too much. |
| 23 const int kPicasaINIReadBatchSize = 10; | 22 const int kPicasaINIReadBatchSize = 10; |
| 24 | 23 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 IPC_BEGIN_MESSAGE_MAP(SafePicasaAlbumsIndexer, message) | 131 IPC_BEGIN_MESSAGE_MAP(SafePicasaAlbumsIndexer, message) |
| 133 IPC_MESSAGE_HANDLER( | 132 IPC_MESSAGE_HANDLER( |
| 134 ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished, | 133 ChromeUtilityHostMsg_IndexPicasaAlbumsContents_Finished, |
| 135 OnIndexPicasaAlbumsContentsFinished) | 134 OnIndexPicasaAlbumsContentsFinished) |
| 136 IPC_MESSAGE_UNHANDLED(handled = false) | 135 IPC_MESSAGE_UNHANDLED(handled = false) |
| 137 IPC_END_MESSAGE_MAP() | 136 IPC_END_MESSAGE_MAP() |
| 138 return handled; | 137 return handled; |
| 139 } | 138 } |
| 140 | 139 |
| 141 } // namespace picasa | 140 } // namespace picasa |
| OLD | NEW |