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

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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "chrome/browser/prerender/prerender_manager_factory.h" 46 #include "chrome/browser/prerender/prerender_manager_factory.h"
47 #include "chrome/browser/prerender/prerender_tracker.h" 47 #include "chrome/browser/prerender/prerender_tracker.h"
48 #include "chrome/browser/printing/printing_message_filter.h" 48 #include "chrome/browser/printing/printing_message_filter.h"
49 #include "chrome/browser/profiles/profile.h" 49 #include "chrome/browser/profiles/profile.h"
50 #include "chrome/browser/profiles/profile_io_data.h" 50 #include "chrome/browser/profiles/profile_io_data.h"
51 #include "chrome/browser/profiles/profile_manager.h" 51 #include "chrome/browser/profiles/profile_manager.h"
52 #include "chrome/browser/renderer_host/chrome_render_message_filter.h" 52 #include "chrome/browser/renderer_host/chrome_render_message_filter.h"
53 #include "chrome/browser/renderer_host/chrome_render_view_host_observer.h" 53 #include "chrome/browser/renderer_host/chrome_render_view_host_observer.h"
54 #include "chrome/browser/renderer_host/plugin_info_message_filter.h" 54 #include "chrome/browser/renderer_host/plugin_info_message_filter.h"
55 #include "chrome/browser/search_engines/search_provider_install_state_message_fi lter.h" 55 #include "chrome/browser/search_engines/search_provider_install_state_message_fi lter.h"
56 #include "chrome/browser/simple_message_box.h"
56 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h" 57 #include "chrome/browser/speech/chrome_speech_recognition_manager_delegate.h"
57 #include "chrome/browser/spellchecker/spellcheck_message_filter.h" 58 #include "chrome/browser/spellchecker/spellcheck_message_filter.h"
58 #include "chrome/browser/ssl/ssl_add_cert_handler.h" 59 #include "chrome/browser/ssl/ssl_add_cert_handler.h"
59 #include "chrome/browser/ssl/ssl_blocking_page.h" 60 #include "chrome/browser/ssl/ssl_blocking_page.h"
60 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h" 61 #include "chrome/browser/tab_contents/tab_contents_ssl_helper.h"
61 #include "chrome/browser/tab_contents/tab_util.h" 62 #include "chrome/browser/tab_contents/tab_util.h"
63 #include "chrome/browser/ui/browser.h"
64 #include "chrome/browser/ui/browser_list.h"
65 #include "chrome/browser/ui/browser_window.h"
62 #include "chrome/browser/ui/media_stream_infobar_delegate.h" 66 #include "chrome/browser/ui/media_stream_infobar_delegate.h"
63 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 67 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
64 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" 68 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
65 #include "chrome/browser/user_style_sheet_watcher.h" 69 #include "chrome/browser/user_style_sheet_watcher.h"
66 #include "chrome/common/child_process_logging.h" 70 #include "chrome/common/child_process_logging.h"
67 #include "chrome/common/chrome_constants.h" 71 #include "chrome/common/chrome_constants.h"
68 #include "chrome/common/chrome_switches.h" 72 #include "chrome/common/chrome_switches.h"
69 #include "chrome/common/extensions/extension.h" 73 #include "chrome/common/extensions/extension.h"
70 #include "chrome/common/extensions/extension_set.h" 74 #include "chrome/common/extensions/extension_set.h"
71 #include "chrome/common/logging_chrome.h" 75 #include "chrome/common/logging_chrome.h"
(...skipping 1522 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 1598
1595 #if defined(USE_NSS) 1599 #if defined(USE_NSS)
1596 crypto::CryptoModuleBlockingPasswordDelegate* 1600 crypto::CryptoModuleBlockingPasswordDelegate*
1597 ChromeContentBrowserClient::GetCryptoPasswordDelegate( 1601 ChromeContentBrowserClient::GetCryptoPasswordDelegate(
1598 const GURL& url) { 1602 const GURL& url) {
1599 return browser::NewCryptoModuleBlockingDialogDelegate( 1603 return browser::NewCryptoModuleBlockingDialogDelegate(
1600 browser::kCryptoModulePasswordKeygen, url.host()); 1604 browser::kCryptoModulePasswordKeygen, url.host());
1601 } 1605 }
1602 #endif 1606 #endif
1603 1607
1608 void ChromeContentBrowserClient::ShowYesNoBox(
1609 const string16& title,
1610 const string16& message,
1611 content::YesNoBoxResponseCallback* callback) {
1612 BrowserThread::ID id;
1613 DCHECK(BrowserThread::GetCurrentThreadIdentifier(&id) &&
1614 id == BrowserThread::UI);
1615 callback->Run(browser::ShowYesNoBox(
1616 BrowserList::GetLastActive()->window()->GetNativeHandle(), title,
1617 message));
1618 }
1619
1604 } // namespace chrome 1620 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698