OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "data_file_browser_cld_data_provider.h" | 5 #include "data_file_browser_cld_data_provider.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "base/path_service.h" | |
14 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
15 #include "base/task_runner.h" | 14 #include "base/task_runner.h" |
16 #include "components/translate/content/common/data_file_cld_data_provider_messag
es.h" | 15 #include "components/translate/content/common/data_file_cld_data_provider_messag
es.h" |
17 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
18 #include "content/public/browser/render_process_host.h" | 17 #include "content/public/browser/render_process_host.h" |
19 #include "content/public/browser/render_view_host.h" | 18 #include "content/public/browser/render_view_host.h" |
20 #include "content/public/browser/web_contents.h" | 19 #include "content/public/browser/web_contents.h" |
21 #include "ipc/ipc_message.h" | 20 #include "ipc/ipc_message.h" |
22 #include "ipc/ipc_message_macros.h" | 21 #include "ipc/ipc_message_macros.h" |
23 #include "ipc/ipc_platform_file.h" | 22 #include "ipc/ipc_platform_file.h" |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 // Else, this request has taken care of it all. Cache all info. | 233 // Else, this request has taken care of it all. Cache all info. |
235 VLOG(1) << "Caching CLD data file information."; | 234 VLOG(1) << "Caching CLD data file information."; |
236 g_cached_file = file.release(); | 235 g_cached_file = file.release(); |
237 g_cached_data_offset = data_offset; | 236 g_cached_data_offset = data_offset; |
238 g_cached_data_length = data_length; | 237 g_cached_data_length = data_length; |
239 } | 238 } |
240 } | 239 } |
241 } | 240 } |
242 | 241 |
243 } // namespace translate | 242 } // namespace translate |
OLD | NEW |