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 "extensions/browser/extension_function_dispatcher.h" | 8 #include "extensions/browser/extension_function_dispatcher.h" |
9 #include "extensions/browser/guest_view/guest_view.h" | 9 #include "extensions/browser/guest_view/guest_view.h" |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const content::NativeWebKeyboardEvent& event) override; | 52 const content::NativeWebKeyboardEvent& event) override; |
53 void FindReply(content::WebContents* web_contents, | 53 void FindReply(content::WebContents* web_contents, |
54 int request_id, | 54 int request_id, |
55 int number_of_matches, | 55 int number_of_matches, |
56 const gfx::Rect& selection_rect, | 56 const gfx::Rect& selection_rect, |
57 int active_match_ordinal, | 57 int active_match_ordinal, |
58 bool final_update) override; | 58 bool final_update) override; |
59 bool SaveFrame(const GURL& url, const content::Referrer& referrer) override; | 59 bool SaveFrame(const GURL& url, const content::Referrer& referrer) override; |
60 | 60 |
61 // content::WebContentsObserver implementation. | 61 // content::WebContentsObserver implementation. |
| 62 void DocumentOnLoadCompletedInMainFrame() override; |
62 bool OnMessageReceived(const IPC::Message& message) override; | 63 bool OnMessageReceived(const IPC::Message& message) override; |
63 | 64 |
64 private: | 65 private: |
65 MimeHandlerViewGuest(content::BrowserContext* browser_context, | 66 MimeHandlerViewGuest(content::BrowserContext* browser_context, |
66 content::WebContents* owner_web_contents, | 67 content::WebContents* owner_web_contents, |
67 int guest_instance_id); | 68 int guest_instance_id); |
68 ~MimeHandlerViewGuest() override; | 69 ~MimeHandlerViewGuest() override; |
69 | 70 |
70 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 71 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
71 | 72 |
72 scoped_ptr<MimeHandlerViewGuestDelegate> delegate_; | 73 scoped_ptr<MimeHandlerViewGuestDelegate> delegate_; |
73 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 74 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
74 GURL content_url_; | 75 GURL content_url_; |
75 | 76 |
76 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); | 77 DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuest); |
77 }; | 78 }; |
78 | 79 |
79 } // namespace extensions | 80 } // namespace extensions |
80 | 81 |
81 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE
ST_H_ | 82 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUE
ST_H_ |
OLD | NEW |