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

Side by Side Diff: chrome/browser/extensions/api/web_view/chrome_web_view_internal_api.h

Issue 2017113002: [Extensions] DCHECK that ExtensionFunctions respond (and only once) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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_WEB_VIEW_CHROME_WEB_VIEW_INTERNAL_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_CHROME_WEB_VIEW_INTERNAL_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_CHROME_WEB_VIEW_INTERNAL_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_CHROME_WEB_VIEW_INTERNAL_API_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "extensions/browser/api/guest_view/web_view/web_view_internal_api.h" 9 #include "extensions/browser/api/guest_view/web_view/web_view_internal_api.h"
10 #include "extensions/browser/extension_function.h" 10 #include "extensions/browser/extension_function.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 class ChromeWebViewInternalShowContextMenuFunction 87 class ChromeWebViewInternalShowContextMenuFunction
88 : public WebViewInternalExtensionFunction { 88 : public WebViewInternalExtensionFunction {
89 public: 89 public:
90 DECLARE_EXTENSION_FUNCTION("chromeWebViewInternal.showContextMenu", 90 DECLARE_EXTENSION_FUNCTION("chromeWebViewInternal.showContextMenu",
91 WEBVIEWINTERNAL_SHOWCONTEXTMENU); 91 WEBVIEWINTERNAL_SHOWCONTEXTMENU);
92 92
93 ChromeWebViewInternalShowContextMenuFunction(); 93 ChromeWebViewInternalShowContextMenuFunction();
94 94
95 protected: 95 protected:
96 ~ChromeWebViewInternalShowContextMenuFunction() override; 96 ~ChromeWebViewInternalShowContextMenuFunction() override;
97 97 ResponseAction Run() override;
98 private:
99 // WebViewInternalExtensionFunction implementation.
100 bool RunAsyncSafe(WebViewGuest* guest) override;
101 98
102 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewInternalShowContextMenuFunction); 99 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewInternalShowContextMenuFunction);
103 }; 100 };
104 101
105 } // namespace extensions 102 } // namespace extensions
106 103
107 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_CHROME_WEB_VIEW_INTERNAL_API_H _ 104 #endif // CHROME_BROWSER_EXTENSIONS_API_WEB_VIEW_CHROME_WEB_VIEW_INTERNAL_API_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698