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

Unified Diff: components/contextual_search/renderer/overlay_page_notifier_service_impl.cc

Issue 1385663002: [Contextual Search] Add Mojo-enabled API component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a few more missing dependencies to the new component's BUILD.gn rules for our renderer sectio… 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
« no previous file with comments | « components/contextual_search/renderer/overlay_page_notifier_service_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/contextual_search/renderer/overlay_page_notifier_service_impl.cc
diff --git a/components/contextual_search/renderer/overlay_page_notifier_service_impl.cc b/components/contextual_search/renderer/overlay_page_notifier_service_impl.cc
new file mode 100644
index 0000000000000000000000000000000000000000..1acb8099de876be305292bfd6c9c6b4c3ee1474b
--- /dev/null
+++ b/components/contextual_search/renderer/overlay_page_notifier_service_impl.cc
@@ -0,0 +1,22 @@
+// Copyright 2015 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.
+
+#include "components/contextual_search/renderer/overlay_page_notifier_service_impl.h"
+
+#include "components/contextual_search/renderer/overlay_js_render_frame_observer.h"
+
+namespace contextual_search {
+
+OverlayPageNotifierServiceImpl::OverlayPageNotifierServiceImpl(
+ OverlayJsRenderFrameObserver* observer,
+ mojo::InterfaceRequest<OverlayPageNotifierService> request)
+ : binding_(this, request.Pass()), overlay_js_observer_(observer) {}
+
+OverlayPageNotifierServiceImpl::~OverlayPageNotifierServiceImpl() {}
+
+void OverlayPageNotifierServiceImpl::NotifyIsContextualSearchOverlay() {
+ overlay_js_observer_->SetIsContextualSearchOverlay();
+}
+
+} // namespace contextual_search
« no previous file with comments | « components/contextual_search/renderer/overlay_page_notifier_service_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698