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

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

Issue 9683003: Aura: Show dialog box asking user's permisssion for screen sharing for gtalk (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 9 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 21 matching lines...) Expand all
32 #include "chrome/browser/extensions/extension_process_manager.h" 32 #include "chrome/browser/extensions/extension_process_manager.h"
33 #include "chrome/browser/extensions/extension_service.h" 33 #include "chrome/browser/extensions/extension_service.h"
34 #include "chrome/browser/extensions/extension_web_ui.h" 34 #include "chrome/browser/extensions/extension_web_ui.h"
35 #include "chrome/browser/extensions/extension_webkit_preferences.h" 35 #include "chrome/browser/extensions/extension_webkit_preferences.h"
36 #include "chrome/browser/geolocation/chrome_access_token_store.h" 36 #include "chrome/browser/geolocation/chrome_access_token_store.h"
37 #include "chrome/browser/google/google_util.h" 37 #include "chrome/browser/google/google_util.h"
38 #include "chrome/browser/infobars/infobar_tab_helper.h" 38 #include "chrome/browser/infobars/infobar_tab_helper.h"
39 #include "chrome/browser/net/chrome_net_log.h" 39 #include "chrome/browser/net/chrome_net_log.h"
40 #include "chrome/browser/notifications/desktop_notification_service.h" 40 #include "chrome/browser/notifications/desktop_notification_service.h"
41 #include "chrome/browser/notifications/desktop_notification_service_factory.h" 41 #include "chrome/browser/notifications/desktop_notification_service_factory.h"
42 #include "chrome/browser/pepper_gtalk_message_filter.h"
42 #include "chrome/browser/platform_util.h" 43 #include "chrome/browser/platform_util.h"
43 #include "chrome/browser/prefs/pref_service.h" 44 #include "chrome/browser/prefs/pref_service.h"
44 #include "chrome/browser/prefs/scoped_user_pref_update.h" 45 #include "chrome/browser/prefs/scoped_user_pref_update.h"
45 #include "chrome/browser/prerender/prerender_manager.h" 46 #include "chrome/browser/prerender/prerender_manager.h"
46 #include "chrome/browser/prerender/prerender_manager_factory.h" 47 #include "chrome/browser/prerender/prerender_manager_factory.h"
47 #include "chrome/browser/prerender/prerender_tracker.h" 48 #include "chrome/browser/prerender/prerender_tracker.h"
48 #include "chrome/browser/printing/printing_message_filter.h" 49 #include "chrome/browser/printing/printing_message_filter.h"
49 #include "chrome/browser/profiles/profile.h" 50 #include "chrome/browser/profiles/profile.h"
50 #include "chrome/browser/profiles/profile_io_data.h" 51 #include "chrome/browser/profiles/profile_io_data.h"
51 #include "chrome/browser/profiles/profile_manager.h" 52 #include "chrome/browser/profiles/profile_manager.h"
(...skipping 13 matching lines...) Expand all
65 #include "chrome/browser/user_style_sheet_watcher.h" 66 #include "chrome/browser/user_style_sheet_watcher.h"
66 #include "chrome/common/child_process_logging.h" 67 #include "chrome/common/child_process_logging.h"
67 #include "chrome/common/chrome_constants.h" 68 #include "chrome/common/chrome_constants.h"
68 #include "chrome/common/chrome_switches.h" 69 #include "chrome/common/chrome_switches.h"
69 #include "chrome/common/extensions/extension.h" 70 #include "chrome/common/extensions/extension.h"
70 #include "chrome/common/extensions/extension_set.h" 71 #include "chrome/common/extensions/extension_set.h"
71 #include "chrome/common/logging_chrome.h" 72 #include "chrome/common/logging_chrome.h"
72 #include "chrome/common/pref_names.h" 73 #include "chrome/common/pref_names.h"
73 #include "chrome/common/render_messages.h" 74 #include "chrome/common/render_messages.h"
74 #include "chrome/common/url_constants.h" 75 #include "chrome/common/url_constants.h"
76 #include "content/public/browser/browser_child_process_host.h"
75 #include "content/public/browser/browser_main_parts.h" 77 #include "content/public/browser/browser_main_parts.h"
76 #include "content/public/browser/browser_url_handler.h" 78 #include "content/public/browser/browser_url_handler.h"
79 #include "content/public/browser/child_process_data.h"
77 #include "content/public/browser/child_process_security_policy.h" 80 #include "content/public/browser/child_process_security_policy.h"
78 #include "content/public/browser/render_process_host.h" 81 #include "content/public/browser/render_process_host.h"
79 #include "content/public/browser/render_view_host.h" 82 #include "content/public/browser/render_view_host.h"
80 #include "content/public/browser/resource_context.h" 83 #include "content/public/browser/resource_context.h"
81 #include "content/public/browser/site_instance.h" 84 #include "content/public/browser/site_instance.h"
82 #include "content/public/browser/web_contents.h" 85 #include "content/public/browser/web_contents.h"
83 #include "content/public/browser/web_contents_view.h" 86 #include "content/public/browser/web_contents_view.h"
87 #include "content/public/common/child_process_host.h"
84 #include "grit/generated_resources.h" 88 #include "grit/generated_resources.h"
85 #include "grit/ui_resources.h" 89 #include "grit/ui_resources.h"
86 #include "net/base/cookie_monster.h" 90 #include "net/base/cookie_monster.h"
87 #include "net/base/cookie_options.h" 91 #include "net/base/cookie_options.h"
88 #include "net/base/ssl_cert_request_info.h" 92 #include "net/base/ssl_cert_request_info.h"
89 #include "ui/base/l10n/l10n_util.h" 93 #include "ui/base/l10n/l10n_util.h"
90 #include "ui/base/resource/resource_bundle.h" 94 #include "ui/base/resource/resource_bundle.h"
91 #include "webkit/glue/webpreferences.h" 95 #include "webkit/glue/webpreferences.h"
92 96
93 #if defined(OS_WIN) 97 #if defined(OS_WIN)
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 host->Send(new ChromeViewMsg_SetIsIncognitoProcess( 410 host->Send(new ChromeViewMsg_SetIsIncognitoProcess(
407 profile->IsOffTheRecord())); 411 profile->IsOffTheRecord()));
408 412
409 SendExtensionWebRequestStatusToHost(host); 413 SendExtensionWebRequestStatusToHost(host);
410 414
411 RendererContentSettingRules rules; 415 RendererContentSettingRules rules;
412 GetRendererContentSettingRules(profile->GetHostContentSettingsMap(), &rules); 416 GetRendererContentSettingRules(profile->GetHostContentSettingsMap(), &rules);
413 host->Send(new ChromeViewMsg_SetContentSettingRules(rules)); 417 host->Send(new ChromeViewMsg_SetContentSettingRules(rules));
414 } 418 }
415 419
420 void ChromeContentBrowserClient::BrowserChildProcessHostCreated(
421 content::BrowserChildProcessHost* host) {
422 host->GetHost()->AddFilter(new PepperGtalkMessageFilter());
423 }
424
416 content::WebUIControllerFactory* 425 content::WebUIControllerFactory*
417 ChromeContentBrowserClient::GetWebUIControllerFactory() { 426 ChromeContentBrowserClient::GetWebUIControllerFactory() {
418 return ChromeWebUIControllerFactory::GetInstance(); 427 return ChromeWebUIControllerFactory::GetInstance();
419 } 428 }
420 429
421 GURL ChromeContentBrowserClient::GetEffectiveURL( 430 GURL ChromeContentBrowserClient::GetEffectiveURL(
422 content::BrowserContext* browser_context, const GURL& url) { 431 content::BrowserContext* browser_context, const GURL& url) {
423 Profile* profile = Profile::FromBrowserContext(browser_context); 432 Profile* profile = Profile::FromBrowserContext(browser_context);
424 // Get the effective URL for the given actual URL. If the URL is part of an 433 // Get the effective URL for the given actual URL. If the URL is part of an
425 // installed app, the effective URL is an extension URL with the ID of that 434 // installed app, the effective URL is an extension URL with the ID of that
(...skipping 1187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1613 #if defined(USE_NSS) 1622 #if defined(USE_NSS)
1614 crypto::CryptoModuleBlockingPasswordDelegate* 1623 crypto::CryptoModuleBlockingPasswordDelegate*
1615 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 1624 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
1616 const GURL& url) { 1625 const GURL& url) {
1617 return browser::NewCryptoModuleBlockingDialogDelegate( 1626 return browser::NewCryptoModuleBlockingDialogDelegate(
1618 browser::kCryptoModulePasswordKeygen, url.host()); 1627 browser::kCryptoModulePasswordKeygen, url.host());
1619 } 1628 }
1620 #endif 1629 #endif
1621 1630
1622 } // namespace chrome 1631 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698