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

Unified Diff: chrome/renderer/search_extension.h

Issue 3312017: Plumbs through window.chrome.setSuggestResult. (Closed)
Patch Set: more comments Created 10 years, 3 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: chrome/renderer/search_extension.h
diff --git a/chrome/renderer/search_extension.h b/chrome/renderer/search_extension.h
new file mode 100644
index 0000000000000000000000000000000000000000..6bd45bd7c92ad81f8679c7ca9346753b2619c250
--- /dev/null
+++ b/chrome/renderer/search_extension.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_RENDERER_SEARCH_EXTENSION_H_
+#define CHROME_RENDERER_SEARCH_EXTENSION_H_
+#pragma once
+
+namespace v8 {
+class Extension;
+}
+
+namespace extensions_v8 {
+
+class SearchExtension {
+ public:
+ // Returns the v8::Extension object handling search bindings. Returns null if
+ // match-preview is not enabled. Caller takes ownership of returned object.
+ static v8::Extension* Get();
+};
+
+} // namespace extensions_v8
+
+#endif // CHROME_RENDERER_SEARCH_EXTENSION_H_

Powered by Google App Engine
This is Rietveld 408576698