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 |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 | 257 |
258 // Clears browser cookies. | 258 // Clears browser cookies. |
259 virtual void ClearCookies(RenderViewHost* rvh) = 0; | 259 virtual void ClearCookies(RenderViewHost* rvh) = 0; |
260 | 260 |
261 // Asks the user for the path to save a page. The embedder calls the tab's | 261 // Asks the user for the path to save a page. The embedder calls the tab's |
262 // SavePackage::OnPathPicked to give the answer. | 262 // SavePackage::OnPathPicked to give the answer. |
263 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package, | 263 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package, |
264 const FilePath& suggested_path, | 264 const FilePath& suggested_path, |
265 bool can_save_as_complete) = 0; | 265 bool can_save_as_complete) = 0; |
266 | 266 |
| 267 // Puts the browser into fullscreen mode. |
| 268 virtual void EnterFullscreenMode() = 0; |
| 269 |
| 270 // Makes the browser exit fullscreen mode. |
| 271 virtual void ExitFullscreenMode() = 0; |
267 | 272 |
268 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 273 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
269 // Can return an optional fd for crash handling, otherwise returns -1. | 274 // Can return an optional fd for crash handling, otherwise returns -1. |
270 virtual int GetCrashSignalFD(const std::string& process_type) = 0; | 275 virtual int GetCrashSignalFD(const std::string& process_type) = 0; |
271 #endif | 276 #endif |
272 | 277 |
273 #if defined(USE_NSS) | 278 #if defined(USE_NSS) |
274 // Return a delegate to authenticate and unlock |module|. | 279 // Return a delegate to authenticate and unlock |module|. |
275 // This is called on a worker thread. | 280 // This is called on a worker thread. |
276 virtual | 281 virtual |
277 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 282 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
278 const GURL& url) = 0; | 283 const GURL& url) = 0; |
279 #endif | 284 #endif |
280 }; | 285 }; |
281 | 286 |
282 } // namespace content | 287 } // namespace content |
283 | 288 |
284 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 289 #endif // CONTENT_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |