| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 static const char Type[]; | 59 static const char Type[]; |
| 60 | 60 |
| 61 // BrowserPluginGuestDelegate overrides. | 61 // BrowserPluginGuestDelegate overrides. |
| 62 bool CanUseCrossProcessFrames() override; | 62 bool CanUseCrossProcessFrames() override; |
| 63 bool CanBeEmbeddedInsideCrossProcessFrames() override; | 63 bool CanBeEmbeddedInsideCrossProcessFrames() override; |
| 64 content::RenderWidgetHost* GetOwnerRenderWidgetHost() override; | 64 content::RenderWidgetHost* GetOwnerRenderWidgetHost() override; |
| 65 content::SiteInstance* GetOwnerSiteInstance() override; | 65 content::SiteInstance* GetOwnerSiteInstance() override; |
| 66 | 66 |
| 67 void SetEmbedderFrame(int process_id, int routing_id); | 67 void SetEmbedderFrame(int process_id, int routing_id); |
| 68 void DidAttachToOuterFrame(); |
| 68 | 69 |
| 69 protected: | 70 protected: |
| 70 explicit MimeHandlerViewGuest(content::WebContents* owner_web_contents); | 71 explicit MimeHandlerViewGuest(content::WebContents* owner_web_contents); |
| 71 ~MimeHandlerViewGuest() override; | 72 ~MimeHandlerViewGuest() override; |
| 72 | 73 |
| 73 private: | 74 private: |
| 74 friend class TestMimeHandlerViewGuest; | 75 friend class TestMimeHandlerViewGuest; |
| 75 | 76 |
| 76 // GuestViewBase implementation. | 77 // GuestViewBase implementation. |
| 77 const char* GetAPINamespace() const final; | 78 const char* GetAPINamespace() const final; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 int embedder_frame_process_id_; | 111 int embedder_frame_process_id_; |
| 111 int embedder_frame_routing_id_; | 112 int embedder_frame_routing_id_; |
| 112 int embedder_widget_routing_id_; | 113 int embedder_widget_routing_id_; |
| 113 | 114 |
| 114 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); | 115 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); |
| 115 }; | 116 }; |
| 116 | 117 |
| 117 } // namespace extensions | 118 } // namespace extensions |
| 118 | 119 |
| 119 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE
ST_H_ | 120 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE
ST_H_ |
| OLD | NEW |