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

Side by Side Diff: chrome/browser/renderer_host/render_view_host_delegate.h

Issue 3040034: Block non-sandboxed plugins. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: fix indentation; sync Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 public: 523 public:
524 virtual void OnDragEnter(const BookmarkDragData& data) = 0; 524 virtual void OnDragEnter(const BookmarkDragData& data) = 0;
525 virtual void OnDragOver(const BookmarkDragData& data) = 0; 525 virtual void OnDragOver(const BookmarkDragData& data) = 0;
526 virtual void OnDragLeave(const BookmarkDragData& data) = 0; 526 virtual void OnDragLeave(const BookmarkDragData& data) = 0;
527 virtual void OnDrop(const BookmarkDragData& data) = 0; 527 virtual void OnDrop(const BookmarkDragData& data) = 0;
528 528
529 protected: 529 protected:
530 virtual ~BookmarkDrag() {} 530 virtual ~BookmarkDrag() {}
531 }; 531 };
532 532
533 class BlockedPlugin {
534 public:
535 virtual void OnNonSandboxedPluginBlocked(const string16& name) = 0;
536 virtual void OnBlockedPluginLoaded() = 0;
537 };
538
533 // SSL ----------------------------------------------------------------------- 539 // SSL -----------------------------------------------------------------------
534 // Interface for UI and other RenderViewHost-specific interactions with SSL. 540 // Interface for UI and other RenderViewHost-specific interactions with SSL.
535 541
536 class SSL { 542 class SSL {
537 public: 543 public:
538 // Displays a dialog to select client certificates from |request_info|, 544 // Displays a dialog to select client certificates from |request_info|,
539 // returning them to |handler|. 545 // returning them to |handler|.
540 virtual void ShowClientCertificateRequestDialog( 546 virtual void ShowClientCertificateRequestDialog(
541 scoped_refptr<SSLClientAuthHandler> handler) = 0; 547 scoped_refptr<SSLClientAuthHandler> handler) = 0;
542 548
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 virtual RendererManagement* GetRendererManagementDelegate(); 585 virtual RendererManagement* GetRendererManagementDelegate();
580 virtual BrowserIntegration* GetBrowserIntegrationDelegate(); 586 virtual BrowserIntegration* GetBrowserIntegrationDelegate();
581 virtual Resource* GetResourceDelegate(); 587 virtual Resource* GetResourceDelegate();
582 virtual ContentSettings* GetContentSettingsDelegate(); 588 virtual ContentSettings* GetContentSettingsDelegate();
583 virtual Save* GetSaveDelegate(); 589 virtual Save* GetSaveDelegate();
584 virtual Printing* GetPrintingDelegate(); 590 virtual Printing* GetPrintingDelegate();
585 virtual FavIcon* GetFavIconDelegate(); 591 virtual FavIcon* GetFavIconDelegate();
586 virtual Autocomplete* GetAutocompleteDelegate(); 592 virtual Autocomplete* GetAutocompleteDelegate();
587 virtual AutoFill* GetAutoFillDelegate(); 593 virtual AutoFill* GetAutoFillDelegate();
588 virtual BookmarkDrag* GetBookmarkDragDelegate(); 594 virtual BookmarkDrag* GetBookmarkDragDelegate();
595 virtual BlockedPlugin* GetBlockedPluginDelegate();
589 virtual SSL* GetSSLDelegate(); 596 virtual SSL* GetSSLDelegate();
590 597
591 // Return the delegate for registering RenderViewHosts for automation resource 598 // Return the delegate for registering RenderViewHosts for automation resource
592 // routing. 599 // routing.
593 virtual AutomationResourceRoutingDelegate* 600 virtual AutomationResourceRoutingDelegate*
594 GetAutomationResourceRoutingDelegate(); 601 GetAutomationResourceRoutingDelegate();
595 602
596 // Gets the URL that is currently being displayed, if there is one. 603 // Gets the URL that is currently being displayed, if there is one.
597 virtual const GURL& GetURL() const; 604 virtual const GURL& GetURL() const;
598 605
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 virtual void FocusedNodeChanged() {} 795 virtual void FocusedNodeChanged() {}
789 796
790 // The content being displayed is a PDF. 797 // The content being displayed is a PDF.
791 virtual void SetDisplayingPDFContent() {} 798 virtual void SetDisplayingPDFContent() {}
792 799
793 protected: 800 protected:
794 virtual ~RenderViewHostDelegate() {} 801 virtual ~RenderViewHostDelegate() {}
795 }; 802 };
796 803
797 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 804 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_view_host.cc ('k') | chrome/browser/renderer_host/render_view_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698