OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_H_ | 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_H_ |
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_H_ | 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "extensions/browser/extension_function_dispatcher.h" | 9 #include "extensions/browser/extension_function_dispatcher.h" |
10 #include "extensions/browser/guest_view/extension_view/extension_view_guest_dele
gate.h" | 10 #include "extensions/browser/guest_view/extension_view/extension_view_guest_dele
gate.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 // GuestViewBase implementation. | 31 // GuestViewBase implementation. |
32 bool CanRunInDetachedState() const override; | 32 bool CanRunInDetachedState() const override; |
33 void CreateWebContents(const base::DictionaryValue& create_params, | 33 void CreateWebContents(const base::DictionaryValue& create_params, |
34 const WebContentsCreatedCallback& callback) override; | 34 const WebContentsCreatedCallback& callback) override; |
35 void DidInitialize(const base::DictionaryValue& create_params) override; | 35 void DidInitialize(const base::DictionaryValue& create_params) override; |
36 void DidAttachToEmbedder() override; | 36 void DidAttachToEmbedder() override; |
37 const char* GetAPINamespace() const override; | 37 const char* GetAPINamespace() const override; |
38 int GetTaskPrefix() const override; | 38 int GetTaskPrefix() const override; |
39 | 39 |
40 // content::WebContentsObserver implementation. | 40 // content::WebContentsObserver implementation. |
| 41 void DidCommitProvisionalLoadForFrame( |
| 42 content::RenderFrameHost* render_frame_host, |
| 43 const GURL& url, |
| 44 ui::PageTransition transition_type) override; |
| 45 void DidNavigateMainFrame( |
| 46 const content::LoadCommittedDetails& details, |
| 47 const content::FrameNavigateParams& params) override; |
41 bool OnMessageReceived(const IPC::Message& message) override; | 48 bool OnMessageReceived(const IPC::Message& message) override; |
42 | 49 |
43 private: | 50 private: |
44 ExtensionViewGuest(content::WebContents* owner_web_contents); | 51 ExtensionViewGuest(content::WebContents* owner_web_contents); |
45 ~ExtensionViewGuest() override; | 52 ~ExtensionViewGuest() override; |
46 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 53 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
47 | 54 |
48 // Applies attributes to the extensionview. | 55 // Applies attributes to the extensionview. |
49 void ApplyAttributes(const base::DictionaryValue& params); | 56 void ApplyAttributes(const base::DictionaryValue& params); |
50 | 57 |
51 scoped_ptr<extensions::ExtensionFunctionDispatcher> | 58 scoped_ptr<extensions::ExtensionFunctionDispatcher> |
52 extension_function_dispatcher_; | 59 extension_function_dispatcher_; |
53 scoped_ptr<extensions::ExtensionViewGuestDelegate> | 60 scoped_ptr<extensions::ExtensionViewGuestDelegate> |
54 extension_view_guest_delegate_; | 61 extension_view_guest_delegate_; |
55 GURL view_page_; | 62 GURL view_page_; |
| 63 GURL extension_url_; |
56 | 64 |
57 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGuest); | 65 DISALLOW_COPY_AND_ASSIGN(ExtensionViewGuest); |
58 }; | 66 }; |
59 | 67 |
60 } // namespace extensions | 68 } // namespace extensions |
61 | 69 |
62 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_H_ | 70 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_EXTENSION_VIEW_EXTENSION_VIEW_GUEST_H_ |
OLD | NEW |