| 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 CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ | 5 #ifndef CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ |
| 6 #define CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ | 6 #define CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ |
| 7 | 7 |
| 8 #include "base/id_map.h" | 8 #include "base/id_map.h" |
| 9 #include "extensions/browser/extension_function_dispatcher.h" | 9 #include "extensions/browser/extension_function_dispatcher.h" |
| 10 #include "extensions/browser/guest_view/guest_view.h" | 10 #include "extensions/browser/guest_view/guest_view.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 int guest_instance_id); | 59 int guest_instance_id); |
| 60 | 60 |
| 61 virtual ~AppViewGuest(); | 61 virtual ~AppViewGuest(); |
| 62 | 62 |
| 63 void OnRequest(const ExtensionHostMsg_Request_Params& params); | 63 void OnRequest(const ExtensionHostMsg_Request_Params& params); |
| 64 | 64 |
| 65 void CompleteCreateWebContents(const GURL& url, | 65 void CompleteCreateWebContents(const GURL& url, |
| 66 const Extension* guest_extension, | 66 const Extension* guest_extension, |
| 67 const WebContentsCreatedCallback& callback); | 67 const WebContentsCreatedCallback& callback); |
| 68 | 68 |
| 69 void LaunchAppAndFireEvent(const WebContentsCreatedCallback& callback, | 69 void LaunchAppAndFireEvent(scoped_ptr<base::DictionaryValue> data, |
| 70 const WebContentsCreatedCallback& callback, |
| 70 ExtensionHost* extension_host); | 71 ExtensionHost* extension_host); |
| 71 | 72 |
| 72 GURL url_; | 73 GURL url_; |
| 73 std::string guest_extension_id_; | 74 std::string guest_extension_id_; |
| 74 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; | 75 scoped_ptr<ExtensionFunctionDispatcher> extension_function_dispatcher_; |
| 75 | 76 |
| 76 // This is used to ensure pending tasks will not fire after this object is | 77 // This is used to ensure pending tasks will not fire after this object is |
| 77 // destroyed. | 78 // destroyed. |
| 78 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; | 79 base::WeakPtrFactory<AppViewGuest> weak_ptr_factory_; |
| 79 | 80 |
| 80 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); | 81 DISALLOW_COPY_AND_ASSIGN(AppViewGuest); |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 } // namespace extensions | 84 } // namespace extensions |
| 84 | 85 |
| 85 #endif // CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ | 86 #endif // CHROME_BROWSER_GUEST_VIEW_APP_VIEW_APP_VIEW_GUEST_H_ |
| OLD | NEW |