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

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

Issue 12041078: Clear the clipboard closing Incognito window (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Merge with master Created 7 years, 10 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
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 7
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 class QuotaPermissionContext; 61 class QuotaPermissionContext;
62 class RenderProcessHost; 62 class RenderProcessHost;
63 class RenderViewHost; 63 class RenderViewHost;
64 class RenderViewHostDelegateView; 64 class RenderViewHostDelegateView;
65 class ResourceContext; 65 class ResourceContext;
66 class SiteInstance; 66 class SiteInstance;
67 class SpeechRecognitionManagerDelegate; 67 class SpeechRecognitionManagerDelegate;
68 class WebContents; 68 class WebContents;
69 class WebContentsView; 69 class WebContentsView;
70 class WebContentsViewDelegate; 70 class WebContentsViewDelegate;
71 class WebRTCInternals;
72 class WebUIControllerFactory;
dcheng 2013/01/31 22:25:56 Are these two lines supposed to be part of this pa
vasilii 2013/02/01 17:25:08 No, this was improper manual merge.
73 struct ClipboardWriteCallbackParams;
71 struct MainFunctionParams; 74 struct MainFunctionParams;
72 struct ShowDesktopNotificationHostMsgParams; 75 struct ShowDesktopNotificationHostMsgParams;
73 76
74 // Embedder API (or SPI) for participating in browser logic, to be implemented 77 // Embedder API (or SPI) for participating in browser logic, to be implemented
75 // by the client of the content browser. See ChromeContentBrowserClient for the 78 // by the client of the content browser. See ChromeContentBrowserClient for the
76 // principal implementation. The methods are assumed to be called on the UI 79 // principal implementation. The methods are assumed to be called on the UI
77 // thread unless otherwise specified. Use this "escape hatch" sparingly, to 80 // thread unless otherwise specified. Use this "escape hatch" sparingly, to
78 // avoid the embedder interface ballooning and becoming very specific to Chrome. 81 // avoid the embedder interface ballooning and becoming very specific to Chrome.
79 // (Often, the call out to the client can happen in a different part of the code 82 // (Often, the call out to the client can happen in a different part of the code
80 // that either already has a hook out to the embedder, or calls out to one of 83 // that either already has a hook out to the embedder, or calls out to one of
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 440
438 // Returns true if renderer processes can use Pepper TCP/UDP sockets from 441 // Returns true if renderer processes can use Pepper TCP/UDP sockets from
439 // the given origin and connection type. 442 // the given origin and connection type.
440 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context, 443 virtual bool AllowPepperSocketAPI(BrowserContext* browser_context,
441 const GURL& url, 444 const GURL& url,
442 const SocketPermissionRequest& params); 445 const SocketPermissionRequest& params);
443 446
444 // Returns the directory containing hyphenation dictionaries. 447 // Returns the directory containing hyphenation dictionaries.
445 virtual FilePath GetHyphenDictionaryDirectory(); 448 virtual FilePath GetHyphenDictionaryDirectory();
446 449
450 // Modifies Clipboard::ObjectMap before writing if the write is from
451 // OffTheRecordProfile.
Jói 2013/02/01 11:31:20 This documentation is for the abstract embedder ca
vasilii 2013/02/01 17:25:08 Done.
452 virtual void BeforeWriteToClipboard(
453 const ClipboardWriteCallbackParams& params) {}
Jói 2013/02/01 11:31:20 Why a struct rather than just passing two separate
vasilii 2013/02/01 17:25:08 Clipboard::ObjectMap is a typedef. I didn't want t
454
447 #if defined(OS_POSIX) && !defined(OS_MACOSX) 455 #if defined(OS_POSIX) && !defined(OS_MACOSX)
448 // Populates |mappings| with all files that need to be mapped before launching 456 // Populates |mappings| with all files that need to be mapped before launching
449 // a child process. 457 // a child process.
450 virtual void GetAdditionalMappedFilesForChildProcess( 458 virtual void GetAdditionalMappedFilesForChildProcess(
451 const CommandLine& command_line, 459 const CommandLine& command_line,
452 int child_process_id, 460 int child_process_id,
453 std::vector<FileDescriptorInfo>* mappings) {} 461 std::vector<FileDescriptorInfo>* mappings) {}
454 #endif 462 #endif
455 463
456 #if defined(OS_WIN) 464 #if defined(OS_WIN)
457 // Returns the name of the dll that contains cursors and other resources. 465 // Returns the name of the dll that contains cursors and other resources.
458 virtual const wchar_t* GetResourceDllName(); 466 virtual const wchar_t* GetResourceDllName();
459 #endif 467 #endif
460 468
461 #if defined(USE_NSS) 469 #if defined(USE_NSS)
462 // Return a delegate to authenticate and unlock |module|. 470 // Return a delegate to authenticate and unlock |module|.
463 // This is called on a worker thread. 471 // This is called on a worker thread.
464 virtual 472 virtual
465 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( 473 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
466 const GURL& url); 474 const GURL& url);
467 #endif 475 #endif
468 }; 476 };
469 477
470 } // namespace content 478 } // namespace content
471 479
472 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 480 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698