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

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

Issue 2967007: Disable outdated plugins, block non-sandboxed plugins. (Closed)
Patch Set: '' 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 // Notification from the renderer that a plugin instance has crashed. 227 // Notification from the renderer that a plugin instance has crashed.
228 // 228 //
229 // BrowserIntegration isn't necessarily the best place for this, if you 229 // BrowserIntegration isn't necessarily the best place for this, if you
230 // need to implement this function somewhere that doesn't need any other 230 // need to implement this function somewhere that doesn't need any other
231 // BrowserIntegration callbacks, feel free to move it elsewhere. 231 // BrowserIntegration callbacks, feel free to move it elsewhere.
232 virtual void OnCrashedPlugin(const FilePath& plugin_path) = 0; 232 virtual void OnCrashedPlugin(const FilePath& plugin_path) = 0;
233 233
234 // Notification that a worker process has crashed. 234 // Notification that a worker process has crashed.
235 virtual void OnCrashedWorker() = 0; 235 virtual void OnCrashedWorker() = 0;
236 236
237 virtual void OnDisabledOutdatedPlugin(const string16& name,
238 const GURL& update_url) = 0;
239
237 // Notification that a request for install info has completed. 240 // Notification that a request for install info has completed.
238 virtual void OnDidGetApplicationInfo( 241 virtual void OnDidGetApplicationInfo(
239 int32 page_id, 242 int32 page_id,
240 const webkit_glue::WebApplicationInfo& app_info) = 0; 243 const webkit_glue::WebApplicationInfo& app_info) = 0;
241 244
242 // Notification that the contents of the page has been loaded. 245 // Notification that the contents of the page has been loaded.
243 virtual void OnPageContents(const GURL& url, 246 virtual void OnPageContents(const GURL& url,
244 int renderer_process_id, 247 int renderer_process_id,
245 int32 page_id, 248 int32 page_id,
246 const string16& contents, 249 const string16& contents,
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 // Interface for forwarding bookmark drag and drop to extenstions. 489 // Interface for forwarding bookmark drag and drop to extenstions.
487 490
488 class BookmarkDrag { 491 class BookmarkDrag {
489 public: 492 public:
490 virtual void OnDragEnter(const BookmarkDragData& data) = 0; 493 virtual void OnDragEnter(const BookmarkDragData& data) = 0;
491 virtual void OnDragOver(const BookmarkDragData& data) = 0; 494 virtual void OnDragOver(const BookmarkDragData& data) = 0;
492 virtual void OnDragLeave(const BookmarkDragData& data) = 0; 495 virtual void OnDragLeave(const BookmarkDragData& data) = 0;
493 virtual void OnDrop(const BookmarkDragData& data) = 0; 496 virtual void OnDrop(const BookmarkDragData& data) = 0;
494 }; 497 };
495 498
499 class BlockedPlugin {
500 public:
501 virtual void OnNonSandboxedPluginBlocked(const string16& name) = 0;
502 virtual void OnBlockedPluginLoaded() = 0;
503 };
504
496 // --------------------------------------------------------------------------- 505 // ---------------------------------------------------------------------------
497 506
498 // Returns the current delegate associated with a feature. May return NULL if 507 // Returns the current delegate associated with a feature. May return NULL if
499 // there is no corresponding delegate. 508 // there is no corresponding delegate.
500 virtual View* GetViewDelegate(); 509 virtual View* GetViewDelegate();
501 virtual RendererManagement* GetRendererManagementDelegate(); 510 virtual RendererManagement* GetRendererManagementDelegate();
502 virtual BrowserIntegration* GetBrowserIntegrationDelegate(); 511 virtual BrowserIntegration* GetBrowserIntegrationDelegate();
503 virtual Resource* GetResourceDelegate(); 512 virtual Resource* GetResourceDelegate();
504 virtual ContentSettings* GetContentSettingsDelegate(); 513 virtual ContentSettings* GetContentSettingsDelegate();
505 virtual Save* GetSaveDelegate(); 514 virtual Save* GetSaveDelegate();
506 virtual Printing* GetPrintingDelegate(); 515 virtual Printing* GetPrintingDelegate();
507 virtual FavIcon* GetFavIconDelegate(); 516 virtual FavIcon* GetFavIconDelegate();
508 virtual Autocomplete* GetAutocompleteDelegate(); 517 virtual Autocomplete* GetAutocompleteDelegate();
509 virtual AutoFill* GetAutoFillDelegate(); 518 virtual AutoFill* GetAutoFillDelegate();
510 virtual BookmarkDrag* GetBookmarkDragDelegate(); 519 virtual BookmarkDrag* GetBookmarkDragDelegate();
520 virtual BlockedPlugin* GetBlockedPluginDelegate();
511 521
512 // Return the delegate for registering RenderViewHosts for automation resource 522 // Return the delegate for registering RenderViewHosts for automation resource
513 // routing. 523 // routing.
514 virtual AutomationResourceRoutingDelegate* 524 virtual AutomationResourceRoutingDelegate*
515 GetAutomationResourceRoutingDelegate(); 525 GetAutomationResourceRoutingDelegate();
516 526
517 // Gets the URL that is currently being displayed, if there is one. 527 // Gets the URL that is currently being displayed, if there is one.
518 virtual const GURL& GetURL() const; 528 virtual const GURL& GetURL() const;
519 529
520 // Return this object cast to a TabContents, if it is one. If the object is 530 // Return this object cast to a TabContents, if it is one. If the object is
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 virtual bool IsExternalTabContainer() const; 713 virtual bool IsExternalTabContainer() const;
704 714
705 // The RenderView has inserted one css file into page. 715 // The RenderView has inserted one css file into page.
706 virtual void DidInsertCSS() {} 716 virtual void DidInsertCSS() {}
707 717
708 // A different node in the page got focused. 718 // A different node in the page got focused.
709 virtual void FocusedNodeChanged() {} 719 virtual void FocusedNodeChanged() {}
710 }; 720 };
711 721
712 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 722 #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