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

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

Issue 7342047: Cleanup base/stl_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unneeded include + rebase Created 9 years, 5 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
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>
11 #include <limits> 11 #include <limits>
12 #include <vector> 12 #include <vector>
13 13
14 #if defined(OS_POSIX) 14 #if defined(OS_POSIX)
15 #include <utility> // for pair<> 15 #include <utility> // for pair<>
16 #endif 16 #endif
17 17
18 #include "base/callback.h" 18 #include "base/callback.h"
19 #include "base/command_line.h" 19 #include "base/command_line.h"
20 #include "base/logging.h" 20 #include "base/logging.h"
21 #include "base/metrics/field_trial.h" 21 #include "base/metrics/field_trial.h"
22 #include "base/metrics/histogram.h" 22 #include "base/metrics/histogram.h"
23 #include "base/path_service.h" 23 #include "base/path_service.h"
24 #include "base/platform_file.h" 24 #include "base/platform_file.h"
25 #include "base/stl_util-inl.h" 25 #include "base/stl_util.h"
26 #include "base/string_util.h" 26 #include "base/string_util.h"
27 #include "base/threading/thread.h" 27 #include "base/threading/thread.h"
28 #include "base/threading/thread_restrictions.h" 28 #include "base/threading/thread_restrictions.h"
29 #include "chrome/browser/profiles/profile.h" 29 #include "chrome/browser/profiles/profile.h"
30 #include "content/browser/appcache/appcache_dispatcher_host.h" 30 #include "content/browser/appcache/appcache_dispatcher_host.h"
31 #include "content/browser/browser_child_process_host.h" 31 #include "content/browser/browser_child_process_host.h"
32 #include "content/browser/child_process_security_policy.h" 32 #include "content/browser/child_process_security_policy.h"
33 #include "content/browser/content_browser_client.h" 33 #include "content/browser/content_browser_client.h"
34 #include "content/browser/device_orientation/message_filter.h" 34 #include "content/browser/device_orientation/message_filter.h"
35 #include "content/browser/download/mhtml_generation_manager.h" 35 #include "content/browser/download/mhtml_generation_manager.h"
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) { 916 void BrowserRenderProcessHost::OnRevealFolderInOS(const FilePath& path) {
917 // Only honor the request if appropriate persmissions are granted. 917 // Only honor the request if appropriate persmissions are granted.
918 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path)) 918 if (ChildProcessSecurityPolicy::GetInstance()->CanReadFile(id(), path))
919 content::GetContentClient()->browser()->RevealFolderInOS(path); 919 content::GetContentClient()->browser()->RevealFolderInOS(path);
920 } 920 }
921 921
922 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) { 922 void BrowserRenderProcessHost::OnSavedPageAsMHTML(int job_id, bool success) {
923 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 923 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
924 MHTMLGenerated(job_id, success); 924 MHTMLGenerated(job_id, success);
925 } 925 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698