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_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ |
7 | 7 |
8 #include "extensions/browser/extension_function.h" | 8 #include "extensions/browser/extension_function.h" |
9 | 9 |
| 10 namespace content { |
| 11 class WebContents; |
| 12 } // namespace content |
| 13 |
10 namespace extensions { | 14 namespace extensions { |
11 | 15 |
12 class GuestViewInternalCreateGuestFunction : public AsyncExtensionFunction { | 16 class GuestViewInternalCreateGuestFunction : public AsyncExtensionFunction { |
13 public: | 17 public: |
14 DECLARE_EXTENSION_FUNCTION("guestViewInternal.createGuest", | 18 DECLARE_EXTENSION_FUNCTION("guestViewInternal.createGuest", |
15 GUESTVIEWINTERNAL_CREATEGUEST); | 19 GUESTVIEWINTERNAL_CREATEGUEST); |
16 GuestViewInternalCreateGuestFunction(); | 20 GuestViewInternalCreateGuestFunction(); |
17 | 21 |
18 protected: | 22 protected: |
19 virtual ~GuestViewInternalCreateGuestFunction() {} | 23 virtual ~GuestViewInternalCreateGuestFunction() {} |
20 virtual bool RunAsync() OVERRIDE FINAL; | 24 virtual bool RunAsync() OVERRIDE FINAL; |
21 | 25 |
22 private: | 26 private: |
23 void CreateGuestCallback(content::WebContents* guest_web_contents); | 27 void CreateGuestCallback(content::WebContents* guest_web_contents); |
| 28 |
24 DISALLOW_COPY_AND_ASSIGN(GuestViewInternalCreateGuestFunction); | 29 DISALLOW_COPY_AND_ASSIGN(GuestViewInternalCreateGuestFunction); |
25 }; | 30 }; |
26 | 31 |
27 } // namespace extensions | 32 } // namespace extensions |
28 | 33 |
29 #endif // CHROME_BROWSER_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ | 34 #endif // CHROME_BROWSER_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ |
OLD | NEW |