| 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 #include "content/shell/shell_render_process_observer.h" | 5 #include "content/shell/shell_render_process_observer.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "content/public/common/content_client.h" | 8 #include "content/public/common/content_client.h" |
| 9 #include "content/public/renderer/render_view.h" | 9 #include "content/public/renderer/render_view.h" |
| 10 #include "content/public/renderer/render_thread.h" | 10 #include "content/public/renderer/render_thread.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 return handled; | 89 return handled; |
| 90 } | 90 } |
| 91 | 91 |
| 92 void ShellRenderProcessObserver::OnSetWebKitSourceDir( | 92 void ShellRenderProcessObserver::OnSetWebKitSourceDir( |
| 93 const base::FilePath& webkit_source_dir) { | 93 const base::FilePath& webkit_source_dir) { |
| 94 webkit_source_dir_ = webkit_source_dir; | 94 webkit_source_dir_ = webkit_source_dir; |
| 95 } | 95 } |
| 96 | 96 |
| 97 void ShellRenderProcessObserver::OnLoadHyphenDictionary( | 97 void ShellRenderProcessObserver::OnLoadHyphenDictionary( |
| 98 const IPC::PlatformFileForTransit& dict_file) { | 98 const IPC::PlatformFileForTransit& dict_file) { |
| 99 ShellContentRendererClient* renderer_client = | 99 ShellContentRendererClient::Get()->LoadHyphenDictionary( |
| 100 static_cast<content::ShellContentRendererClient*>( | |
| 101 content::GetContentClient()->renderer()); | |
| 102 renderer_client->LoadHyphenDictionary( | |
| 103 IPC::PlatformFileForTransitToPlatformFile(dict_file)); | 100 IPC::PlatformFileForTransitToPlatformFile(dict_file)); |
| 104 } | 101 } |
| 105 | 102 |
| 106 } // namespace content | 103 } // namespace content |
| OLD | NEW |