| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 class MimeHandlerViewGuest : | 53 class MimeHandlerViewGuest : |
| 54 public guest_view::GuestView<MimeHandlerViewGuest> { | 54 public guest_view::GuestView<MimeHandlerViewGuest> { |
| 55 public: | 55 public: |
| 56 static guest_view::GuestViewBase* Create( | 56 static guest_view::GuestViewBase* Create( |
| 57 content::WebContents* owner_web_contents); | 57 content::WebContents* owner_web_contents); |
| 58 | 58 |
| 59 static const char Type[]; | 59 static const char Type[]; |
| 60 | 60 |
| 61 bool IsMimeHandlerViewGuest() override; |
| 62 |
| 61 protected: | 63 protected: |
| 62 explicit MimeHandlerViewGuest(content::WebContents* owner_web_contents); | 64 explicit MimeHandlerViewGuest(content::WebContents* owner_web_contents); |
| 63 ~MimeHandlerViewGuest() override; | 65 ~MimeHandlerViewGuest() override; |
| 64 | 66 |
| 65 private: | 67 private: |
| 66 friend class TestMimeHandlerViewGuest; | 68 friend class TestMimeHandlerViewGuest; |
| 67 | 69 |
| 68 // GuestViewBase implementation. | 70 // GuestViewBase implementation. |
| 69 const char* GetAPINamespace() const final; | 71 const char* GetAPINamespace() const final; |
| 70 int GetTaskPrefix() const final; | 72 int GetTaskPrefix() const final; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 97 std::unique_ptr<MimeHandlerViewGuestDelegate> delegate_; | 99 std::unique_ptr<MimeHandlerViewGuestDelegate> delegate_; |
| 98 std::unique_ptr<StreamContainer> stream_; | 100 std::unique_ptr<StreamContainer> stream_; |
| 99 std::string view_id_; | 101 std::string view_id_; |
| 100 | 102 |
| 101 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); | 103 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); |
| 102 }; | 104 }; |
| 103 | 105 |
| 104 } // namespace extensions | 106 } // namespace extensions |
| 105 | 107 |
| 106 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE
ST_H_ | 108 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE
ST_H_ |
| OLD | NEW |