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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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/browser_render_process_host.h" 8 #include "content/browser/renderer_host/browser_render_process_host.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 #include "webkit/plugins/plugin_switches.h" 94 #include "webkit/plugins/plugin_switches.h"
95 95
96 #if defined(OS_WIN) 96 #if defined(OS_WIN)
97 #include <objbase.h> 97 #include <objbase.h>
98 #include "base/synchronization/waitable_event.h" 98 #include "base/synchronization/waitable_event.h"
99 #include "content/common/section_util_win.h" 99 #include "content/common/section_util_win.h"
100 #endif 100 #endif
101 101
102 #include "third_party/skia/include/core/SkBitmap.h" 102 #include "third_party/skia/include/core/SkBitmap.h"
103 103
104 using content::BrowserThread;
105
104 // This class creates the IO thread for the renderer when running in 106 // This class creates the IO thread for the renderer when running in
105 // single-process mode. It's not used in multi-process mode. 107 // single-process mode. It's not used in multi-process mode.
106 class RendererMainThread : public base::Thread { 108 class RendererMainThread : public base::Thread {
107 public: 109 public:
108 explicit RendererMainThread(const std::string& channel_id) 110 explicit RendererMainThread(const std::string& channel_id)
109 : base::Thread("Chrome_InProcRendererThread"), 111 : base::Thread("Chrome_InProcRendererThread"),
110 channel_id_(channel_id), 112 channel_id_(channel_id),
111 render_process_(NULL) { 113 render_process_(NULL) {
112 } 114 }
113 115
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
994 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { 996 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) {
995 // Only honor the request if appropriate persmissions are granted. 997 // Only honor the request if appropriate persmissions are granted.
996 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) 998 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path))
997 content::GetContentClient()->browser()->OpenItem(path); 999 content::GetContentClient()->browser()->OpenItem(path);
998 } 1000 }
999 1001
1000 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1002 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1001 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 1003 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
1002 MHTMLGenerated(job_id, data_size); 1004 MHTMLGenerated(job_id, data_size);
1003 } 1005 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/blob_message_filter.cc ('k') | content/browser/renderer_host/clipboard_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698