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

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

Issue 8382021: Move resource_codes to content/public/common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 #include "content/browser/speech/speech_input_dispatcher_host.h" 68 #include "content/browser/speech/speech_input_dispatcher_host.h"
69 #include "content/browser/trace_message_filter.h" 69 #include "content/browser/trace_message_filter.h"
70 #include "content/browser/user_metrics.h" 70 #include "content/browser/user_metrics.h"
71 #include "content/browser/worker_host/worker_message_filter.h" 71 #include "content/browser/worker_host/worker_message_filter.h"
72 #include "content/common/child_process_info.h" 72 #include "content/common/child_process_info.h"
73 #include "content/common/child_process_messages.h" 73 #include "content/common/child_process_messages.h"
74 #include "content/common/gpu/gpu_messages.h" 74 #include "content/common/gpu/gpu_messages.h"
75 #include "content/public/browser/notification_service.h" 75 #include "content/public/browser/notification_service.h"
76 #include "content/common/process_watcher.h" 76 #include "content/common/process_watcher.h"
77 #include "content/common/resource_messages.h" 77 #include "content/common/resource_messages.h"
78 #include "content/common/result_codes.h"
79 #include "content/common/view_messages.h" 78 #include "content/common/view_messages.h"
80 #include "content/public/browser/content_browser_client.h" 79 #include "content/public/browser/content_browser_client.h"
81 #include "content/public/common/content_switches.h" 80 #include "content/public/common/content_switches.h"
81 #include "content/public/common/result_codes.h"
82 #include "content/renderer/render_process_impl.h" 82 #include "content/renderer/render_process_impl.h"
83 #include "content/renderer/render_thread_impl.h" 83 #include "content/renderer/render_thread_impl.h"
84 #include "ipc/ipc_logging.h" 84 #include "ipc/ipc_logging.h"
85 #include "ipc/ipc_platform_file.h" 85 #include "ipc/ipc_platform_file.h"
86 #include "ipc/ipc_switches.h" 86 #include "ipc/ipc_switches.h"
87 #include "media/base/media_switches.h" 87 #include "media/base/media_switches.h"
88 #include "net/url_request/url_request_context_getter.h" 88 #include "net/url_request/url_request_context_getter.h"
89 #include "ui/base/ui_base_switches.h" 89 #include "ui/base/ui_base_switches.h"
90 #include "ui/gfx/gl/gl_switches.h" 90 #include "ui/gfx/gl/gl_switches.h"
91 #include "webkit/fileapi/file_system_path_manager.h" 91 #include "webkit/fileapi/file_system_path_manager.h"
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { 991 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) {
992 // Only honor the request if appropriate persmissions are granted. 992 // Only honor the request if appropriate persmissions are granted.
993 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) 993 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path))
994 content::GetContentClient()->browser()->OpenItem(path); 994 content::GetContentClient()->browser()->OpenItem(path);
995 } 995 }
996 996
997 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) { 997 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, int64 data_size) {
998 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 998 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
999 MHTMLGenerated(job_id, data_size); 999 MHTMLGenerated(job_id, data_size);
1000 } 1000 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698