Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Side by Side Diff: chrome/browser/extensions/api/guest_view/guest_view_internal_api.h

Issue 336283002: Remove GuestWebContentsCreated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simplify_creation
Patch Set: Fixed lifetime Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 extensions { 10 namespace extensions {
11 11
12 class GuestViewInternalAllocateInstanceIdFunction 12 class GuestViewInternalCreateGuestFunction : public AsyncExtensionFunction {
13 : public AsyncExtensionFunction {
14 public: 13 public:
15 DECLARE_EXTENSION_FUNCTION("guestViewInternal.allocateInstanceId", 14 DECLARE_EXTENSION_FUNCTION("guestViewInternal.createGuest",
16 GUESTVIEWINTERNAL_ALLOCATEINSTANCEID); 15 GUESTVIEWINTERNAL_CREATEGUEST);
17 GuestViewInternalAllocateInstanceIdFunction(); 16 GuestViewInternalCreateGuestFunction();
18 17
19 protected: 18 protected:
20 virtual ~GuestViewInternalAllocateInstanceIdFunction() {} 19 virtual ~GuestViewInternalCreateGuestFunction() {}
21 virtual bool RunAsync() OVERRIDE FINAL; 20 virtual bool RunAsync() OVERRIDE FINAL;
22 21
23 private: 22 private:
24 DISALLOW_COPY_AND_ASSIGN(GuestViewInternalAllocateInstanceIdFunction); 23 DISALLOW_COPY_AND_ASSIGN(GuestViewInternalCreateGuestFunction);
25 }; 24 };
26 25
27 } // namespace extensions 26 } // namespace extensions
28 27
29 #endif // CHROME_BROWSER_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_ 28 #endif // CHROME_BROWSER_EXTENSIONS_API_GUEST_VIEW_GUEST_VIEW_INTERNAL_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698