| 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> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
| 14 #include "content/public/common/content_client.h" | 14 #include "content/public/common/content_client.h" |
| 15 #include "content/public/common/media_stream_request.h" | 15 #include "content/public/common/media_stream_request.h" |
| 16 #include "content/public/common/window_container_type.h" | 16 #include "content/public/common/window_container_type.h" |
| 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" | 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" |
| 18 | 18 |
| 19 class CommandLine; | 19 class CommandLine; |
| 20 class FilePath; | 20 class FilePath; |
| 21 class GURL; | 21 class GURL; |
| 22 class PluginProcessHost; | 22 class PluginProcessHost; |
| 23 class ResourceDispatcherHost; | |
| 24 | 23 |
| 25 namespace webkit_glue { | 24 namespace webkit_glue { |
| 26 struct WebPreferences; | 25 struct WebPreferences; |
| 27 } | 26 } |
| 28 | 27 |
| 29 namespace crypto { | 28 namespace crypto { |
| 30 class CryptoModuleBlockingPasswordDelegate; | 29 class CryptoModuleBlockingPasswordDelegate; |
| 31 } | 30 } |
| 32 | 31 |
| 33 namespace gfx { | 32 namespace gfx { |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 int render_process_id, | 345 int render_process_id, |
| 347 bool* no_javascript_access); | 346 bool* no_javascript_access); |
| 348 | 347 |
| 349 // Returns a title string to use in the task manager for a process host with | 348 // Returns a title string to use in the task manager for a process host with |
| 350 // the given URL, or the empty string to fall back to the default logic. | 349 // the given URL, or the empty string to fall back to the default logic. |
| 351 // This is called on the IO thread. | 350 // This is called on the IO thread. |
| 352 virtual std::string GetWorkerProcessTitle(const GURL& url, | 351 virtual std::string GetWorkerProcessTitle(const GURL& url, |
| 353 ResourceContext* context); | 352 ResourceContext* context); |
| 354 | 353 |
| 355 // Notifies the embedder that the ResourceDispatcherHost has been created. | 354 // Notifies the embedder that the ResourceDispatcherHost has been created. |
| 356 // This is when it can optionally add a delegate or ResourceQueueDelegates. | 355 // This is when it can optionally add a delegate. |
| 357 virtual void ResourceDispatcherHostCreated() {} | 356 virtual void ResourceDispatcherHostCreated() {} |
| 358 | 357 |
| 359 // Allows the embedder to return a delegate for the SpeechRecognitionManager. | 358 // Allows the embedder to return a delegate for the SpeechRecognitionManager. |
| 360 // The delegate will be owned by the manager. It's valid to return NULL. | 359 // The delegate will be owned by the manager. It's valid to return NULL. |
| 361 virtual SpeechRecognitionManagerDelegate* | 360 virtual SpeechRecognitionManagerDelegate* |
| 362 GetSpeechRecognitionManagerDelegate(); | 361 GetSpeechRecognitionManagerDelegate(); |
| 363 | 362 |
| 364 // Getters for common objects. | 363 // Getters for common objects. |
| 365 virtual net::NetLog* GetNetLog(); | 364 virtual net::NetLog* GetNetLog(); |
| 366 | 365 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 // This is called on a worker thread. | 421 // This is called on a worker thread. |
| 423 virtual | 422 virtual |
| 424 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 423 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 425 const GURL& url); | 424 const GURL& url); |
| 426 #endif | 425 #endif |
| 427 }; | 426 }; |
| 428 | 427 |
| 429 } // namespace content | 428 } // namespace content |
| 430 | 429 |
| 431 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 430 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |