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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 12088099: Moving chrome://tracing to content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <set> 7 #include <set>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 #include "chrome/browser/search_engines/search_provider_install_state_message_fi lter.h" 64 #include "chrome/browser/search_engines/search_provider_install_state_message_fi lter.h"
65 #include "chrome/browser/search_engines/template_url_service.h" 65 #include "chrome/browser/search_engines/template_url_service.h"
66 #include "chrome/browser/search_engines/template_url_service_factory.h" 66 #include "chrome/browser/search_engines/template_url_service_factory.h"
67 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" 67 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h"
68 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" 68 #include "chrome/browser/spellchecker/spellcheck_message_filter.h"
69 #include "chrome/browser/ssl/ssl_add_certificate.h" 69 #include "chrome/browser/ssl/ssl_add_certificate.h"
70 #include "chrome/browser/ssl/ssl_blocking_page.h" 70 #include "chrome/browser/ssl/ssl_blocking_page.h"
71 #include "chrome/browser/ssl/ssl_tab_helper.h" 71 #include "chrome/browser/ssl/ssl_tab_helper.h"
72 #include "chrome/browser/tab_contents/tab_util.h" 72 #include "chrome/browser/tab_contents/tab_util.h"
73 #include "chrome/browser/toolkit_extra_parts.h" 73 #include "chrome/browser/toolkit_extra_parts.h"
74 #include "chrome/browser/ui/chrome_select_file_policy.h"
74 #include "chrome/browser/ui/tab_contents/chrome_web_contents_view_delegate.h" 75 #include "chrome/browser/ui/tab_contents/chrome_web_contents_view_delegate.h"
75 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" 76 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
76 #include "chrome/browser/user_style_sheet_watcher.h" 77 #include "chrome/browser/user_style_sheet_watcher.h"
77 #include "chrome/browser/user_style_sheet_watcher_factory.h" 78 #include "chrome/browser/user_style_sheet_watcher_factory.h"
78 #include "chrome/browser/view_type_utils.h" 79 #include "chrome/browser/view_type_utils.h"
79 #include "chrome/common/child_process_logging.h" 80 #include "chrome/common/child_process_logging.h"
80 #include "chrome/common/chrome_constants.h" 81 #include "chrome/common/chrome_constants.h"
81 #include "chrome/common/chrome_paths.h" 82 #include "chrome/common/chrome_paths.h"
82 #include "chrome/common/chrome_switches.h" 83 #include "chrome/common/chrome_switches.h"
83 #include "chrome/common/extensions/extension.h" 84 #include "chrome/common/extensions/extension.h"
(...skipping 1857 matching lines...) Expand 10 before | Expand all | Expand 10 after
1941 1942
1942 return false; 1943 return false;
1943 } 1944 }
1944 1945
1945 FilePath ChromeContentBrowserClient::GetHyphenDictionaryDirectory() { 1946 FilePath ChromeContentBrowserClient::GetHyphenDictionaryDirectory() {
1946 FilePath directory; 1947 FilePath directory;
1947 PathService::Get(chrome::DIR_APP_DICTIONARIES, &directory); 1948 PathService::Get(chrome::DIR_APP_DICTIONARIES, &directory);
1948 return directory.Append(FILE_PATH_LITERAL("Hyphen")); 1949 return directory.Append(FILE_PATH_LITERAL("Hyphen"));
1949 } 1950 }
1950 1951
1952 ui::SelectFilePolicy* ChromeContentBrowserClient::CreateSelectFilePolicy(
1953 WebContents* web_contents) {
1954 return new ChromeSelectFilePolicy(web_contents);
1955 }
1956
1951 #if defined(OS_POSIX) && !defined(OS_MACOSX) 1957 #if defined(OS_POSIX) && !defined(OS_MACOSX)
1952 void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess( 1958 void ChromeContentBrowserClient::GetAdditionalMappedFilesForChildProcess(
1953 const CommandLine& command_line, 1959 const CommandLine& command_line,
1954 int child_process_id, 1960 int child_process_id,
1955 std::vector<FileDescriptorInfo>* mappings) { 1961 std::vector<FileDescriptorInfo>* mappings) {
1956 #if defined(OS_ANDROID) 1962 #if defined(OS_ANDROID)
1957 FilePath data_path; 1963 FilePath data_path;
1958 PathService::Get(ui::DIR_RESOURCE_PAKS_ANDROID, &data_path); 1964 PathService::Get(ui::DIR_RESOURCE_PAKS_ANDROID, &data_path);
1959 DCHECK(!data_path.empty()); 1965 DCHECK(!data_path.empty());
1960 1966
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
2046 io_thread_application_locale_ = locale; 2052 io_thread_application_locale_ = locale;
2047 } 2053 }
2048 2054
2049 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread( 2055 void ChromeContentBrowserClient::SetApplicationLocaleOnIOThread(
2050 const std::string& locale) { 2056 const std::string& locale) {
2051 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 2057 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
2052 io_thread_application_locale_ = locale; 2058 io_thread_application_locale_ = locale;
2053 } 2059 }
2054 2060
2055 } // namespace chrome 2061 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698