| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 6 #define CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/callback_old.h" | 11 #include "base/callback_old.h" |
| 12 #include "content/common/content_client.h" | 12 #include "content/common/content_client.h" |
| 13 #include "content/common/window_container_type.h" | 13 #include "content/common/window_container_type.h" |
| 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" | 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNotificationPresen
ter.h" |
| 15 | 15 |
| 16 class BrowserRenderProcessHost; | 16 class BrowserRenderProcessHost; |
| 17 class BrowserURLHandler; | 17 class BrowserURLHandler; |
| 18 class CommandLine; | 18 class CommandLine; |
| 19 class FilePath; | 19 class FilePath; |
| 20 class GURL; | 20 class GURL; |
| 21 class PluginProcessHost; | 21 class PluginProcessHost; |
| 22 class Profile; | 22 class Profile; |
| 23 class QuotaPermissionContext; | 23 class QuotaPermissionContext; |
| 24 class RenderViewHost; | 24 class RenderViewHost; |
| 25 class ResourceDispatcherHost; | 25 class ResourceDispatcherHost; |
| 26 class SSLCertErrorHandler; | 26 class SSLCertErrorHandler; |
| 27 class SSLClientAuthHandler; | 27 class SSLClientAuthHandler; |
| 28 class SavePackage; |
| 28 class SkBitmap; | 29 class SkBitmap; |
| 29 class TabContents; | 30 class TabContents; |
| 30 class WorkerProcessHost; | 31 class WorkerProcessHost; |
| 31 struct DesktopNotificationHostMsg_Show_Params; | 32 struct DesktopNotificationHostMsg_Show_Params; |
| 32 struct WebPreferences; | 33 struct WebPreferences; |
| 33 | 34 |
| 34 namespace crypto { | 35 namespace crypto { |
| 35 class CryptoModuleBlockingPasswordDelegate; | 36 class CryptoModuleBlockingPasswordDelegate; |
| 36 } | 37 } |
| 37 | 38 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 // Notifies that BrowserURLHandler has been created, so that the embedder can | 248 // Notifies that BrowserURLHandler has been created, so that the embedder can |
| 248 // optionally add their own handlers. | 249 // optionally add their own handlers. |
| 249 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) = 0; | 250 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) = 0; |
| 250 | 251 |
| 251 // Clears browser cache. | 252 // Clears browser cache. |
| 252 virtual void ClearCache(RenderViewHost* rvh) = 0; | 253 virtual void ClearCache(RenderViewHost* rvh) = 0; |
| 253 | 254 |
| 254 // Clears browser cookies. | 255 // Clears browser cookies. |
| 255 virtual void ClearCookies(RenderViewHost* rvh) = 0; | 256 virtual void ClearCookies(RenderViewHost* rvh) = 0; |
| 256 | 257 |
| 258 // Asks the user for the path to save a page. The embedder calls |
| 259 // SavePackage::OnPathPicked to give the answer. |
| 260 virtual void ChooseSavePath(SavePackage* save_package, |
| 261 const FilePath& suggested_path, |
| 262 bool can_save_as_complete) = 0; |
| 263 |
| 264 |
| 257 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 265 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 258 // Can return an optional fd for crash handling, otherwise returns -1. | 266 // Can return an optional fd for crash handling, otherwise returns -1. |
| 259 virtual int GetCrashSignalFD(const std::string& process_type) = 0; | 267 virtual int GetCrashSignalFD(const std::string& process_type) = 0; |
| 260 #endif | 268 #endif |
| 261 | 269 |
| 262 #if defined(USE_NSS) | 270 #if defined(USE_NSS) |
| 263 // Return a delegate to authenticate and unlock |module|. | 271 // Return a delegate to authenticate and unlock |module|. |
| 264 // This is called on a worker thread. | 272 // This is called on a worker thread. |
| 265 virtual | 273 virtual |
| 266 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 274 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 267 const GURL& url) = 0; | 275 const GURL& url) = 0; |
| 268 #endif | 276 #endif |
| 269 }; | 277 }; |
| 270 | 278 |
| 271 } // namespace content | 279 } // namespace content |
| 272 | 280 |
| 273 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 281 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |