Index: content/public/browser/web_contents_binding_set.h |
diff --git a/content/public/browser/web_contents_binding_set.h b/content/public/browser/web_contents_binding_set.h |
index 1d3290f08da84962f30407f06d9636dde8efad60..b8d5ff2782dec94da6597a23fbd049dead25e5d2 100644 |
--- a/content/public/browser/web_contents_binding_set.h |
+++ b/content/public/browser/web_contents_binding_set.h |
@@ -25,7 +25,7 @@ class WebContentsImpl; |
// Base class for something which owns a mojo::AssociatedBindingSet on behalf |
// of a WebContents. See WebContentsFrameBindingSet<T> below. |
class CONTENT_EXPORT WebContentsBindingSet { |
- protected: |
+ public: |
class CONTENT_EXPORT Binder { |
public: |
virtual ~Binder() {} |
@@ -35,6 +35,11 @@ class CONTENT_EXPORT WebContentsBindingSet { |
mojo::ScopedInterfaceEndpointHandle handle); |
}; |
+ void SetBinderForTesting(std::unique_ptr<Binder> binder) { |
+ binder_for_testing_ = std::move(binder); |
+ } |
+ |
+ protected: |
WebContentsBindingSet(WebContents* web_contents, |
const std::string& interface_name, |
std::unique_ptr<Binder> binder); |
@@ -49,6 +54,7 @@ class CONTENT_EXPORT WebContentsBindingSet { |
const base::Closure remove_callback_; |
std::unique_ptr<Binder> binder_; |
+ std::unique_ptr<Binder> binder_for_testing_; |
DISALLOW_COPY_AND_ASSIGN(WebContentsBindingSet); |
}; |