| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_
H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_
H_ |
| 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_
H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_
H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "components/guest_view/browser/guest_view.h" | 10 #include "components/guest_view/browser/guest_view.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 void DidInitialize(const base::DictionaryValue& create_params) final; | 74 void DidInitialize(const base::DictionaryValue& create_params) final; |
| 75 bool ShouldHandleFindRequestsForEmbedder() const final; | 75 bool ShouldHandleFindRequestsForEmbedder() const final; |
| 76 bool ZoomPropagatesFromEmbedderToGuest() const final; | 76 bool ZoomPropagatesFromEmbedderToGuest() const final; |
| 77 | 77 |
| 78 // WebContentsDelegate implementation. | 78 // WebContentsDelegate implementation. |
| 79 content::WebContents* OpenURLFromTab( | 79 content::WebContents* OpenURLFromTab( |
| 80 content::WebContents* source, | 80 content::WebContents* source, |
| 81 const content::OpenURLParams& params) final; | 81 const content::OpenURLParams& params) final; |
| 82 void NavigationStateChanged(content::WebContents* source, | 82 void NavigationStateChanged(content::WebContents* source, |
| 83 content::InvalidateTypes changed_flags) final; | 83 content::InvalidateTypes changed_flags) final; |
| 84 bool HandleContextMenu(const content::ContextMenuParams& params) final; | 84 bool HandleContextMenu(RenderFrameHost* render_frame_host, |
| 85 const content::ContextMenuParams& params) final; |
| 85 bool PreHandleGestureEvent(content::WebContents* source, | 86 bool PreHandleGestureEvent(content::WebContents* source, |
| 86 const blink::WebGestureEvent& event) final; | 87 const blink::WebGestureEvent& event) final; |
| 87 content::JavaScriptDialogManager* GetJavaScriptDialogManager( | 88 content::JavaScriptDialogManager* GetJavaScriptDialogManager( |
| 88 content::WebContents* source) final; | 89 content::WebContents* source) final; |
| 89 bool SaveFrame(const GURL& url, const content::Referrer& referrer) final; | 90 bool SaveFrame(const GURL& url, const content::Referrer& referrer) final; |
| 90 | 91 |
| 91 // content::WebContentsObserver implementation. | 92 // content::WebContentsObserver implementation. |
| 92 void DocumentOnLoadCompletedInMainFrame() final; | 93 void DocumentOnLoadCompletedInMainFrame() final; |
| 93 | 94 |
| 94 std::string view_id() const { return view_id_; } | 95 std::string view_id() const { return view_id_; } |
| 95 base::WeakPtr<StreamContainer> GetStream() const; | 96 base::WeakPtr<StreamContainer> GetStream() const; |
| 96 | 97 |
| 97 std::unique_ptr<MimeHandlerViewGuestDelegate> delegate_; | 98 std::unique_ptr<MimeHandlerViewGuestDelegate> delegate_; |
| 98 std::unique_ptr<StreamContainer> stream_; | 99 std::unique_ptr<StreamContainer> stream_; |
| 99 std::string view_id_; | 100 std::string view_id_; |
| 100 | 101 |
| 101 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); | 102 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace extensions | 105 } // namespace extensions |
| 105 | 106 |
| 106 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE
ST_H_ | 107 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE
ST_H_ |
| OLD | NEW |