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

Side by Side Diff: content/public/browser/web_contents_binding_set.h

Issue 2346903002: Fixes for WebContents associated interfaces support (Closed)
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_BINDING_SET_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_BINDING_SET_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_BINDING_SET_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_BINDING_SET_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "content/common/content_export.h" 13 #include "content/common/content_export.h"
14 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
15 #include "mojo/public/cpp/bindings/associated_binding_set.h" 15 #include "mojo/public/cpp/bindings/associated_binding_set.h"
16 #include "mojo/public/cpp/bindings/associated_interface_request.h" 16 #include "mojo/public/cpp/bindings/associated_interface_request.h"
17 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" 17 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 class RenderFrameHost; 21 class RenderFrameHost;
22 class WebContentsImpl; 22 class WebContentsImpl;
23 23
24 // Base class for something which owns a mojo::AssociatedBindingSet on behalf 24 // Base class for something which owns a mojo::AssociatedBindingSet on behalf
25 // of a WebContents. See WebContentsFrameBindingSet<T> below. 25 // of a WebContents. See WebContentsFrameBindingSet<T> below.
26 class CONTENT_EXPORT WebContentsBindingSet { 26 class CONTENT_EXPORT WebContentsBindingSet {
27 protected: 27 protected:
28 class Binder { 28 class CONTENT_EXPORT Binder {
29 public: 29 public:
30 virtual ~Binder() {} 30 virtual ~Binder() {}
31 31
32 virtual void OnRequestForFrame( 32 virtual void OnRequestForFrame(
33 RenderFrameHost* render_frame_host, 33 RenderFrameHost* render_frame_host,
34 mojo::ScopedInterfaceEndpointHandle handle); 34 mojo::ScopedInterfaceEndpointHandle handle);
35 }; 35 };
36 36
37 WebContentsBindingSet(WebContents* web_contents, 37 WebContentsBindingSet(WebContents* web_contents,
38 const std::string& interface_name, 38 const std::string& interface_name,
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 } 147 }
148 148
149 RenderFrameHost* current_target_frame_ = nullptr; 149 RenderFrameHost* current_target_frame_ = nullptr;
150 150
151 DISALLOW_COPY_AND_ASSIGN(WebContentsFrameBindingSet); 151 DISALLOW_COPY_AND_ASSIGN(WebContentsFrameBindingSet);
152 }; 152 };
153 153
154 } // namespace content 154 } // namespace content
155 155
156 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_BINDING_SET_H_ 156 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_BINDING_SET_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698