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

Side by Side Diff: content/public/browser/content_browser_client.h

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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 class SpeechInputManagerDelegate; 70 class SpeechInputManagerDelegate;
71 class WebContents; 71 class WebContents;
72 class WebContentsView; 72 class WebContentsView;
73 class WebUIControllerFactory; 73 class WebUIControllerFactory;
74 struct MainFunctionParams; 74 struct MainFunctionParams;
75 struct ShowDesktopNotificationHostMsgParams; 75 struct ShowDesktopNotificationHostMsgParams;
76 76
77 typedef base::Callback< void(const content::MediaStreamDevices&) > 77 typedef base::Callback< void(const content::MediaStreamDevices&) >
78 MediaResponseCallback; 78 MediaResponseCallback;
79 79
80 typedef base::Callback< void(const bool&) > YesNoBoxResponseCallback;
81
80 // Embedder API (or SPI) for participating in browser logic, to be implemented 82 // Embedder API (or SPI) for participating in browser logic, to be implemented
81 // by the client of the content browser. See ChromeContentBrowserClient for the 83 // by the client of the content browser. See ChromeContentBrowserClient for the
82 // principal implementation. The methods are assumed to be called on the UI 84 // principal implementation. The methods are assumed to be called on the UI
83 // thread unless otherwise specified. Use this "escape hatch" sparingly, to 85 // thread unless otherwise specified. Use this "escape hatch" sparingly, to
84 // avoid the embedder interface ballooning and becoming very specific to Chrome. 86 // avoid the embedder interface ballooning and becoming very specific to Chrome.
85 // (Often, the call out to the client can happen in a different part of the code 87 // (Often, the call out to the client can happen in a different part of the code
86 // that either already has a hook out to the embedder, or calls out to one of 88 // that either already has a hook out to the embedder, or calls out to one of
87 // the observer interfaces.) 89 // the observer interfaces.)
88 class ContentBrowserClient { 90 class ContentBrowserClient {
89 public: 91 public:
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 virtual const wchar_t* GetResourceDllName() = 0; 400 virtual const wchar_t* GetResourceDllName() = 0;
399 #endif 401 #endif
400 402
401 #if defined(USE_NSS) 403 #if defined(USE_NSS)
402 // Return a delegate to authenticate and unlock |module|. 404 // Return a delegate to authenticate and unlock |module|.
403 // This is called on a worker thread. 405 // This is called on a worker thread.
404 virtual 406 virtual
405 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 407 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
406 const GURL& url) = 0; 408 const GURL& url) = 0;
407 #endif 409 #endif
410
411 // Shows a yes/no box to ask for the user's permission with the specified
412 // message and title. The user's response is sent via |callback|.
413 virtual void ShowYesNoBox(const string16& title,
Avi (use Gerrit) 2012/03/12 14:45:30 I'm not that familiar with ppapi; how much UI does
414 const string16& message,
415 YesNoBoxResponseCallback* callback) {}
408 }; 416 };
409 417
410 } // namespace content 418 } // namespace content
411 419
412 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 420 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698