OLD | NEW |
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 15 matching lines...) Expand all Loading... |
26 class RenderViewHost; | 26 class RenderViewHost; |
27 class ResourceDispatcherHost; | 27 class ResourceDispatcherHost; |
28 class SkBitmap; | 28 class SkBitmap; |
29 struct WebPreferences; | 29 struct WebPreferences; |
30 | 30 |
31 namespace content { | 31 namespace content { |
32 class AccessTokenStore; | 32 class AccessTokenStore; |
33 class BrowserMainParts; | 33 class BrowserMainParts; |
34 class RenderProcessHost; | 34 class RenderProcessHost; |
35 class SiteInstance; | 35 class SiteInstance; |
36 class SpeechInputManagerDelegate; | 36 class SpeechRecognitionManagerDelegate; |
37 class WebContents; | 37 class WebContents; |
38 class WebContentsView; | 38 class WebContentsView; |
39 struct MainFunctionParams; | 39 struct MainFunctionParams; |
40 struct ShowDesktopNotificationHostMsgParams; | 40 struct ShowDesktopNotificationHostMsgParams; |
41 } | 41 } |
42 | 42 |
43 namespace crypto { | 43 namespace crypto { |
44 class CryptoModuleBlockingPasswordDelegate; | 44 class CryptoModuleBlockingPasswordDelegate; |
45 } | 45 } |
46 | 46 |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 // Returns a title string to use in the task manager for a process host with | 309 // Returns a title string to use in the task manager for a process host with |
310 // the given URL, or the empty string to fall back to the default logic. | 310 // the given URL, or the empty string to fall back to the default logic. |
311 // This is called on the IO thread. | 311 // This is called on the IO thread. |
312 virtual std::string GetWorkerProcessTitle( | 312 virtual std::string GetWorkerProcessTitle( |
313 const GURL& url, content::ResourceContext* context) = 0; | 313 const GURL& url, content::ResourceContext* context) = 0; |
314 | 314 |
315 // Notifies the embedder that the ResourceDispatcherHost has been created. | 315 // Notifies the embedder that the ResourceDispatcherHost has been created. |
316 // This is when it can optionally add a delegate or ResourceQueueDelegates. | 316 // This is when it can optionally add a delegate or ResourceQueueDelegates. |
317 virtual void ResourceDispatcherHostCreated() = 0; | 317 virtual void ResourceDispatcherHostCreated() = 0; |
318 | 318 |
319 // Allows the embedder to return a delegate for the SpeechInputManager. The | 319 // Allows the embedder to return a delegate for the SpeechRecognitionManager. |
320 // delegate will be owned by the manager. It's valid to return NULL. | 320 // The delegate will be owned by the manager. It's valid to return NULL. |
321 virtual SpeechInputManagerDelegate* GetSpeechInputManagerDelegate() = 0; | 321 virtual SpeechRecognitionManagerDelegate* |
| 322 GetSpeechRecognitionManagerDelegate() = 0; |
322 | 323 |
323 // Getters for common objects. | 324 // Getters for common objects. |
324 virtual ui::Clipboard* GetClipboard() = 0; | 325 virtual ui::Clipboard* GetClipboard() = 0; |
325 virtual MHTMLGenerationManager* GetMHTMLGenerationManager() = 0; | 326 virtual MHTMLGenerationManager* GetMHTMLGenerationManager() = 0; |
326 virtual net::NetLog* GetNetLog() = 0; | 327 virtual net::NetLog* GetNetLog() = 0; |
327 | 328 |
328 // Creates a new AccessTokenStore for gelocation. | 329 // Creates a new AccessTokenStore for gelocation. |
329 virtual AccessTokenStore* CreateAccessTokenStore() = 0; | 330 virtual AccessTokenStore* CreateAccessTokenStore() = 0; |
330 | 331 |
331 // Returns true if fast shutdown is possible. | 332 // Returns true if fast shutdown is possible. |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 // This is called on a worker thread. | 383 // This is called on a worker thread. |
383 virtual | 384 virtual |
384 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 385 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
385 const GURL& url) = 0; | 386 const GURL& url) = 0; |
386 #endif | 387 #endif |
387 }; | 388 }; |
388 | 389 |
389 } // namespace content | 390 } // namespace content |
390 | 391 |
391 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 392 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |