Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Side by Side Diff: content/shell/shell_render_process_observer.cc

Issue 13409003: Hide ContentClient getters from embedders so that they they don't reuse content's embedder API. The… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_gtk.cc ('k') | content/shell/shell_web_contents_view_delegate_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/shell/shell_gtk.cc ('k') | content/shell/shell_web_contents_view_delegate_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698