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