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

Unified Diff: content/public/renderer/chrome_object_extensions_utils.h

Issue 1385663002: [Contextual Search] Add Mojo-enabled API component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reset the Wrapper when the Frame goes away. Created 5 years 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: content/public/renderer/chrome_object_extensions_utils.h
diff --git a/content/public/renderer/chrome_object_extensions_utils.h b/content/public/renderer/chrome_object_extensions_utils.h
new file mode 100644
index 0000000000000000000000000000000000000000..22e799d9df8360061764c108d189e42bb84a5f66
--- /dev/null
+++ b/content/public/renderer/chrome_object_extensions_utils.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2014 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 CONTENT_PUBLIC_RENDERER_CHROME_OBJECT_EXTENSIONS_UTILS_H_
+#define CONTENT_PUBLIC_RENDERER_CHROME_OBJECT_EXTENSIONS_UTILS_H_
+
+#include "content/common/content_export.h"
+
+namespace v8 {
+template <class T>
+class Local;
+class Object;
+class Isolate;
+} // namespace v8
+
+namespace content {
+
+CONTENT_EXPORT v8::Local<v8::Object> GetOrCreateChromeObject(
+ v8::Isolate* isolate,
+ v8::Local<v8::Object> global);
+
+} // namespace content
+
+#endif // CONTENT_PUBLIC_RENDERER_CHROME_OBJECT_EXTENSIONS_UTILS_H_

Powered by Google App Engine
This is Rietveld 408576698