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

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 8912009: Move BrowserMessageFilter to public, and into content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 9 years 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 #include "webkit/glue/resource_type.h" 109 #include "webkit/glue/resource_type.h"
110 #include "webkit/plugins/plugin_switches.h" 110 #include "webkit/plugins/plugin_switches.h"
111 111
112 #if defined(OS_WIN) 112 #if defined(OS_WIN)
113 #include "base/synchronization/waitable_event.h" 113 #include "base/synchronization/waitable_event.h"
114 #include "content/common/font_cache_dispatcher_win.h" 114 #include "content/common/font_cache_dispatcher_win.h"
115 #endif 115 #endif
116 116
117 #include "third_party/skia/include/core/SkBitmap.h" 117 #include "third_party/skia/include/core/SkBitmap.h"
118 118
119 using content::BrowserMessageFilter;
119 using content::BrowserThread; 120 using content::BrowserThread;
120 using content::ChildProcessHost; 121 using content::ChildProcessHost;
121 using content::ChildProcessHostImpl; 122 using content::ChildProcessHostImpl;
122 using content::UserMetricsAction; 123 using content::UserMetricsAction;
123 124
124 // This class creates the IO thread for the renderer when running in 125 // This class creates the IO thread for the renderer when running in
125 // single-process mode. It's not used in multi-process mode. 126 // single-process mode. It's not used in multi-process mode.
126 class RendererMainThread : public base::Thread { 127 class RendererMainThread : public base::Thread {
127 public: 128 public:
128 explicit RendererMainThread(const std::string& channel_id) 129 explicit RendererMainThread(const std::string& channel_id)
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) { 1317 void RenderProcessHostImpl::OnRevealFolderInOS(const FilePath& path) {
1317 // Only honor the request if appropriate persmissions are granted. 1318 // Only honor the request if appropriate persmissions are granted.
1318 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path)) 1319 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(GetID(), path))
1319 content::GetContentClient()->browser()->OpenItem(path); 1320 content::GetContentClient()->browser()->OpenItem(path);
1320 } 1321 }
1321 1322
1322 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1323 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1323 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 1324 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
1324 MHTMLGenerated(job_id, data_size); 1325 MHTMLGenerated(job_id, data_size);
1325 } 1326 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698