| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |