OLD | NEW |
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 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/ref_counted.h" |
12 #include "base/string16.h" | 13 #include "base/string16.h" |
13 #include "chrome/common/content_settings_types.h" | 14 #include "chrome/common/content_settings_types.h" |
14 #include "chrome/common/translate_errors.h" | 15 #include "chrome/common/translate_errors.h" |
15 #include "chrome/common/view_types.h" | 16 #include "chrome/common/view_types.h" |
16 #include "chrome/common/window_container_type.h" | 17 #include "chrome/common/window_container_type.h" |
17 #include "net/base/load_states.h" | 18 #include "net/base/load_states.h" |
18 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h" | 19 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h" |
19 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" | 20 #include "third_party/WebKit/WebKit/chromium/public/WebPopupType.h" |
20 #include "webkit/glue/window_open_disposition.h" | 21 #include "webkit/glue/window_open_disposition.h" |
21 | 22 |
22 | 23 |
23 class AutomationResourceRoutingDelegate; | 24 class AutomationResourceRoutingDelegate; |
24 struct BookmarkDragData; | 25 struct BookmarkDragData; |
25 class BookmarkNode; | 26 class BookmarkNode; |
26 struct ContextMenuParams; | 27 struct ContextMenuParams; |
27 class FilePath; | 28 class FilePath; |
28 class GURL; | 29 class GURL; |
29 class ListValue; | 30 class ListValue; |
30 struct NativeWebKeyboardEvent; | 31 struct NativeWebKeyboardEvent; |
31 class NavigationEntry; | 32 class NavigationEntry; |
32 class OSExchangeData; | 33 class OSExchangeData; |
33 class Profile; | 34 class Profile; |
34 struct RendererPreferences; | 35 struct RendererPreferences; |
35 class RenderProcessHost; | 36 class RenderProcessHost; |
36 class RenderViewHost; | 37 class RenderViewHost; |
37 class ResourceRedirectDetails; | 38 class ResourceRedirectDetails; |
38 class ResourceRequestDetails; | 39 class ResourceRequestDetails; |
39 class SkBitmap; | 40 class SkBitmap; |
| 41 class SSLClientAuthHandler; |
40 class TabContents; | 42 class TabContents; |
41 struct ThumbnailScore; | 43 struct ThumbnailScore; |
42 struct ViewHostMsg_DidPrintPage_Params; | 44 struct ViewHostMsg_DidPrintPage_Params; |
43 struct ViewHostMsg_FrameNavigate_Params; | 45 struct ViewHostMsg_FrameNavigate_Params; |
44 struct ViewHostMsg_RunFileChooser_Params; | 46 struct ViewHostMsg_RunFileChooser_Params; |
45 struct WebDropData; | 47 struct WebDropData; |
46 class WebKeyboardEvent; | 48 class WebKeyboardEvent; |
47 struct WebPreferences; | 49 struct WebPreferences; |
48 | 50 |
49 namespace base { | 51 namespace base { |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 // Interface for forwarding bookmark drag and drop to extenstions. | 486 // Interface for forwarding bookmark drag and drop to extenstions. |
485 | 487 |
486 class BookmarkDrag { | 488 class BookmarkDrag { |
487 public: | 489 public: |
488 virtual void OnDragEnter(const BookmarkDragData& data) = 0; | 490 virtual void OnDragEnter(const BookmarkDragData& data) = 0; |
489 virtual void OnDragOver(const BookmarkDragData& data) = 0; | 491 virtual void OnDragOver(const BookmarkDragData& data) = 0; |
490 virtual void OnDragLeave(const BookmarkDragData& data) = 0; | 492 virtual void OnDragLeave(const BookmarkDragData& data) = 0; |
491 virtual void OnDrop(const BookmarkDragData& data) = 0; | 493 virtual void OnDrop(const BookmarkDragData& data) = 0; |
492 }; | 494 }; |
493 | 495 |
| 496 // SSL ----------------------------------------------------------------------- |
| 497 // Interface for UI and other RenderViewHost-specific interactions with SSL. |
| 498 |
| 499 class SSL { |
| 500 public: |
| 501 // Displays a dialog to select client certificates from |request_info|, |
| 502 // returning them to |handler|. |
| 503 virtual void ShowClientCertificateRequestDialog( |
| 504 scoped_refptr<SSLClientAuthHandler> handler) = 0; |
| 505 }; |
| 506 |
494 // --------------------------------------------------------------------------- | 507 // --------------------------------------------------------------------------- |
495 | 508 |
496 // Returns the current delegate associated with a feature. May return NULL if | 509 // Returns the current delegate associated with a feature. May return NULL if |
497 // there is no corresponding delegate. | 510 // there is no corresponding delegate. |
498 virtual View* GetViewDelegate(); | 511 virtual View* GetViewDelegate(); |
499 virtual RendererManagement* GetRendererManagementDelegate(); | 512 virtual RendererManagement* GetRendererManagementDelegate(); |
500 virtual BrowserIntegration* GetBrowserIntegrationDelegate(); | 513 virtual BrowserIntegration* GetBrowserIntegrationDelegate(); |
501 virtual Resource* GetResourceDelegate(); | 514 virtual Resource* GetResourceDelegate(); |
502 virtual ContentSettings* GetContentSettingsDelegate(); | 515 virtual ContentSettings* GetContentSettingsDelegate(); |
503 virtual Save* GetSaveDelegate(); | 516 virtual Save* GetSaveDelegate(); |
504 virtual Printing* GetPrintingDelegate(); | 517 virtual Printing* GetPrintingDelegate(); |
505 virtual FavIcon* GetFavIconDelegate(); | 518 virtual FavIcon* GetFavIconDelegate(); |
506 virtual Autocomplete* GetAutocompleteDelegate(); | 519 virtual Autocomplete* GetAutocompleteDelegate(); |
507 virtual AutoFill* GetAutoFillDelegate(); | 520 virtual AutoFill* GetAutoFillDelegate(); |
508 virtual BookmarkDrag* GetBookmarkDragDelegate(); | 521 virtual BookmarkDrag* GetBookmarkDragDelegate(); |
| 522 virtual SSL* GetSSLDelegate(); |
509 | 523 |
510 // Return the delegate for registering RenderViewHosts for automation resource | 524 // Return the delegate for registering RenderViewHosts for automation resource |
511 // routing. | 525 // routing. |
512 virtual AutomationResourceRoutingDelegate* | 526 virtual AutomationResourceRoutingDelegate* |
513 GetAutomationResourceRoutingDelegate(); | 527 GetAutomationResourceRoutingDelegate(); |
514 | 528 |
515 // Gets the URL that is currently being displayed, if there is one. | 529 // Gets the URL that is currently being displayed, if there is one. |
516 virtual const GURL& GetURL() const; | 530 virtual const GURL& GetURL() const; |
517 | 531 |
518 // Return this object cast to a TabContents, if it is one. If the object is | 532 // 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 Loading... |
701 virtual bool IsExternalTabContainer() const; | 715 virtual bool IsExternalTabContainer() const; |
702 | 716 |
703 // The RenderView has inserted one css file into page. | 717 // The RenderView has inserted one css file into page. |
704 virtual void DidInsertCSS() {} | 718 virtual void DidInsertCSS() {} |
705 | 719 |
706 // A different node in the page got focused. | 720 // A different node in the page got focused. |
707 virtual void FocusedNodeChanged() {} | 721 virtual void FocusedNodeChanged() {} |
708 }; | 722 }; |
709 | 723 |
710 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 724 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |