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

Unified Diff: third_party/WebKit/public/web/WebFrame.h

Issue 1407163002: Add feature use counting for window.external.AddSearchProvider (Blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: usecounter Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/public/web/WebFrame.h
diff --git a/third_party/WebKit/public/web/WebFrame.h b/third_party/WebKit/public/web/WebFrame.h
index ee3a1b42d12eff522d8215da2f6f4b6c8d6d71c3..0f4077dd0e8facc89d07f6411ebbedfa33f6338a 100644
--- a/third_party/WebKit/public/web/WebFrame.h
+++ b/third_party/WebKit/public/web/WebFrame.h
@@ -118,6 +118,11 @@ public:
TextGranularityLast = WordGranularity,
};
+ enum Feature {
+ ExternalAddSearchProvider = 0,
+ ExternalIsSearchProviderInstalled,
+ };
+
// Returns the number of live WebFrame objects, used for leak checking.
BLINK_EXPORT static int instanceCount();
@@ -696,6 +701,8 @@ public:
#endif
#endif
+ virtual void countFeatureUse(Feature) = 0;
+
protected:
explicit WebFrame(WebTreeScopeType);
virtual ~WebFrame();
« chrome/renderer/external_extension.cc ('K') | « third_party/WebKit/Source/web/WebRemoteFrameImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698